Skip to content

Instantly share code, notes, and snippets.

Nik Reiman nikreiman

  • Stockholm, Sweden
View GitHub Profile
@nikreiman
nikreiman / sp
Last active Oct 26, 2015 — forked from wandernauta/sp
sp is a command-line client for Spotify's dbus interface. Play, pause, skip and search tracks from the comfort of your command line.
View sp
#!/bin/bash
#
# This is sp, the command-line Spotify controller. It talks to a running
# instance of the Spotify Linux client over dbus, providing an interface not
# unlike mpc.
#
# Put differently, it allows you to control Spotify without leaving the comfort
# of your command line, and without a custom client or Premium subscription.
#
@nikreiman
nikreiman / clion64.properties.txt
Last active Aug 29, 2015
CLion64 JVM properties for big, boosty projects (requires JDK8)
View clion64.properties.txt
-ea
-server
-Xms1g
-Xmx4g
-Xss16m
-XX:+DoEscapeAnalysis
-XX:+UnlockExperimentalVMOptions
-XX:+UseConcMarkSweepGC
-XX:LargePageSizeInBytes=256m
-XX:ReservedCodeCacheSize=96m
@nikreiman
nikreiman / log
Created Aug 27, 2014
F@H linux logs
View log
This file has been truncated, but you can view the full file.
*********************** Log Started 2014-08-16T10:49:41Z ***********************
10:49:41:************************* Folding@home Client *************************
10:49:41: Website: http://folding.stanford.edu/
10:49:41: Copyright: (c) 2009-2014 Stanford University
10:49:41: Author: Joseph Coffland <joseph@cauldrondevelopment.com>
10:49:41: Args: --child --lifeline 1441 /etc/fahclient/config.xml --run-as
10:49:41: fahclient --pid-file=/var/run/fahclient.pid --daemon
10:49:41: Config: /etc/fahclient/config.xml
10:49:41:******************************** Build ********************************
@nikreiman
nikreiman / bandnames.txt
Last active Aug 29, 2015
English words not used in band names (according to Discogs)
View bandnames.txt
Abbasid
Achaean
Achebe
Aconcagua
Adirondacks
Adonises
Advil
Aeneid
Aesculapius
Afghans
@nikreiman
nikreiman / log.txt
Created May 1, 2014
MrsWatson Omnisphere error log (abbreviated)
View log.txt
- 00000000 000008 Setting 2 channels
- 00000000 000008 MrsWatson version 0.9.7 initialized, build 20140125
D 00000000 000010 Host platform is Mac OS X (Mac OS X 10.9.2)
D 00000000 000010 Application is 32-bit
D 00000000 000011 Launched with options: --error-report -p Omnisphere -m /Users/pepper/Desktop/example.mid --parameter 0,1.0 --parameter 1,0.9 --parameter 2,0.9, --parameter 3,0.9 --parameter 4,0.9 --parameter 5,0.9 --parameter 6,0.9 --parameter 7,0.9 --parameter 8,0.9 -c
D 00000000 000011 Trying to find plugin 'Omnisphere'
D 00000000 000011 Looking for plugin 'Omnisphere' in '/Users/pepper/MrsWatson/bin/Mac OS X'
D 00000000 000011 Looking for plugin 'Omnisphere' in '/Library/Audio/Plug-Ins/VST'
- 00000000 000011 Plugin 'Omnisphere' is of type VST2.x
D 00000000 000011 Looking for plugin 'Omnisphere' in '/Users/pepper/MrsWatson/bin/Mac OS X'
@nikreiman
nikreiman / log.txt
Created May 1, 2014
MrsWatson Omnisphere error log
View log.txt
This file has been truncated, but you can view the full file.
- 00000000 000008 Setting 2 channels
- 00000000 000008 MrsWatson version 0.9.7 initialized, build 20140125
D 00000000 000010 Host platform is Mac OS X (Mac OS X 10.9.2)
D 00000000 000010 Application is 32-bit
D 00000000 000011 Launched with options: --error-report -p Omnisphere -m /Users/pepper/Desktop/example.mid --parameter 0,1.0 --parameter 1,0.9 --parameter 2,0.9, --parameter 3,0.9 --parameter 4,0.9 --parameter 5,0.9 --parameter 6,0.9 --parameter 7,0.9 --parameter 8,0.9 -c
D 00000000 000011 Trying to find plugin 'Omnisphere'
D 00000000 000011 Looking for plugin 'Omnisphere' in '/Users/pepper/MrsWatson/bin/Mac OS X'
D 00000000 000011 Looking for plugin 'Omnisphere' in '/Library/Audio/Plug-Ins/VST'
- 00000000 000011 Plugin 'Omnisphere' is of type VST2.x
View keybase.md

Keybase proof

I hereby claim:

  • I am nikreiman on github.
  • I am nikreiman (https://keybase.io/nikreiman) on keybase.
  • I have a public key whose fingerprint is 8CE1 E8DF CCB8 01FD 6F8C 941A 9A55 32C1 7354 8D98

To claim this, I am signing this object:

@nikreiman
nikreiman / sse-bufconvert.c
Created Dec 12, 2013
Converting 16-bit shorts to floating point samples with SSE
View sse-bufconvert.c
#include <stdlib.h>
#include <malloc.h>
#include <xmmintrin.h>
#if 1
#define ITERATIONS 1
#define BUFSIZE 32
#else
#define ITERATIONS 1000000
#define BUFSIZE 512
@nikreiman
nikreiman / gist:5721141
Created Jun 6, 2013
List of functions which *cannot* be MIDI mapped in Ableton Live
View gist:5721141
Track delay
I/O routing
Show/hide any panel
Show/hide I/O, sends, returns, etc.
Time signature
EQ-8 mode, channel config
Navigation in the browser
Computer MIDI keyboard
Cue/solo (the button above the Cue volume)
Enable/disable clips
@nikreiman
nikreiman / gist:5458386
Last active Jul 16, 2020
A quick script to clean up Gerrit branches. I tend to have 1 branch per commit for Gerrit reviews, which means that after some time there are a ton of stale branches sitting around. This script examines all your branches, looking for ones which have a change-id that also exists in the current branch. If it has found such a commit, it prompts you…
View gist:5458386
function git-branch-current() {
printf "%s\n" $(git branch 2> /dev/null | grep -e ^* | tr -d "\* ")
}
function git-branch-cleanup() {
local currentBranch=$(git-branch-current)
local otherBranch=
for otherBranch in $(git branch | grep -v $currentBranch) ; do
printf "Branch %s:\n" "$otherBranch"
printf " HEAD commit is: %s\n" "$(git log --oneline -n 1 $otherBranch)"
You can’t perform that action at this time.