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

This is a test comment

  • foo

  • bar

    alert 'bar' # this is not syntax highligheted

Some other comment

alert 'bar' # this is
  • Vagrant
  • VirtualBox
  • Xcode Command Line Tools (git and c compiler)
  • Tmux
  • Vim modules
@Starefossen
Starefossen / gist:8138222
Last active January 1, 2016 11:29
Checksum http body
curl -s www.example.com | md5
curl -s -D - www.example.com -o /dev/null
@Starefossen
Starefossen / server.coffee
Last active June 22, 2020 20:26
Stream MongoDB documents from Node.JS server
"use strict"
http = require 'http'
MongoClient = require('mongodb').MongoClient
stringify = require('JSONStream').stringify
db = null
server = http.createServer (req, res) ->
cursor = db.collection('turer').find()
netstat -tulpn
@Starefossen
Starefossen / gist:7214701
Created October 29, 2013 13:33
Enable garbage collection api in node application
node --expose-gc test.js
global.gc();
@Starefossen
Starefossen / move-gif.sh
Created October 11, 2013 16:20
MOV to GIF
ffmpeg -ss 00:00:00.000 -i input.mov -pix_fmt rgb24 -r 10 -s 320x240 -t 00:00:10.000 output.gif
convert -layers Optimize output.gif output_optimized.gif