This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sda5_crypt UUID=c66880c1-c2f1-40fc-9580-f25d493876ef none luks,discard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Control MPRIS media players with your Flirc | |
[Service] | |
ExecStart=/usr/bin/flirc_mpris.py | |
Restart=always | |
[Install] | |
WantedBy=default.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import socket | |
import struct | |
import sys | |
HOST = "192.168.1.39" | |
PORT = 5000 | |
def switch(input_port): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const moo = require('moo') | |
function compileClass(constructor, indent) { | |
let s = '' | |
s += indent + 'var ' + constructor.name + ' = ' + constructor | |
for (let key in constructor.prototype) { | |
s += '\n\n' | |
const value = constructor.prototype[key] | |
if (typeof value === 'function') { | |
s += indent + constructor.name + '.prototype.' + key + ' = ' + value |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/udev/rules.d/99-pico.rules | |
# Make an RP2040 in BOOTSEL mode writable by all users, so you can `picotool` | |
# without `sudo`. | |
SUBSYSTEM=="usb", ATTRS{idVendor}=="2e8a", ATTRS{idProduct}=="0003", MODE="0666" | |
# Symlink an RP2040 running MicroPython from /dev/pico. | |
# | |
# Then you can `mpr connect $(realpath /dev/pico)`. | |
SUBSYSTEM=="tty", ATTRS{idVendor}=="2e8a", ATTRS{idProduct}=="0005", SYMLINK+="pico" |
OlderNewer