Skip to content

Instantly share code, notes, and snippets.

View n8willis's full-sized avatar
Set YOUR status


Set YOUR status
  • Phantom City, Texas
View GitHub Profile
giannisp / gist:1ed3665af198f62271712569e14ac808
Created October 20, 2017 18:10
Ubuntu 17.10 - Move window buttons to the left
# Move to the left
gsettings set org.gnome.desktop.wm.preferences button-layout 'close,maximize,minimize:'
# Move to the right
gsettings set org.gnome.desktop.wm.preferences button-layout ':close,maximize,minimize'
nsfmc / .motd.txt
Last active August 29, 2018 18:26
an motd script which reads lines from eno's oblique strategies
Abandon normal instruments [1st ed.]
Accept advice [1st ed.]
Accretion [1st ed.]
A line has two sides [1st ed.]
Allow an easement (an easement is the abandonment of a stricture) [1st ed.]
Are there sections? Consider transitions [1st ed.]
Ask people to work against their better judgement [1st ed.]
Ask your body [1st ed.]
Assemble some of the instruments in a group and treat the group [1st ed.]
Balance the consistency principle with the inconsistency principle [1st ed.]
fommil / systemd
Created August 27, 2016 18:57
# /etc/systemd/system/rngd@.service
Description=rngd service on %I
ExecStartPre=/bin/stty -F /dev/%I raw -echo -parenb
ExecStart=/usr/sbin/rngd -f --fill-watermark=90% --rng-device=/dev/%I
simoncozens /
Created February 1, 2019 15:42
HT LetterKerner, first draft
#MenuTitle: HT LetterKerner
# Put this in your HTLetterSpacer script directory so it can find
# the library.
# Todo:
# Does not handle whole-font yet.
# Does not know or care about kerning groups.
# The reference glyph should be adjusted based on the letter pair
# - "n" works well for lowercase-lowercase
fstab /
Last active January 5, 2022 12:31
How to use and as an IRC client

How to use and as an IRC client

How to Join an IRC Channel on

Join the room #freenode_<#channel>, replacing <#channel> with the name of the IRC channel. For example, in order to join the #prometheus IRC channel, join the room on

In, rooms can be joined with the directory symbol on the bottom left.

dzamlo / 99-lifx-keyboard.rules
Created September 11, 2016 16:41
Quick and dirty way to use a cheap bluetooth selfie remote on a linux server (like a raspberry pi) to control lifx lights
ACTION=="add", SUBSYSTEM=="input", ATTRS{name}=="AB Shutter3 ", TAG+="systemd", PROGRAM="/bin/systemd-escape -p --template=lifx-remote@.service $env{DEVNAME}", ENV{SYSTEMD_WANTS}+="%c"
plepe / gist:52ecc9f18efb32c68d18
Last active October 23, 2023 08:50
MDADM and LVM cheat sheet



  • md: multiple devices
command description
cat /proc/mdstat show status of all raids
mdadm --detail /dev/md0 detailed status of raid md0
bricewge /
Last active December 18, 2023 18:12
Use iTag Bluetooth BLE tracker as a light switch with Home Assistant
from bluepy import btle
import requests
bleAddr = "ff:ff:10:05:ef:ff"
url = "http://localhost:8123/api/services/light/toggle"
lamp = "light.mylight"
hassPasswd = "password"
class LightToggleDelegate(btle.DefaultDelegate):
def __init__(self):
jefferyto / 00-button
Last active February 3, 2024 08:30
Switching network configurations on a TP-Link TL-MR3020 with OpenWrt (12.09 Attitude Adjustment) using the sliding switch. Based on the sample scripts at: and
# based on
. /lib/
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
do_button () {
local button
anthrotype /
Created September 8, 2017 13:02
svg2glif: convert SVG paths to UFO glyphs
#!/usr/bin/env python
""" Convert SVG paths to UFO glyphs.
# Author: Cosimo Lupo
# Email:
# License: Apache Software License 2.0
from __future__ import print_function, absolute_import
__requires__ = ["svg.path", "ufoLib", "FontTools"]