Skip to content

Instantly share code, notes, and snippets.

View hakonrossebo's full-sized avatar

Håkon Rossebø hakonrossebo

View GitHub Profile
@hakonrossebo
hakonrossebo / NDC2011VideoRenamer.rb
Created August 30, 2011 20:48
Ruby script to rename the NDC2011 torrent files to also show the title (old was "Track3 1020-1120
#Script to correct NDC video file naming (ie:Track3 1140-1240.mp4 to the correct title)
#This script will parse a specific xml file and rename the NDC2011 videos according to the information in the xml file
#Copy xml text from here: https://gist.github.com/1034721 (thanks to GitHub user dauger)
require 'rexml/document'
require 'pathname'
require 'find'
class NDCSession

Keybase proof

I hereby claim:

  • I am hakonrossebo on github.
  • I am hakonrossebo (https://keybase.io/hakonrossebo) on keybase.
  • I have a public key whose fingerprint is 447C B687 BE46 26CC DF31 C7ED F317 0496 7C97 D1F5

To claim this, I am signing this object:

@hakonrossebo
hakonrossebo / GitCheat.md
Last active February 17, 2018 21:39
Git commands and config

Pull requests

git remote add  upstream xyz.git
git fetch upstream
git branch --set-upstream-to=upstream/master master
  eller: git checkout -b test origin/test
  eller: git checkout --track -b newFeature upstream/master
git merge upstream/master 
eller
// Copy of sourcefile from book
// https://github.com/rikace/fConcBook/blob/master/Chapter.06/TwitterEmotionAnalysis.cs/RxPubSub.cs
// Concurrency in .NET
// https://www.manning.com/books/concurrency-in-dotnet
using System;
using System.Collections.Generic;
using System.Reactive.Concurrency;
using System.Reactive.Linq;
using System.Reactive.Subjects;