Skip to content

Instantly share code, notes, and snippets.

View mullikine's full-sized avatar
🍓

Shane Mulligan mullikine

🍓
  • Dunedin, NZ
View GitHub Profile
@mullikine
mullikine / el7check.hs
Created April 25, 2019 11:50 — forked from juhp/el7check.hs
haskell turtle shell script to check NVRs of epel7 packages
{-# LANGUAGE OverloadedStrings #-}
import Turtle
import Data.Text (words)
rpmspecSrc qf spec = do
(_res, out) <- procStrict "rpmspec" ["-q", "--srpm", "--undefine=dist", "--qf", qf, spec] empty
return out
nvr = "%{name}-%{version}-%{release}"
@mullikine
mullikine / makesmsg.sh
Last active August 29, 2015 14:19
Create self-decrypting encrypted files using your ssh public key. The self decrypting file will only decrypt if you have the private key. Only works on small files like short messages.
#!/bin/bash
if [[ "$#" == 1 ]]; then
PUBKEYFILE="${HOME}/.ssh/id_rsa.pub"
INFILE="$1"
OUTFILE="${1}.sh"
elif [[ "$#" == 2 ]]; then
PUBKEYFILE="${HOME}/.ssh/id_rsa.pub"
INFILE="$1"
OUTFILE="$2"
@mullikine
mullikine / organise_trigs.py
Created November 22, 2014 11:22
For use in conjunction with AOK Trigger Studio. This program reorders the execution of a scenarios triggers using XML produced by aokts.
import xml.etree.ElementTree as ET
import sys, getopt
# Author: Shane Mulligan
# 13 April 2014
# This program reorders the execution of a scenarios triggers
# to match their display orders.
def main(argv):
@mullikine
mullikine / pentadactyl-patch.diff
Created November 19, 2014 23:34
Pentadactyl patch. Added default search string feature. Press F1 to search buildwith.com on current website. Restored C-v for paste (swapped with C-t)
diff -r cef5557669dc -r 1f3bfd78d908 common/content/bookmarks.js
--- a/common/content/bookmarks.js Sat Aug 02 21:25:32 2014 -0700
+++ b/common/content/bookmarks.js Thu Nov 20 12:20:02 2014 +1300
@@ -650,6 +650,10 @@
}
});
+ options.add(["defsearchtext", "ds"],
+ "The default search query",
+ "string", "", {});