Skip to content

Instantly share code, notes, and snippets.

View maybe-buzz-music.js
const { Gpio } = require('pigpio');
const NOTE_B0 = 31;
const NOTE_C1 = 33;
const NOTE_CS1 = 35;
const NOTE_D1 = 37;
const NOTE_DS1 = 39;
const NOTE_E1 = 41;
const NOTE_F1 = 44;
const NOTE_FS1 = 46;
View job.js
const got = require('got');
const sendMail = require('../mailer');
const render = require('./template');
const recipients = [
'email@email.email',
];
// berlin.de is new to the internet and wants every user of the API identify himself with a correct
// user agent 🙈 Let's see how they block these.
@suprMax
suprMax / resetmacaddress.sh
Created Nov 2, 2018
Solves the airport wifi time limit problem. Don't forget to `sudo chmod +x resetmacaddress.sh`.
View resetmacaddress.sh
#!/bin/sh
# Getting interface name
interface=en0
read -p "Interface please (default en0): " otherinterface
[ -n "$otherinterface" ] && interface=$otherinterface
# Generating new MAC adderess
newmac=$(openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//')
View buttons.styl
// button reset
button,
.button
margin: 0
padding: 0
overflow: visible
border: none
outline: none