Skip to content

Instantly share code, notes, and snippets.

View nullobject's full-sized avatar

Joshua Bassett nullobject

View GitHub Profile
sudo apt update
sudo apt install libusb-1.0-0-dev git cmake build-essential pkg-config
sudo apt install debhelper
git clone https://github.com/rtlsdrblog/rtl-sdr-blog
cd rtl-sdr-blog
sudo dpkg-buildpackage -b --no-sign
cd ..
sudo dpkg -i librtlsdr0_*.deb
@nullobject
nullobject / gist:7c98202ea8c74bb6fe9f576412266a0a
Created January 8, 2025 09:27
Berkeley Mono Nerd Font Mono
docker run --rm \
-v ~/tmp/berkeley-mono/origin:/in \
-v ~/tmp/berkeley-mono/patched:/out \
-u $(id -u):$(id -g) \
nerdfonts/patcher \
--progressbars \
--mono \
--adjust-line-height \
--fontawesome \
--fontawesomeext \
# History
HISTFILE=~/.zsh_history
HISTSIZE=1000000
SAVEHIST=1000000
setopt append_history
setopt inc_append_history
setopt hist_ignore_dups
export PATH=$HOME/.local/bin:$HOME/bin:$HOME/oss-cad-suite/bin:$PATH
@nullobject
nullobject / List.test.tsx
Created February 29, 2024 22:42
Mock IntersectionObserver
import { act, render, screen } from "@testing-library/react"
import { List } from "./List"
type IntersectFn = (entries: any[]) => void
function mockIntersectionObserver(): [
jest.MockedObject<IntersectionObserver>,
IntersectFn
] {
let intersectionObserverCallback: IntersectFn = () => {}
ffmpeg -y -f alsa -thread_queue_size 1024 -i hw:2 -f v4l2 -thread_queue_size 1024 -i /dev/video-hdmi-capture -c:v libx264 -pix_fmt yuv420p -r 60 -c:a aac -ac 2 -ar 48000 lol.mp4