Skip to content

Instantly share code, notes, and snippets.

View Starefossen's full-sized avatar
🚀
Building platforms for the Norwegain Government

Hans Kristian Flaatten Starefossen

🚀
Building platforms for the Norwegain Government
View GitHub Profile

This is a test comment

  • foo

  • bar

    alert 'bar' # this is not syntax highligheted

Some other comment

alert 'bar' # this is
@Starefossen
Starefossen / README.md
Last active August 29, 2015 13:56
Autoboot boot2docker on system startup.
  1. Remember to change /User/name/bin/ to the correct path where boot2docker is installed.
  2. Copy the content of the file above to ~/Library/LaunchAgents/com.github.starfossen.boot2docker.plist
@Starefossen
Starefossen / gist:10010371
Created April 6, 2014 19:20
Set vim syntax highlighting language
:setf <language>

Keybase proof

I hereby claim:

  • I am starefossen on github.
  • I am starefossen (https://keybase.io/starefossen) on keybase.
  • I have a public key whose fingerprint is 2E95 E0BE A257 E127 628E 1CF4 8525 B593 4114 1813

To claim this, I am signing this object:

==> default: gpg:
==> default: directory `/root/.gnupg' created
==> default: gpg:
==> default: new configuration file `/root/.gnupg/gpg.conf' created
==> default: gpg:
==> default: WARNING: options in `/root/.gnupg/gpg.conf' are not yet active during this run
==> default: gpg:
==> default: keyring `/root/.gnupg/secring.gpg' created
==> default: gpg:
==> default: keyring `/root/.gnupg/pubring.gpg' created
=== release test-keep-alive ===
Path: pummel/test-keep-alive
events.js:141
throw er; // Unhandled 'error' event
^
Error: spawn wrk ENOENT
at exports._errnoException (util.js:749:11)
at Process.ChildProcess._handle.onexit (child_process.js:1022:32)
at child_process.js:1114:20
at process._tickCallback (node.js:339:13)
@Starefossen
Starefossen / release.sh
Last active August 29, 2015 14:18
Tagging you releases in git
#!/bin/bash
if [ -z "$1" ]; then
echo "Usage: ./release.sh x.y.z"
exit 1
fi
# update version in package.json
sed -i '' "s/\"version\":.*/\"version\": \"$1\",/g" package.json

Nasjonal Turbase Build status

The National Trekking Database (Nasjonal Turbase) is the Norwegian national
platform to collect, manage, and distribute standardised trekking and outdoor
data from all participants who facilitate outdoor recreation.

| Website | http://www.nasjonalturbase.no |

find . -name 'Dockerfile' -print0 | xargs -0 sed -i -e 's/6.9.1-6/6.9.1-10/g'
@Starefossen
Starefossen / object.extend.coffee
Created December 16, 2012 16:06
Makes it possible to extend object in the following way: myObject.extend otherObject
# Extend Object Prototype
Object::extend = (obj) ->
org = this
Object.keys(obj).forEach (key) ->
prop = Object.getOwnPropertyDescriptor obj, key
Object.defineProperty org, key, prop
this