Skip to content

Instantly share code, notes, and snippets.

View Starefossen's full-sized avatar
🍉
Developer experience in the Norwegain Government

Hans Kristian Flaatten Starefossen

🍉
Developer experience in the Norwegain Government
View GitHub Profile
@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 / README.md
Last active March 19, 2019 12:18
Run Octave using Vagrant

Install

  1. Download and install Vagrant
  2. Download and install Virtual Box
  3. Download the file bellow; name must be "Vagrantfile"

Run

Go to the folder where your "Vagrantfile" in your terminal/shell. Run the following commands:

@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:

@Starefossen
Starefossen / remoteDataTableView.swift
Last active January 16, 2023 09:50
Remote JSON Data to tableView in iOS 8.0 (Swift)
import UIKit
import Foundation
import XCPlayground
XCPSetExecutionShouldContinueIndefinitely()
class RemoteAPI {
func getData(completionHandler: ((NSArray!, NSError!) -> Void)!) -> Void {
let url: NSURL = NSURL(string: "http://itunes.apple.com/search?term=Turistforeningen&media=software")
let ses = NSURLSession.sharedSession()
@Starefossen
Starefossen / image_magick.sh
Created November 11, 2014 21:38
Build ImageMagick from source
#!/bin/bash
magick_version=6.8.9-10
magick_install_dir="$HOME/image_magick"
magick_download_url="http://imagemagick.org/download/releases/ImageMagick-$magick_version.tar.gz"
rm -rf $magick_install_dir/*
mkdir -p $magick_install_dir && cd $magick_install_dir
curl -L $magick_download_url | tar -zxf-
cd ImageMagick*
==> 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 |