Skip to content

Instantly share code, notes, and snippets.


Tobias Hochgürtel tobiashochguertel

Block or report user

Report or block tobiashochguertel

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
suhlig / install-tmux
Last active Feb 6, 2020 — forked from philipsd6/install-tmux
Install tmux 2.7 on rhel/centos 7
View install-tmux
# Install tmux on rhel/centos 7
# install deps
yum install gcc kernel-devel make ncurses-devel
curl -OL
tar -xvzf libevent-2.1.8-stable.tar.gz
cd libevent-2.1.8-stable
./configure --prefix=/usr/local
cheungnj /
Last active Nov 4, 2019
Convert asciidoc to Github Flavored Markdown
# Adapted from
# Using asciidoctor and pandoc
# Install pandoc and asciidoctor
$ sudo apt install asciidoctor
$ sudo wget
$ sudo dpkg -i pandoc-
# Convert asciidoc to docbook using asciidoctor
miroslavtamas /
Created Apr 22, 2016
Install Apache Maven 3.3.9 on CentOS
tar xzf apache-maven-3.3.9-bin.tar.gz
mkdir /usr/local/maven
mv apache-maven-3.3.9/ /usr/local/maven/
alternatives --install /usr/bin/mvn mvn /usr/local/maven/apache-maven-3.3.9/bin/mvn 1
alternatives --config mvn
domenic / angularpromise.js
Created Jan 21, 2016
How to subclass a promise
View angularpromise.js
// ES6
class AngularPromise extends Promise {
constructor(executor) {
super((resolve, reject) => {
// before
return executor(resolve, reject);
// after
rafaeltuelho /
Created Jul 29, 2015
installing gosu on a centos docker box
# Setup gosu for easier command execution
RUN gpg --keyserver --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 \
    && curl -o /usr/local/bin/gosu -SL "" \
    && curl -o /usr/local/bin/gosu.asc -SL "" \
    && gpg --verify /usr/local/bin/gosu.asc \
    && rm /usr/local/bin/gosu.asc \
    && rm -r /root/.gnupg/ \
    && chmod +x /usr/local/bin/gosu
murdockcrc / singleton.js
Created Jul 29, 2015
NodeJS Singleton pattern
View singleton.js
exports = module.exports = (function () {
// Instance stores a reference to the Singleton
var instance;
function init() {
// Singleton
// Private methods and variables
return {
AndreasPizsa / gist:4eea7957553ed661c4df
Created Nov 7, 2014
Fix Bluetooth Audio hickups on Mac OS X
View gist:4eea7957553ed661c4df
defaults write "Apple Bitpool Max (editable)" 80
defaults write "Apple Bitpool Min (editable)" 48
defaults write "Apple Initial Bitpool (editable)" 40
defaults write "Negotiated Bitpool" 48
defaults write "Negotiated Bitpool Max" 53
defaults write "Negotiated Bitpool Min" 48
defaults write "Stream – Flush Ring on Packet Drop (editable)" 30
defaults write "Stream – Max Outstanding Packets (editable)" 15
defaults write "Stream Resume Delay" "0.75"
mrchief / OpenWithSublimeText2.bat
Last active Jan 23, 2020
Add "Open with Sublime Text 2" to Windows Explorer Context Menu (including folders)
View OpenWithSublimeText2.bat
@echo off
SET st2Path=C:\Program Files\Sublime Text 2\sublime_text.exe
rem add it for all file types
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 2" /t REG_SZ /v "" /d "Open with Sublime Text 2" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 2" /t REG_EXPAND_SZ /v "Icon" /d "%st2Path%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 2\command" /t REG_SZ /v "" /d "%st2Path% \"%%1\"" /f
rem add it for folders
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 2" /t REG_SZ /v "" /d "Open with Sublime Text 2" /f
JamieMason / user.conf
Created Aug 3, 2012
Apache .conf to disable caching for localhost
View user.conf
<Directory "/Users/jdog/Sites/">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
<VirtualHost *:80>
ServerName localhost
DocumentRoot /Users/jdog/Sites/
You can’t perform that action at this time.