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 { 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; |
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 got = require('got'); | |
const sendMail = require('../mailer'); | |
const render = require('./template'); | |
const recipients = [ | |
'[email protected]', | |
]; | |
// 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. |
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
#!/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/.$//') |