Skip to content

Instantly share code, notes, and snippets.

View seveas's full-sized avatar

Dennis Kaarsemaker seveas

View GitHub Profile
@seveas
seveas / .deploy
Last active December 21, 2020 17:31
#!/bin/bash
#
# Usage:
#
# To deploy the current branch to production
#
# .deploy
#
# To deploy the current branch to a different environment
#
@seveas
seveas / rover.py
Last active July 1, 2017 20:38 — forked from andywarburton/rover.py
simple script for controlling motors and lights with piborg zero motor controller and a raspberry pi
#!/usr/bin/env python
# coding: Latin-1
# Load library functions we want
from inputs import get_gamepad
import piconzero as pz
import time
import sys
import random
import colorsys
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://nl.archive.ubuntu.com/ubuntu/ xenial main restricted
deb-src http://nl.archive.ubuntu.com/ubuntu/ xenial main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://nl.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
deb-src http://nl.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
options {
directory "/home/dennis/pdns-bug/inst/var/run/pdns-server/";
};
zone "example.com" IN {
type master;
file "example.com.zone";
};
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
[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"
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 [email protected]:seveas/git.git (fetch)
origin [email protected]:seveas/git.git (push)
peff git://github.com/peff/git.git (fetch)
peff git://github.com/peff/git.git (push)