Skip to content

Instantly share code, notes, and snippets.

View seveas's full-sized avatar

Dennis Kaarsemaker seveas

View GitHub Profile
color_0 = cf3c cf3c cf3c
color_1 = 0000 0000 0000
color_2 = 0000 0000 cccc
color_3 = 0000 cccc 0000
color_4 = dddd 0000 0000
color_5 = aaaa 0000 0000
color_6 = bbbb 0000 bbbb
color_7 = ffff aaaa 0000
color_8 = eeee dddd 2222
color_9 = 3333 dede 5555
strangles $who with a doohicky mouse cord
pours hot grits down the front of $who's pants
beats $who senseless with a 50lb Unix manual
whacks $who with the cluebat
resizes $who's terminal to 40x24
drops a truckload of VAXen on $who
pulls out his louisville slugger and uses $who's head to break the homerun record
stabs $who
steals $who's mojo
holds $who to the floor and spanks him with a cat-o-nine-tails
@seveas
seveas / stdout
Created September 17, 2014 19:11
debian git://anonscm.debian.org/users/jrnieder-guest/git.git (fetch)
debian git://anonscm.debian.org/users/jrnieder-guest/git.git (push)
fedora git://pkgs.fedoraproject.org/git (fetch)
fedora git://pkgs.fedoraproject.org/git (push)
gitster git://github.com/gitster/git.git (fetch)
gitster git://github.com/gitster/git.git (push)
origin git@github.com:seveas/git.git (fetch)
origin git@github.com:seveas/git.git (push)
peff git://github.com/peff/git.git (fetch)
peff git://github.com/peff/git.git (push)
# file GENERATED by distutils, do NOT edit
README
git-hub
setup.py
docs/Makefile
docs/ansicolor.py
docs/conf.py
docs/index.rst
docs/_static/network.dot
docs/_static/network.png
diff --git a/src/dijkstra_spath.jl b/src/dijkstra_spath.jl
index 6c6eac8..f4c3e38 100644
--- a/src/dijkstra_spath.jl
+++ b/src/dijkstra_spath.jl
@@ -251,7 +251,7 @@ dijkstra_shortest_paths{V}(
function dijkstra_shortest_paths_explicit{V}(g::AbstractGraph{V},all...)
state = dijkstra_shortest_paths(g,all...)
allvertices = g.vertices
- patharr = Array(Vector{V},0)
+ patharr = Array(Array{V},0)
dennis@spirit:~/code/git$ git status
On branch nd/multiple-work-trees
nothing to commit, working directory clean
dennis@spirit:~/code/git$ cat .git/HEAD
ref: refs/heads/nd/multiple-work-trees
dennis@spirit:~/code/git$ git checkout HEAD^
Note: checking out 'HEAD^'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
[dkaarsemaker@blog-001 ~]$ cat /srv/blog/blog.git/hooks/post-receive
#!/bin/bash
BLOG_PATH="/srv/blog";
REPO_PATH="${BLOG_PATH}/blog.git/";
WWW_PATH="${BLOG_PATH}/current";
CURRENT_SHA1=`cat ${REPO_PATH}/refs/heads/master`;
PUBLISH_DIR="${BLOG_PATH}/${CURRENT_SHA1}";
WORK_DIR="${PUBLISH_DIR}_workdir"
cd /tmp
mkdir foo
cd foo
git init
fortune > bar
git add bar
git commit "-m$(fortune)"
git tag base
for i in $(seq 4096); do echo "--- $i ---"; git checkout -b branch-$i base; fortune > bar-$i; git add bar-$i; git commit "-m$(fortune)"; done
git checkout base
1 cherry-pick
1 credential-cache
1 gc
1 help
1 minitrue
1 mv
1 rm
1 shortlog
1 staus
1 unpack
@seveas
seveas / init.pp
Created September 27, 2011 21:17
lvm recipe for puppet
class lvm {
}
define lvm::volume(
$lv = "LogVol01",
$vg = "VolGroup00",
$size = "",
$auto_extend = true,
$owner = "root",