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 / 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 / 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 / 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 / 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 / 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: