Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View toebbel's full-sized avatar

Tobias Frostenberg toebbel

  • Sweden
  • 10:43 (UTC +02:00)
View GitHub Profile
@toebbel
toebbel / install.sh
Created December 20, 2016 12:04
Install zeromq (zmq) library on fresh Amazon Linux (tested with amzn-ami-hvm-2016.03.3.x86_64-gp2)
# 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 November 15, 2016 18:34
Swedish Irregular Verbs
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

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 September 19, 2016 14:56 — forked from lazywei/install_mosh_locally.sh
Install mosh server without root permission
#!/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
#!/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 August 12, 2012 12:19
Example for shared code
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace SomeProject.sharedCode
{
public class SharedClass
{
@toebbel
toebbel / gist:5b51db15df0ca6151639
Created July 13, 2015 15:34
gcc5 fails to build on Ubuntu 14.10
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