Skip to content

Instantly share code, notes, and snippets.

View fawkesley's full-sized avatar

Paul Fawkesley fawkesley

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fawkesley
fawkesley / fksync.sh
Last active November 6, 2018 17:19
fksync
#!/bin/sh -eu
# fksync
#
# This scripts keeps your PGP keys in sync with your team by:
#
# 1. periodically uploading your key to the keyservers
# 2. periodically downloading their keys from the keyservesr
#
# Note: it can't handle *new* team members. You'll need to get their key the
@fawkesley
fawkesley / firefox.md
Last active February 23, 2024 12:37
Firefox profile addons and settings
@fawkesley
fawkesley / hockeypuck-supervisor.conf
Last active September 23, 2018 16:15
Installing Hockeypuck with PostgreSQL on
# /etc/supervisor/conf.d/hockeypuck-supervisor.conf
# Do `service supervisor reload` then start/stop with `supervisorctl start hockeypuck`
[program:hockeypuck]
user=hockeypuck
directory=/home/hockeypuck
command=/home/hockeypuck/bin/hockeypuck -config /home/hockeypuck/etc/hockeypuck/hockeypuck.conf
redirect_stderr=true
autorestart=true
startsecs=10
@fawkesley
fawkesley / pre-commit
Last active November 20, 2019 06:06
Configure git email and signing key on a per-repository basis
#!/bin/sh -u
# Install this into ~/.githooks/pre-commit
#
# Make it executable:
# > chmod +x ~/.githooks/pre-commit
#
# Configure git to point at your hooks directory
# > git config --global core.hooksPath ~/.githooks
#
@fawkesley
fawkesley / install.md
Last active July 25, 2018 09:29
Install Ubuntu 18.04, restore from backintime backup

Prerequisites

  • A full backup of /home/paul using backintime

Install Ubuntu

  • Choose "Something else" to enter the partitioning tool

  • Select "use the advanced partitioning tool for more control"

@fawkesley
fawkesley / irssi.md
Last active July 10, 2018 20:26
irssi IRC client

irssi cheat sheet

These commands configure a network (e.g. freenode) with servers (e.g. irc.freenode.net) and channels (e.g. #doesliverpool).

Once configured you can just /connect <network> and everything happens automatically.

Add Freenode network

/network add -autosendcmd "/^msg nickserv identify <password>" freenode

@fawkesley
fawkesley / yealink_t20.md
Last active March 16, 2022 15:59
Yealink T20 VoIP phone setup notes
@fawkesley
fawkesley / expirybot notes.md
Last active September 15, 2018 17:47
Rebuild sks keyserver 1.1.6 on debian

keyserver-c.expirybot.com

  • AKA keyserver.paulfurley.com

  • running sks-1.1.6

  • running github.com/paulfurley/expirybot via cron

  • only recon port, no public PKS queries

  • peered with other keyservers & keyserver-b.expirybot.com

keyserver-b.expirybot.com

@fawkesley
fawkesley / requests_wrapper.py
Last active May 30, 2018 11:58
Wrapper for python requests providing session and user agent
import requests
class RequestsWrapper():
def __init__(self, user_agent):
self._session = requests.Session()
self._user_agent = user_agent
def get(self, *args, **kwargs):
headers = requests.structures.CaseInsensitiveDict(