Skip to content

Instantly share code, notes, and snippets.

@inxeoz
inxeoz / info.md
Last active October 26, 2025 16:30
Test Hdmi in archlinux using ethernet and two laptop connected using ethernet

sender

gst-launch-1.0 ximagesrc use-damage=0 ! \
video/x-raw,format=BGRx,framerate=30/1 ! videoconvert ! \
x264enc tune=zerolatency speed-preset=ultrafast bitrate=6000 key-int-max=30 ! \
rtph264pay config-interval=1 pt=96 ! udpsink host=192.168.1.2 port=5000

@inxeoz
inxeoz / RUST_OPTION_RESULT_CONVERSIONS.md
Created April 17, 2025 06:38 — forked from novafacing/RUST_OPTION_RESULT_CONVERSIONS.md
Rust Option/Result conversion functions

I used to have a site bookmarked with a table of all these functions, but the link is dead. Here's a matrix of Option and Result conversion functions. These become second nature once you have used Rust for any significant length of time, but it's useful to have a table reference.

For each of the below:

  • T is the value possibly contained in an input Ok Result or Some Option.
  • U is a new value created by transforming or replacing an input T. Note that when U appears in methods like map, U ?= T, for example by calling
use kuchiki::traits::*;
use std::collections::HashMap;
/// A simple structure to hold one CSS rule.
struct Rule {
/// One or more selectors (for example, "header nav ul" or "body")
selectors: Vec<String>,
/// A map of CSS property to value for this rule.
declarations: HashMap<String, String>,
}
@inxeoz
inxeoz / code.html
Created February 8, 2025 18:44
code highliting in google blogger
<!-- Prism.js CSS for Syntax Highlighting -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism-tomorrow.min.css" rel="stylesheet" />
<!-- Prism.js Core and Rust Language Support -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/prism.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-rust.min.js"></script>
<p><span style="font-size: medium;">Rust Programs:</span></p>
<pre class="language-rust">
<code class="language-rust">
fn main() {
fn main() {
println!("hello rust");
}
@inxeoz
inxeoz / index.html
Created June 29, 2024 17:36
Shooting Star
<div class="stars">
<div class="star"></div>
<div class="star"></div>
<div class="star"></div>
<div class="star"></div>
<div class="star"></div>
<div class="star"></div>
<div class="star"></div>
<div class="star"></div>
<div class="star"></div>
@inxeoz
inxeoz / index.html
Created June 29, 2024 17:29
Shooting Star
<div class="stars">
<div class="star"></div>
<div class="star"></div>
<div class="star"></div>
<div class="star"></div>
<div class="star"></div>
<div class="star"></div>
<div class="star"></div>
<div class="star"></div>
<div class="star"></div>
@inxeoz
inxeoz / 2kb-total-size-svg-animation.markdown
Created June 29, 2024 17:16
2kb total size SVG animation