Skip to content

Instantly share code, notes, and snippets.

Avatar

Tobias Sturm toebbel

View GitHub Profile
@toebbel
toebbel / install.sh
Created Dec 20, 2016
Install zeromq (zmq) library on fresh Amazon Linux (tested with amzn-ami-hvm-2016.03.3.x86_64-gp2)
View install.sh
# compilers
sudo yum install -y gcc gcc-c++
# libsodium: download, compile, install, remove intermediate files
curl https://download.libsodium.org/libsodium/releases/libsodium-1.0.10.tar.gz | tar -xz
cd libsodium-1.0.11
./configure && make && sudo make install
cd ../ && rm -rf libsodium-1.0.11
# zmq 4.2.0
@toebbel
toebbel / swedish-irregular.csv
Last active Nov 15, 2016
Swedish Irregular Verbs
View swedish-irregular.csv
English Swedish
ask (infinitiv) att pray
decide (infinitiv) att besluta
bind (infinitiv) att binda
bite (infinitiv) att bita
offer (infinitiv) att bid
become (infinitiv) att bli (bliva)
burn (infinitiv) att brinna
burst (infinitiv) att snap
break (infinitiv) att bryta
View keybase.md

Keybase proof

I hereby claim:

  • I am toebbel on github.
  • I am tobstu (https://keybase.io/tobstu) on keybase.
  • I have a public key whose fingerprint is 5048 1805 D37F 0202 19F7 0D1B C0E0 344F C97C 1EAB

To claim this, I am signing this object:

@toebbel
toebbel / install_mosh_locally.sh
Last active Sep 19, 2016 — forked from lazywei/install_mosh_locally.sh
Install mosh server without root permission
View install_mosh_locally.sh
#!/bin/sh
# this script does absolutely ZERO error checking. however, it worked
# for me on a RHEL 6.3 machine on 2012-08-08. clearly, the version numbers
# and/or URLs should be made variables. cheers, zmil...@cs.wisc.edu
mkdir mosh
cd mosh
@toebbel
toebbel / gist:5b51db15df0ca6151639
Created Jul 13, 2015
gcc5 fails to build on Ubuntu 14.10
View gist:5b51db15df0ca6151639
2015-07-13 17:32:03 +0200
make
CC=/usr/bin/gcc-4.9
CXX=/usr/bin/g++-4.9
OTHER_CPPFLAGS=-isystem/home/tobi/.linuxbrew/include
OTHER_LDFLAGS=-L/home/tobi/.linuxbrew/lib -Wl,-rpath,/home/tobi/.linuxbrew/lib
OTHER_LDFLAGS_LD64=-lcrypto
touch src/ld/configure.h
View pre-commit-clang-format
#!/bin/bash
# git pre-commit hook that runs an clang-format stylecheck.
# Features:
# - abort commit when commit does not comply with the style guidelines
# - create a patch of the proposed style changes
# modifications for clang-format by rene.milk@wwu.de
# This file is part of a set of unofficial pre-commit hooks available
# at github.
@toebbel
toebbel / gist:3331637
Created Aug 12, 2012
Example for shared code
View gist:3331637
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace SomeProject.sharedCode
{
public class SharedClass
{
You can’t perform that action at this time.