Skip to content

Instantly share code, notes, and snippets.

@tarruda
tarruda / micro_events.py
Last active October 12, 2025 18:34
Micro event loop library to teach the basic concepts of python coroutines and how event loop libraries might be implemented
"""
A micro event loop library implementation from scratch.
This library provides a minimal but feature-complete asynchronous event loop
implementation for educational purposes. It demonstrates the core concepts of
asynchronous programming including:
- Task scheduling and management
- I/O multiplexing with non-blocking sockets
- Timeouts and sleep functionality
@timothyham
timothyham / ipv6guide.md
Last active December 4, 2025 16:38
A Short IPv6 Guide for Home IPv4 Admins

A Short IPv6 Guide for Home IPv4 Admins

This guide is for homelab admins who understand IPv4s well but find setting up IPv6 hard or annoying because things work differently. In some ways, managing an IPv6 network can be simpler than IPv4, one just needs to learn some new concepts and discard some old ones.

Let’s begin.

First of all, there are some concepts that one must unlearn from ipv4:

Concept 1

@nate-moo
nate-moo / Discord Full Screen sharing under wayland.md
Last active April 2, 2024 22:55
Screensharing full screen on discord under wayland

warning: Very cursed

image

things required:

  • wf-recorder
  • mpv
  • wayland

Removing snaps from Ubuntu 22.04 LTS

NOTE: Removing snapd may impact the operation of Ubuntu Pro.

I don't currently use snaps, but have not had to work hard at avoiding them [1].

Getting rid of snaps in Ubuntu 22.04 LTS is basically a 4 step process:

1. Remove snapd

$ sudo snap remove --purge firefox
@MateusRodCosta
MateusRodCosta / Improved Microphone (Male voices, with Noise Reduction).json
Last active December 5, 2025 20:54
An EasyEffects preset created for input devices (intended for Microphones). Please read the README.md.
{
"input": {
"blocklist": [],
"compressor": {
"attack": 20.0,
"boost-amount": 6.0,
"boost-threshold": -72.0,
"hpf-frequency": 10.0,
"hpf-mode": "off",
"input-gain": 0.0,
@benticlaskaris
benticlaskaris / ethmine.service
Last active December 27, 2021 17:46
Nvidia mining
[Unit]
Description=Eth miner
After=network.target
[Service]
ExecStartPre=/usr/local/bin/nvidia-overclock.sh overclock
ExecStart=/usr/bin/nbminer -a ethash -o ethproxy+tcp://eu1.ethermine.org:4444 -u wallet.RIG -d 0,1 -log
Restart=always
[Install]
@pushpendre
pushpendre / pid_control_servers.ipynb
Created July 4, 2021 19:49
PID Controller for controlling the number of servers in a data-center. This notebook accompanies the video https://youtu.be/pKuVUmpYkLk
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@larsch
larsch / archlinuxarm-on-nanopi-r2s.md
Created October 10, 2020 10:48
Installing Arch Linux AArch64 on the NanoPi R2S

Installing Arch Linux AArch64 on the NanoPi R2S

There is current no support for the NanoPi R2S in ArchLinuxArm, but it's possible to run it using the generic aarch64 installation.

Prepare sd-card/image

  1. Copy bootloader and uBoot from an armbian image using for the NanoPi R2S using dd (sectors 32 to 32767) everything before the partition, except the partition table).
  2. Create an ext4 partition on /dev/mmcblk0p1 at offset of 32768 sectors (16384 KiB):
Device         Boot Start      End  Sectors  Size Id Type
#!/bin/sh
/Applications/Discord.app/Contents/MacOS/Discord --proxy-server=http://po.cc.ibaraki-ct.ac.jp:3128
@navarrothiago
navarrothiago / README.md
Last active November 15, 2025 03:55
Turn your smartphone or tablet camera into a WebCam to make video conference in Linux