Skip to content

Instantly share code, notes, and snippets.

View spacecowb0y's full-sized avatar

Diego spacecowb0y

View GitHub Profile
ardangelo /
Last active January 20, 2024 04:19
Beepy Hub
  • Improved power management
  • Updatable firmware (2023-12-09)
    • Use pico-flashloader preload stage (2023-09-04)
    • Flash test image hardcoded into firmware (2023-12-03)
    • Implement I2C firmware update protocol (2023-12-08)
  • Shutdown / rewake command (2023-11-30)
  • Real time clock support
  • Sticky modifier keys
msmuenchen /
Last active May 4, 2024 08:44
Flying a drone in Germany

This article intends to provide a quick refresher and reference guide for aspiring drone pilots in German territory, particularly those from outside the EU.

Disclaimer: The author is not a law professional and assumes no liability, but strives to keep this guide up-to-date and factually correct. Please check the laws yourself before conducting a flight. No commission, referrals or similar awards have been provided to the author. The guide only applies to actual EU member states and Germany specifically, unless noted otherwise. The author has no knowledge about the edge cases Switzerland, Norway, Iceland, Liechtenstein and the UK - they may or may not have adopted the EU regulations. Please file a comment if you have corrections, questions, new edge cases or links to state-specific information.

Basic EU-wide rules

German drone law follows the basic EU harmonized rules:

Drone classes

  • Drones are classified by weight and capabilities by the manufacturer:
  • C0 drones weigh below 250g (e.g. the DJ
jbott /
Last active August 22, 2023 19:09 — forked from mx00s/
NixOS install script based on @grahamc's "Erase Your Darlings" blog post
#!/usr/bin/env bash
# NixOS install script synthesized from:
# - Erase Your Darlings (
# - ZFS Datasets for NixOS (
# - NixOS Manual (
# - Original gist by @nuxeh (

OpenBSD logo     Rails logo     Falcon logo

Choose OpenBSD for your Unix needs. OpenBSD -- the world's simplest and most secure Unix-like OS. A safe alternatve to the frequent vulnerabilities and overengineering of Linux and related software (NGiNX & Apache (httpd-asiabsdcon2015.pdf), OpenSSL, iptables/nftables, systemd, BIND, Postfix, Docker etc.)

OpenBSD -- the cleanest kernel, the cleanest userland and the cleanest config

trap("SIGINT") { exit! }
total_width = `stty size`.scan(/\d+/)[1].to_i # terminal width
snowflakes = {}
puts "\033[2J"; # clearing output
loop do
snowflakes[rand(total_width)] = 0
moyix /
Created February 5, 2022 22:51
Script to inject an exit(0) syscall into a running process. NB: only x86_64 for now!
gdb -p "$1" -batch -ex 'set {short}$rip = 0x050f' -ex 'set $rax=231' -ex 'set $rdi=0' -ex 'cont'
shawwn /
Created May 11, 2021 09:46
"What happened after 2010?"

This was a response to a Hacker News comment asking me what I've been up to since 2010. I'm posting it here since HN rejects it with "that comment is too long." I suppose that's fair, since this ended up being something of an autobiography.


What happened after 2010?

ctsrc /
Last active June 6, 2024 04:18 — forked from niw/
Guide: Run FreeBSD 13.1-RELEASE for ARM64 in QEMU on Apple Silicon Mac (MacBook Pro M1, etc) with HVF acceleration (Hypervisor.framework)
dillonchanis / example.css
Created September 20, 2020 14:44
Tailwind Utility for using gradients with text
@layer utilities {
.text-gradient {
background-clip: text;
-webkit-text-fill-color: transparent;