Skip to content

Instantly share code, notes, and snippets.

Gavin Lloyd gavinhungry

Block or report user

Report or block gavinhungry

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
gavinhungry / RegFight.ps1
Last active Apr 5, 2018
PowerShell script to fight Group Policy and keep registry settings as desired
View RegFight.ps1
# PowerShell script to fight Group Policy and keep registry settings as desired
# When taking ownership and removing rights from a registry key are not enough
# The author of this script feels quite satisfied that it is the worst
# PowerShell script ever written. If you agree, please feel free to provide
# suggestions, improvements, alternatives or looks of disapproval.
# Update:
gavinhungry / nginx-tls.conf
Last active Oct 3, 2019
Nginx SSL/TLS configuration for "A+" Qualys SSL Labs rating
View nginx-tls.conf
# Name: nginx-tls.conf
# Auth: Gavin Lloyd <>
# 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 omitted here.
# Example:
gavinhungry / gv-delete-history-legacy.user.js
Last active Sep 18, 2019 — forked from ljepson/gvoice.js
Browser userscripts to delete all Google Voice history
View gv-delete-history-legacy.user.js
// ==UserScript==
// @name Delete Google Voice (Legacy) History
// @description Deletes all Google Voice (Legacy) history
// @version 1.1.0
// @license MIT
// @namespace
// @author Gavin Lloyd <>
// @include
// @include*

Keybase proof

I hereby claim:

  • I am gavinhungry on github.
  • I am gavinhungry ( on keybase.
  • I have a public key whose fingerprint is 1450 B358 FCC7 992D 8C61 60F3 52CC 07C8 C7F4 A2F0

To claim this, I am signing this object:

gavinhungry / owa-direct.user.js
Created Jan 9, 2015
Rewrite OWA Links to direct URL
View owa-direct.user.js
// ==UserScript==
// @name OWA Direct Links
// @version 0.1.0
// @description Rewrite OWA Links to direct URL
// @author Gavin Lloyd <>
// @match https://webmail.example.tld/*
// @require
// @grant none
// ==/UserScript==
gavinhungry /
Last active Jan 4, 2018
D-Bus service providing org.gnome.ScreenSaver GetActive method for slimlock
#!/usr/bin/env python2
import dbus
import dbus.mainloop.glib
import dbus.service
import gobject
import psutil
class ScreenSaver(dbus.service.Object):
def __init__(self):
gavinhungry / hand-scroll.user.js
Last active Oct 14, 2017
Drag scrolling with middle-mouse button
View hand-scroll.user.js
// ==UserScript==
// @name Hand Scroll
// @namespace
// @version 1.5.0
// @description Drag scrolling with mouse movement
// @author Gavin Lloyd <>
// @include *
// @grant none
// ==/UserScript==
gavinhungry / 50-battery.rules
Last active May 18, 2019
udev script for handling power management
View 50-battery.rules
SUBSYSTEM=="power_supply", ACTION=="change", RUN+="/etc/scripts/"
gavinhungry /
Created Jan 7, 2018
ThinkPad input settings
synclient VertScrollDelta=-125 HorizScrollDelta=-125
synclient PalmDetect=1 PalmMinZ=100 PalmMinWidth=7
synclient RightButtonAreaTop=0 RightButtonAreaLeft=0
synclient CoastingFriction=75
TOUCHPAD='SynPS/2 Synaptics TouchPad'
xinput set-prop "$TOUCHPAD" 'Device Accel Profile' 2
xinput set-prop "$TOUCHPAD" 'Device Accel Constant Deceleration' 40
xinput set-prop "$TOUCHPAD" 'Device Accel Velocity Scaling' 10000
View devtools.html
<script type='application/javascript' src='devtools.js'></script>
You can’t perform that action at this time.