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
(() => { | |
/* | |
chrome.storage.local.set({ | |
credentials: { | |
'example.com': { | |
username: 'foo', | |
password: '***' | |
} | |
} | |
}); |
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
// because I can never remember what all of the Date output formats look like | |
Object.getOwnPropertyNames(Date.prototype).filter(m => m.startsWith('to')).forEach(m => { | |
console.log(m.padEnd(20), new Date()[m]()); | |
}); |
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
// ==UserScript== | |
// @name Service Worker Killer | |
// @version 0.4.0 | |
// @description Unregister ServiceWorker(s) before page unload | |
// @author Gavin Lloyd <gavinhungry@gmail.com> | |
// @match http://*/* | |
// @match https://*/* | |
// @grant none | |
// ==/UserScript== |
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
synclient VertScrollDelta=-60 HorizScrollDelta=-60 | |
synclient PalmDetect=1 PalmMinZ=100 PalmMinWidth=7 | |
synclient RightButtonAreaTop=0 RightButtonAreaLeft=0 | |
synclient CoastingFriction=75 | |
xinput set-prop "$TOUCHPAD" 'Device Accel Profile' 2 | |
xinput set-prop "$TOUCHPAD" 'Device Accel Constant Deceleration' 25 | |
xinput set-prop "$TOUCHPAD" 'Device Accel Velocity Scaling' 10000 | |
xinput set-prop "$TRACKPOINT" 'libinput Natural Scrolling Enabled' 1 |
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 python2 | |
# /usr/share/dbus-1/scripts/org.gnome.ScreenSaver.py | |
import dbus | |
import dbus.mainloop.glib | |
import dbus.service | |
import gobject | |
import psutil |
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
# | |
# Name: nginx-tls.conf | |
# Auth: Gavin Lloyd <gavinhungry@gmail.com> | |
# Desc: Nginx SSL/TLS configuration for "A+" Qualys SSL Labs rating | |
# | |
# Enables HTTP/2, PFS, HSTS and OCSP stapling. Configuration options not related | |
# to SSL/TLS are not included here. | |
# | |
# Additional tips: | |
# |