Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View seveas's full-sized avatar

Dennis Kaarsemaker seveas

View GitHub Profile
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
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)
# 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
@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)
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
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
@seveas
seveas / hpilo.py
Last active October 12, 2019 10:56
# (c) 2011-2013 Dennis Kaarsemaker <dennis@kaarsemaker.net>
# see COPYING for license details
# Test edit!
import os
import platform
import random
import re
import socket
import subprocess
@seveas
seveas / f5_ip_change.py
Created January 13, 2014 11:39
I need to change 600 IP addresses on F5 BIGI devices. This is cumbersome.
#!/usr/bin/python
################################################################################
# Script to process IP address changes on F5 BIGIP v10 and v11 devices. You
# cannot change IP addresses, so you must delete and re-add nodes. This script
# does exactly that, in a limited way.
#
# Caveats and limitations:
# - Nodes will get recreated in the 'Common' partition even if they were in
# other partitions. This is on purpose, because this is what I needed
branch = repo.ref('heads/gh-pages')
parent = repo.commit(branch.object.sha)
files = os.listdir('.')
blobs = []
for (dir, _, files) in os.walk('.'):
dir = dir[2:]
for file in files:
with open(os.path.join(dir, file)) as fd:
sha = repo.create_blob(fd.read().encode('base64'), "base64")
sudo apt-get build-dep festival
cd /tmp
apt-get source festival
wget https://aur.archlinux.org/packages/fe/festival-patched-hts/festival-patched-hts.tar.gz
tar xf festival-patched-hts.tar.gz
cp festival-patched-hts/*hts* festival-2.1~release/debian/patches/
cd festival-2.1~release/debian/patches/
ls | grep hts >> series
cd ../../
dpkg-buildpackage -rfakeroot