Skip to content

Instantly share code, notes, and snippets.

View jonathanballs's full-sized avatar
🤠
yeehaw

Jonathan jonathanballs

🤠
yeehaw
View GitHub Profile
@jonathanballs
jonathanballs / fetch-crosswords.plist
Last active January 13, 2024 14:34
Pulls the latest crossword clues from The Times. Writes a clue + link to crossword to a file so that I can display it in my vim startup
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>crossword.fetch.at.midnight</string>
<key>UserName</key>
<string>jonathanballs</string>
<key>ProgramArguments</key>
<array>
@jonathanballs
jonathanballs / chaosmode.sh
Created March 7, 2019 11:12
Bash script chaos mode
#!/bin/bash
# Deletes one random pod from kubernetes every DELAY seconds
DELAY=0
while true; do
POD=$(kubectl get pods -o json | jq -r '.items[].metadata.name' | grep -v backend | grep -v frontend | shuf | head -n1)
# Log with pod name in bold
echo -e "$(date) -- Killing pod \e[1m$POD\e[0m"
@jonathanballs
jonathanballs / tickcallbacks.d
Created February 14, 2019 11:55
GtkD tick callbacks
/*
* This file is part of gtkD.
*
* gtkD is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* gtkD is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of

Keybase proof

I hereby claim:

  • I am bonniejools on github.
  • I am jonnyballs (https://keybase.io/jonnyballs) on keybase.
  • I have a public key whose fingerprint is 3C30 3F27 AEED A971 63C8 BE56 03A2 97ED A247 2F95

To claim this, I am signing this object:

@jonathanballs
jonathanballs / freepcs.py
Created March 7, 2017 18:38
Get list of free pcs at uon
#!/usr/bin/python2
import requests
import datetime
import json
from bs4 import BeautifulSoup
PCFINDER_URL = "http://pcfinder.nottingham.ac.uk/"