Skip to content

Instantly share code, notes, and snippets.

View inigoalonso's full-sized avatar

Iñigo Alonso Fernandez inigoalonso

View GitHub Profile
@Webreaper
Webreaper / docker-compose.yml
Last active April 25, 2025 23:48
Sample Docker-compose file which shows how to set up Sonarr, Radarr, Prowlarr, Lidarr, QBittorrent and a VPN container so that all all traffic from the containers is routed through the VPN. Also includes Plex and get_iplayer containers, which are not routed through the VPN.
# Docker compose to set up containers for all services you need:
# VPN
# Sonarr, Radarr, Lidarr, Qbittorrent
# Non-VPN
# Plex, get_iplayer
# Before running docker-compose, you should pre-create all of the following folders.
# Folders for Docker State:
# /volume1/dockerdata. - root where this docker-compose.yml should live
# /volume1/dockerdata/plex - Plex config and DB
# /volume1/dockerdata/sonarr - Sonarr config and DB
@onlurking
onlurking / programming-as-theory-building.md
Last active April 30, 2025 13:58
Programming as Theory Building - Peter Naur

Programming as Theory Building

Peter Naur

Peter Naur's classic 1985 essay "Programming as Theory Building" argues that a program is not its source code. A program is a shared mental construct (he uses the word theory) that lives in the minds of the people who work on it. If you lose the people, you lose the program. The code is merely a written representation of the program, and it's lossy, so you can't reconstruct

@lorenzopub
lorenzopub / .block
Created May 7, 2017 15:39
D3 + Vue.js
license: mit

Bluetooth Button Remap

Setup udev

/etc/udev/hwdb.d/90-sbutton.hwdb

evdev:input:b0005v099Ap0500*
 KEYBOARD_KEY_c00e9=s
 KEYBOARD_KEY_70028=r
@staltz
staltz / introrx.md
Last active May 4, 2025 15:01
The introduction to Reactive Programming you've been missing
@RobbieClarken
RobbieClarken / EPICS over Flask WebSockets.md
Last active September 23, 2023 20:19
EPICS over WebSockets with Flask

Installation:

pip install Flask Flask-Sockets gunicorn pyepics

Deployment:

gunicorn -k flask_sockets.worker index:app
@billroy
billroy / jsonio.py
Created September 21, 2012 13:38
Read/write JSON object from file in python
import simplejson
import json
def put(data, filename):
try:
jsondata = simplejson.dumps(data, indent=4, skipkeys=True, sort_keys=True)
fd = open(filename, 'w')
fd.write(jsondata)
fd.close()
except: