Skip to content

Instantly share code, notes, and snippets.

View deiga's full-sized avatar

Timo Sand deiga

View GitHub Profile
$ clang -v
Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.0.0
Thread model: posix
$ gcc -v
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.0.0
Thread model: posix
@deiga
deiga / abs.tex
Last active August 29, 2015 14:06
LaTeX absolute value shortcut
% Absolute value
% http://tex.stackexchange.com/a/43009/62694
\DeclarePairedDelimiter\abs{\lvert}{\rvert}%
\DeclarePairedDelimiter\norm{\lVert}{\rVert}%
% Swap the definition of \abs* and \norm*, so that \abs
% and \norm resizes the size of the brackets, and the
% starred version does not.
\makeatletter
\let\oldabs\abs
@deiga
deiga / pseudo.js
Last active August 29, 2015 13:57
SteamService.getGroupMembers = function(steam_id, callback) {
callback = callback || noop;
var url = 'http://steamcommunity.com';
if (/\d{3,10}/.test(steam_id)) {
steam_id = calculateSteamGroupId64(steam_id);
url += '/gid/';
} else {
url += '/groups/';
}
url += steam_id + '/memberslistxml/?xml=1';
@deiga
deiga / .amethyst
Created March 2, 2014 06:40
.amethyst
{
"LAYOUTS": "----------------------",
"layouts": [
"tall",
"fullscreen",
"column",
"floating"
],
"MODIFIERS": "----------------------",
@deiga
deiga / npm-debug.log
Last active August 29, 2015 13:56
npm errors out on RPi
$ npm install
npm http GET https://registry.npmjs.org/dotenv
npm http GET https://registry.npmjs.org/grunt/0.4.1
npm http GET https://registry.npmjs.org/sails-disk
npm http GET https://registry.npmjs.org/optimist/0.3.4
npm http GET https://registry.npmjs.org/jade
npm http GET https://registry.npmjs.org/bower
npm http GET https://registry.npmjs.org/restler
npm http GET https://registry.npmjs.org/sails/0.9.9
npm http 200 https://registry.npmjs.org/grunt/0.4.1
@deiga
deiga / octave.log
Created January 23, 2014 19:12
brew install -vd octave --with-ftlk --with-qt --without-check
This file has been truncated, but you can view the full file.
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/octave.rb
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/pkg-config.rb
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/gnu-sed.rb
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/texinfo.rb
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/fftw.rb
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/readline.rb
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/arpack.rb
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/suite-sparse.rb
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/tbb.rb
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/hdf5.rb
@deiga
deiga / gist:8408654
Created January 13, 2014 21:37
Error while reinstalling ocatve 3.8 on OSX 10.9.1
This file has been truncated, but you can view the full file.
brew reinstall -vd octave   1   steeri
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/octave.rb
==> Reinstalling octave -vd
rm /usr/local/bin/octave-config-3.8.0
rm /usr/local/bin/octave-config
rm /usr/local/bin/octave-cli-3.8.0
rm /usr/local/bin/octave-cli
rm /usr/local/bin/octave-3.8.0
rm /usr/local/bin/octave
rm /usr/local/bin/mkoctfile-3.8.0
@deiga
deiga / xtrace
Last active December 28, 2015 19:09
zsh ztrace output on new shell
+/Users/timosand/.zprofile:3> setopt promptsubst
+/Users/timosand/.zprofile:4> typeset -F SECONDS
+/Users/timosand/.zprofile:5> PS4='+{$SECONDS}%N:%i> '
+{0.0053540000}/Users/timosand/.zprofile:8> export 'LANG=en_GB.UTF-8'
+{0.0062160000}/Users/timosand/.zprofile:9> export 'LC_ALL=en_GB.UTF-8'
+{0.0062710000}/Users/timosand/.zprofile:12> BIN_PATH=/Users/timosand/bin:/Users/timosand/local/bin
+{0.0062940000}/Users/timosand/.zprofile:13> BOX_PATH=/Users/timosand/dotfiles/box/bin
+{0.0063110000}/Users/timosand/.zprofile:14> PATH=/Users/timosand/bin:/Users/timosand/local/bin:/Users/timosand/dotfiles/box/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/texbin
+{0.0063850000}/Users/timosand/.zprofile:16> case darwin13.0 (darwin*)
+{0.0064140000}/Users/timosand/.zprofile:18> COREUTILS_PATH=/usr/local/opt/coreutils/libexec/gnubin
@deiga
deiga / cleanup-rvm
Created October 12, 2013 23:30
Fully remove RVM installation
#!/bin/bash
/usr/bin/sudo rm -rf $HOME/.rvm $HOME/.rvmrc /etc/rvmrc /etc/profile.d/rvm.sh /usr/local/rvm /usr/local/bin/rvm
/usr/bin/sudo /usr/sbin/groupdel rvm
/bin/echo "RVM is removed. Please check all .bashrc|.bash_profile|.profile|.zshrc for RVM source lines and delete or comment out if this was a Per-User installation."
@deiga
deiga / pom.xml
Last active December 18, 2015 11:39
Snippets for configuring Jackson2 and JodaTime DateTime serialisation
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-joda</artifactId>
<version>2.2.2</version>
</dependency>