Skip to content

Instantly share code, notes, and snippets.

@jaqque
jaqque / build.sh
Created August 27, 2014 18:57
Build WindowMaker from git in a ramdisk
#!/bin/sh
DEST=/opt/wmaker
OLD=$DEST.old
UID=$(id -u)
GID=$(id -g)
BUILD=$(mktemp -d --tmpdir wmaker.XXXXXXXXXX)
VERSION=$(git rev-parse --verify --short HEAD)
# copy to temp
menu:
@echo "test -- run all tests"
ARGS=1 2 "3 4"
tests:=$(wildcard *sh)
.PHONY: menu test
test:
@echo Using ARGS: '$(ARGS)'
@jaqque
jaqque / bashrc
Created June 6, 2014 18:23
Shell Assistant (friendlier command not found)
cmd_helper() {
#⌾ ⌾
/usr/bin/env uudecode <<'EOF'
begin 664 -
M(%]?7U]?7U]?7U]?7U]?7U]?7U]?7U]?7U]?7U]?7U]?7U]?7U]?7U]?7R`*
M+R`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@(%P*
M?$D@<V5E('EO=2=R92!T<GEI;F<@=&\@=7-E('1H92!T97)M:6YA;"#B@*8@
M?`I<7U]?7U]?7U]?7U]?7U]?7U]?7U]?7U]?7U]?7U]?7U]?7U]?7U]?7U]?
M+PH@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@=@H@("`@
# Title Barcode Call Num Author Status Until Location Checkouts
1 The 318220275 BR430 Active 12-16-1989 cs 0
Catholic 74755 .C38 1992
Reformati
on :
Savonarol
a to
Ignatius
Loyola :
reform

Keybase proof

I hereby claim:

  • I am jaqque on github.
  • I am jaqque (https://keybase.io/jaqque) on keybase.
  • I have a public key whose fingerprint is D8C6 4C2C E88E E5CF 8737 16C4 ADE9 4F65 0779 9E74

To claim this, I am signing this object:

@jaqque
jaqque / gist:7649174
Last active December 29, 2015 09:19
Ogre Unboxing!
Ogre party at my house!
Saturday, November 30, 2013. 1 PM.
On the menu is Ogre and Pot Luck!
Please RSVP.
@jaqque
jaqque / runme.sh
Last active December 26, 2015 04:09
4-way videos
#!/bin/zsh
typeset -a vid win opts
vid=(
"After Effects- DNA Strand.mp4"
"HD LAVA LAMP Ambient Video Wall Art -- 30 Minute Relaxing Ambient Video Clip.mp4"
"Crawling Neutrophil Chasing a Bacterium.mp4"
"ekg flatline.mp4"
)
default.rb:
salt_data = 'this is ridiculous'
ruby_block 'fetch-salt-data' do
block do
salt_data = File.read(wp_secrets)
puts "Hay! Look! Salt_data!"
puts "#{salt_data}"
end
action :create
@jaqque
jaqque / fixpath
Created September 10, 2013 20:08
bash shell function to clean up a PATH, and append . (complete with love note) Would probably work under zsh, even if $path would be cleaner.
fixpath () {
local IFS=:
local newpath=''
for i in $PATH; do
[[ -d "$i" && "$i" != '.' ]] && newpath="$newpath${newpath:+:}$i"
done
PATH="$newpath:/this_could_be_dangerous/:."
}
fixpath
@jaqque
jaqque / qls
Created July 29, 2013 20:47
quick ls
qls() { perl -E'for(@ARGV){-d||next;say"$_:";opendir$d,$_;say+join"\n",sort(readdir$d)}' "${@:-.}"; }