Skip to content

Instantly share code, notes, and snippets.

View nikreiman's full-sized avatar

Nik Reiman nikreiman

  • Stockholm, Sweden
View GitHub Profile
@nikreiman
nikreiman / keybase.md
Created April 11, 2014 13:56
Keybase proof

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 / log.txt
Created May 1, 2014 12:01
MrsWatson Omnisphere error log
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
D 00000000 000011 Looking for plugin 'Omnisphere' in '/Users/pepper/MrsWatson/bin/Mac OS X'
@nikreiman
nikreiman / log.txt
Created May 1, 2014 12:16
MrsWatson Omnisphere error log (abbreviated)
- 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 / bandnames.txt
Last active August 29, 2015 14:02
English words not used in band names (according to Discogs)
Abbasid
Achaean
Achebe
Aconcagua
Adirondacks
Adonises
Advil
Aeneid
Aesculapius
Afghans
@nikreiman
nikreiman / log
Created August 27, 2014 09:13
F@H linux logs
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 ********************************
10:49:41: Version: 7.4.4
@nikreiman
nikreiman / clion64.properties.txt
Last active August 29, 2015 14:07
CLion64 JVM properties for big, boosty projects (requires JDK8)
-ea
-server
-Xms1g
-Xmx4g
-Xss16m
-XX:+DoEscapeAnalysis
-XX:+UnlockExperimentalVMOptions
-XX:+UseConcMarkSweepGC
-XX:LargePageSizeInBytes=256m
-XX:ReservedCodeCacheSize=96m
@nikreiman
nikreiman / gen-button-states.sh
Created July 6, 2011 12:05
Generate XML state resources for all graphics in an Android project
#!/bin/sh
# Script to generate XML state files for button images in a project
# This script assumes that you have named your graphics like: button_normal.png, button_pressed.png
function help() {
printf "Usage: %s [Android Sources]\n" $0
exit 1
}
androidSourceRoot=$1
@nikreiman
nikreiman / android-screenshot.sh
Created July 7, 2011 12:38
Take a screenshot of a currently connected Android device to the desktop
#!/bin/bash
# This is a simple script which will take a screenshot from a currently
# connected Android device and dump it to the user's desktop.
# Written by Nik Reiman: nikreiman@shortmail.com
# INSTALLATION:
# For this tool, you will need the Android SDK installed, and you will also
# need to build the Android "screenshot" tool.
#
# To build the screeshot tool, you must download the source by running:
@nikreiman
nikreiman / WithInterfaceAbuse.java
Created August 17, 2011 10:11
Java interface abuse
// Fun trick I've been playing with to replace abstract classes with empty java interfaces.
public class BaseClass {
// stuff ...
}
public class PurpleClass extends BaseClass implements Controller.IsPurple {
// methods ...
}
@nikreiman
nikreiman / gist:1222474
Created September 16, 2011 16:24
Git safe pull
function git-pull-safe() {
local currentBranch=$(git-branch-current)
local localLastCommit=$(git log --format="%H" $currentBranch | head -1)
local localLastPushCommit="$(git log --format="%H" origin/${currentBranch}.. | tail -n-1)^"
#local remoteLastCommit=$(git log origin/$currentBranch | head -1 | cut -f 2 -d ' ')
git fetch origin $currentBranch
local remoteHeadCommit=$(git log --format="%H" origin/$currentBranch | head -1)
if [ "$remoteHeadCommit" = "$localLastCommit" ] ; then
# Same message as git pull prints in this case