Steven! Ragnarök avatar Steven! Ragnarök committed 932d8ce

Initial commit.

Comments (0)

Files changed (16)

Binary file added.

Binary file added.

+syntax:glob
+blackJack64
+dadblack
+employeeTester
+guessgame
+guessingGame64
+pizza
+pizzacalc
+smallints
+stockItemTester

add_bins_to_ignore.bash

+#!/bin/bash
+
+IGNOREFILE='.hgignore'
+
+if [[ -e $1 ]]
+	then  IGNOREFILE=$1
+fi
+
+BINARY_FILES=`file * | grep ELF | cut -d":" -f1`
+
+# This is naive. It'll pollute the ignore file eventually.
+echo $BINARY_FILES >> $IGNOREFILE
+
+
+#!/bin/bash
+# AURget
+# ======
+# A simple utility to grab a tarball from the Archlinux User Repository and
+# untar it into the specified directory.
+
+#/ Usage: aurget PKGNAME
+
+# `AURDIR`: The directory in which local AUR packages are to be placed.
+AURDIR=$HOME/.abs
+# `AURURL`: The base url for grabbing aur tarballs.
+AURURL="http://aur.archlinux.org/packages"
+# Store the working directory in case `makepkg` maims `cd -`.
+
+# Clean up any previous versions of the package.
+rm -rf $AURDIR/$1
+
+# Then fetch the package and untar/extract it.
+cd $AURDIR
+curl $AURURL/$1/$1.tar.gz | tar -xz
+cd -
+
+urxvtc -fn xft:inconsolata:size=15:antialias=true:hinting=true
+#!/bin/sh
+which dmenu || exit 2
+test -d "$1" || exit 3
+file=`ls $1 | dmenu -p 'file' $DMENU_OPTS`
+echo $1/$file
+#!/bin/sh
+which dmenu || exit 2
+which sed || exit 3
+page=`ls /usr/share/man/man?/* /usr/man/man?/* | sed 's/.*\/\([^./]\+\)[^/]\+/\1/' | dmenu -p 'man' $DMENU_OPTS` || exit 4
+exec xterm -e man $page
+#!/bin/bash
+which dmenu || exit 2
+CACHE=$HOME/.dmenu_cache.$HOST
+IFS=':'
+
+uptodate() {
+  test -f "$CACHE" &&
+  for dir in $PATH
+  do
+    test ! $dir -nt "$CACHE" || return 1
+  done
+}
+
+if ! uptodate
+then
+  for path in $PATH
+  do
+    test -d "$path" &&
+    cd "$path" &&
+    for file in *
+    do
+      test -x "$file" &&
+      echo "$file"
+    done
+  done | sort | uniq > "$CACHE".$$ &&
+  mv "$CACHE".$$ "$CACHE"
+fi
+
+unset IFS
+exe=`dmenu $DMENU_OPTS -p 'run' < $CACHE` || exit 4
+exec $exe
+#!/bin/sh
+which dmenu || exit 2
+which cut || exit 3
+which xterm || exit 3
+host=`cut -d, -f1 ~/.ssh/known_hosts | dmenu $DMENU_OPTS -p 'ssh'` || exit 4
+exec xterm -e ssh $host
+#!/bin/bash -x
+which dmenu || exit 2
+which $BROWSER || exit 3
+BROWSER=uzbl
+BOOKMARKS="$HOME/.bookmarks"
+[ -z "$WWW_HOME" ] && WWW_HOME="http://www.google.com/"
+
+bookmarks() {
+  echo $WWW_HOME
+  pri=`xclip -o -selection primary`   && [ -n "$pri" ] && echo $pri
+  sec=`xclip -o -selection secondary` && [ -n "$sec" ] && echo $sec
+  sel=`xclip -o -selection clipboard` && [ -n "$sel" ] && echo $sel
+  [ -n $BOOKMARKS -a -r $BOOKMARKS ] && cat $BOOKMARKS
+}
+
+uri=`bookmarks | dmenu $DMENU_OPTS -p 'uri'` || exit 4
+expr "$uri" : '^https\?://' || uri="http://${uri}"
+
+if [ -p "$4" -a -w "$4" ]; then
+  echo "uri $uri" > "$4"
+else
+  exec $BROWSER $uri
+fi
+#!/bin/bash
+if $3 == "Jonas"
+echo "Fuck You"
+end
+#!/bin/bash
+# reCurse
+# =======
+# Identicurse is awesome. Using the Git development branch is fun!
+# But sometimes it crashes! o...o
+# When that happens I feel obligated to file a bug report.
+# But before I file a bug report, I should pull the latest HEAD from master to
+# check if the bug is still present.
+# It can get old fast... real fast.
+# So I made that process easier for Archlinux folken.
+# Documentation is available at [here](http://nuclearsandwich.com/recurse.html)
+
+# This handy script was written by nuclearsandwich <steven@nuclearsandwich.com>
+# [@nuclearsandwich@identi.ca](http://identi.ca/nuclearsandwich) feel free to
+# ask me questions on identi.ca or via email.
+
+# The directory in which the Identicurse PKGBUID resides.
+CURSEDIR=$HOME/.abs/identicurse
+
+# The relative path to the git repo.
+REPODIR=src/identicurse
+
+# Cache the current working directory and
+# Change into the Identicurse directory and clean it out.
+WORKINGDIR=`pwd`
+cd $CURSEDIR
+echo "=== Cleaning stale packages from $CURSEDIR"
+rm identicurse*.pkg.tar.xz
+
+# Make and install the new package.
+echo "=== Building and installing..."
+makepkg -i
+
+# Tell me what I just installed.
+printf "\n\n=== Updated Identicurse-git to\n"
+cd $REPODIR && git log -n1
+
+# Return to your port of origin.
+echo "=== All finished."
+cd $WORKINGDIR
+#!/bin/bash
+## A simple script to start dwm and some other nice things. ##
+#xcompmgr -c -t-5 -l-5 -r4.2 -o.55 -D6 -d :0.0 &
+#xcompmgr -c -t-7 -l-9 -o.89 -D4 -f -d :0.0 &
+#xautolock -time 5 -locker lockx -nowlocker lockx -detectsleep -corners 000+ -cornerdelay 3 &
+#urxvtd &
+#xcompmgr -c -t-3 -l-3 -r4 -o.7 -D5 -f -d :0.0 & ## Best xcompmgr!
+dropbox start &
+conky -c ~/.conkyrc | while true; read line; do xsetroot -name "$line"; sleep 1s; done &
+mpd $HOME/.mpd/config &
+nitrogen --restore &
+redshift -l 37.36:-122.02 -t 6500:4500 &
+urxvt -title htop -e htop &
+urxvt &
+urxvt &
+urxvt &
+pidgin &
+#thunderbird &
+exec dwm
+#!/bin/bash
+## Time Clock ##
+# A Simple script to log in and out times. #
+CLOCKFILE=$HOME/.tc/$2.tc
+
+case $1 in
+	clockin)
+	echo "In at $(date) Message: $3" >> $CLOCKFILE
+	;;
+	clockout)
+	echo "Out at $(date) Message: $3" >> $CLOCKFILE
+	echo "=================" >> $CLOCKFILE
+	;;
+	*)
+	echo "unk at $(date) Message: $3" >> $CLOCKFILE
+	;;
+esac
+
+#!/usr/bin/env ruby
+require 'thor'
+require 'json'
+
+class TWall < Thor
+	BUCKETS = {
+		"td" => "Today",
+		"tm" => "Tomorrow",
+		"tw" => "This Week",
+		"nw" => "Next Week",
+		"fu" => "Future"
+	}
+	desc 'buckets', 'display buckets and their shorthand'
+	def buckets
+		BUCKETS.each do |k,v|
+			puts "#{v} is abbreviated #{k}"
+		end
+	end
+
+	desc 'show [BUCKET]', 'list all tasks, or all tasks in the given bucket'
+	def show bucket = nil
+		if bucket
+			print_bucket bucket
+		else
+			BUCKETS.keys.each do |b|
+				print_bucket b
+			end
+		end
+	end
+
+	desc 'add BUCKET TASK', 'add task to bucket'
+	def add bucket, task
+		wall[bucket] << task
+		writeable_wall << wall.to_json 
+		print_bucket bucket
+	end
+
+	desc 'remove BUCKET TASK', 'remove task from bucket'
+	def remove bucket, task
+		wall[bucket].delete task
+		writeable_wall << wall.to_json 
+		print_bucket bucket
+	end
+
+	desc 'purge BUCKET', 'delete all contents of the bucket'
+	def purge bucket
+		wall[bucket] = []
+		writeable_wall << wall.to_json 
+		puts "#{BUCKETS[bucket]} purged."
+	end
+
+	desc 'shift SOURCE_BUCKET DEST_BUCKET', 'merge contents of two buckets'
+	def shift source, dest
+		wall[dest] += wall[source]
+		purge source
+	end
+
+	desc 'move SOURCE_BUCKET DEST_BUCKET TASK', 'move task from one bucket to another'
+	def move source, dest, task
+		remove source, task
+		add source, task
+	end
+
+	private
+	def wall
+		@wall ||= JSON.parse(File.read(wallfile))
+	end
+
+	def print_bucket b
+		puts "#{BUCKETS[b]}:"
+		wall[b].each do |t|
+			puts "	#{t}"
+		end
+		puts nil
+	end
+
+	def writeable_wall
+		@file ||= File.open(wallfile, 'w')
+	end
+
+	def wallfile
+		"#{ENV['HOME']}/.wallfile"
+	end
+end
+
+TWall.start
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.