Skip to content

Instantly share code, notes, and snippets.

View nathanbirrell's full-sized avatar

Nathan Birrell nathanbirrell

View GitHub Profile
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to make opened Markdown files always be soft wrapped:
#
# path = require 'path'
#
@nathanbirrell
nathanbirrell / cntlm-change-password.md
Last active November 16, 2021 08:49
Change CNTLM password on MacOS/Linux

Many corporate security policies require regular password changes, CNTLM makes these very easy.

First, get the hashes for the new password with:

cntlm -H

Copy and paste those hashes into your cntlm.conf file located at:

/usr/local/etc/cntlm.conf

@nathanbirrell
nathanbirrell / LaPavoni.ino
Created March 25, 2020 05:56 — forked from jmadden91/LaPavoni.ino
La Pavoni Heater Control
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
#include <EEPROM.h>
#include <ESP8266mDNS.h>
#include <WiFiUdp.h>
#include <ArduinoOTA.h>
int a = 1;
int b = 1;
@nathanbirrell
nathanbirrell / share-to-fastmail.js
Last active April 14, 2020 00:47
Share via Fastmail Email Bookmarklet
javascript:(function(){popw='';Q='';d=document;w=window;if(d.selection){Q=d.selection.createRange().text;}else if(w.getSelection){Q=w.getSelection();}else if(d.getSelection){Q=d.getSelection();}popw=w.open('https://www.fastmail.com/mail/compose?to=&subject='+encodeURIComponent(d.title)+'&body='+encodeURIComponent(Q)+escape('%5Cn%5Cn')+encodeURIComponent(d.location)+'&zx=RANDOMCRAP&shva=1&disablechatbrowsercheck=1&ui=1','scrollbars=yes,width=680,height=575,top=175,left=75,status=no,resizable=yes');if(!d.all)setTimeout(function(){popw.focus();},50);})();
@nathanbirrell
nathanbirrell / scdl-synology.sh
Created June 5, 2023 07:00
Use Soundcloud Downloader to download your likes on Synology NAS as a script or cron job
# python3 and ffmpeg can both be installed easily via the Synology Package Manager
# ensure python3 installed
python3 --version
# ensure pip3 installed
sudo python3 -m ensurepip
# install scdl
python3 -m pip install scdl