Skip to content

Instantly share code, notes, and snippets.

View prurigro's full-sized avatar

Kevin MacMartin prurigro

  • WilliamsNY
  • Ottawa, Canada
View GitHub Profile
@prurigro
prurigro / keybase.md
Created March 28, 2014 08:19
(Keybase) My GitHub-based proof of identity

Keybase proof

I hereby claim:

  • I am prurigro on github.
  • I am prurigro (https://keybase.io/prurigro) on keybase.
  • I have a public key whose fingerprint is 26FE B966 DDAD D00F F158 5E7C 2D73 8DD1 CE38 9672

To claim this, I am signing this object:

@prurigro
prurigro / no-encryption.patch
Created October 21, 2014 05:05
(pixel-dungeon-gdx) Patch to disable encrypted save files
diff --git a/PD-classes/src/com/watabou/utils/Bundle.java b/PD-classes/src/com/watabou/utils/Bundle.java
index e266acc..39a47ec 100644
--- a/PD-classes/src/com/watabou/utils/Bundle.java
+++ b/PD-classes/src/com/watabou/utils/Bundle.java
@@ -264,27 +264,12 @@ public class Bundle {
}
}
-
- private static final char XOR_KEY = 0x1F;
@prurigro
prurigro / lddtest.sh
Created November 14, 2014 06:00
(Arch Linux) Small demo to play with ideas surrounding how linked library updates might be traced back to packages needing to be rebuilt
#!/usr/bin/env bash
function recursive_ldd() {
for file in "$(find . -type f -exec file '{}' \; | grep 'dynamically linked')"; do sed 's|:.*||' <<< "$file"; done
}
function find_libs() {
ldd $(recursive_ldd) \
| sed '/^[^ ]*:$/d;s|^ *||' \
| grep -o -e '/[^ ]*' \
@prurigro
prurigro / gnome-dlext.sh
Last active August 29, 2015 14:09
(Gnome 3) Gnome Extension Downloader: A script that takes an extension's ID # or URL and downloads a .zip containing the latest version of that extension
#!/usr/bin/env bash
#
# gnome-dlext - a gnome extension download tool
#
# instructions:
# 1. find the url of the extension you wish to download on extensions.gnome.org
# 2. run this script with either the extension url, or the id number contained in it
# 3. if there are no errors, your extension should then be downloaded!
#
@prurigro
prurigro / raccoon-new.sh
Last active August 29, 2015 14:09
(Android+Raccoon) Tracks previously installed apps and uses adb to install new ones
#!/usr/bin/env bash
# USER VARIABLES
config_dir="$HOME/.config/Raccoon"
inst_pkglist_file="$config_dir/installed.txt"
blacklist_file="$config_dir/blacklist.txt"
pkg_width=38
ver_width=15
stat_width=30
@prurigro
prurigro / aa-mirror-select.sh
Created November 18, 2014 12:27
(ArchAssault) Select the best set of AA mirrors
#!/usr/bin/env bash
MIRRORLIST="/etc/pacman.d/archassault-mirrorlist"
# if mirrorlist.pacnew exists, copy to mirrorlist.complete
[[ -f "${MIRRORLIST}.pacnew" ]] && mv "${MIRRORLIST}.pacnew" "${MIRRORLIST}.complete" && sed -i 's/^#//' "${MIRRORLIST}.complete"
# if mirrorlist.complete is missing, copy mirrorlist to mirrorlist.complete
if [ ! -f "${MIRRORLIST}.complete" ]; then
[[ -f "$MIRRORLIST" ]] \
@prurigro
prurigro / codeget.sh
Last active August 29, 2015 14:13
A zbar wrapper utility to read barcodes from various sources
#!/usr/bin/env bash
#
# CodeGet: A zbar wrapper utility to read barcodes from various sources
#
# Version: 1.4.8
#
# Written by Kevin MacMartin and released under the MIT license
#
# Requirements:
# base64 | converts to and from base64 encoding
@prurigro
prurigro / contact.sh
Last active August 29, 2015 14:14
A pyCardDAV toolset wrapper for improved user experience on the command-line
#!/usr/bin/env bash
#
# Contact: A pyCardDAV toolset wrapper for improved user experience on the command-line
#
# Version 1.3.1
#
# Written by Kevin MacMartin ([email protected])
# Released under the MIT license
#
@prurigro
prurigro / archroot.sh
Last active June 17, 2021 22:31
An overlayfs-based chroot management script for deployable arch build environments
#!/usr/bin/env bash
#
# archroot
# An overlayfs chroot management script for deployable arch build environments
#
# Version 1.18
#
# Written by Kevin MacMartin
# Released under the MIT license
@prurigro
prurigro / json2weblist.js
Last active August 29, 2015 14:16
Converts json to tidy html
#!/usr/bin/env node
/*
* json2weblist: convert a heading in json to an HTML list, then tidy it up
* Version: 1.0.1
*
* Requirements:
* Node.js: http://nodejs.org/
* Tidy-HTML: http://tidy.sourceforge.net/
* * Experimental version with HTML5 support : https://github.com/w3c/tidy-html5