Skip to content

Instantly share code, notes, and snippets.


Tobias Hochgürtel tobiashochguertel

View GitHub Profile
tobiashochguertel / build
Created Jun 29, 2020 — forked from svdgraaf/build
nginx + geo ip + secure download
View build
$ ./configure --add-module=/home/svdgraaf/tmp/nginx/ngx_http_bytes_filter_module-57365655ee44 --with-http_geoip_module --add-module=/home/svdgraaf/tmp/nginx/ngx_secure_download

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
Cycle iTerm Windows + backtick (true of all mac apps and works with desktops/mission control)
tobiashochguertel / gist:e3cd0e2d4033e243b40bc9031fba67d1
Created Jun 13, 2020 — forked from jtdp/gist:5443297
See changes before pulling from remote git repository
View gist:e3cd0e2d4033e243b40bc9031fba67d1
# fetch the changes from the remote
git fetch origin
# show commit logs of changes
git log master..origin/master
# show diffs of changes
git diff master..origin/master
# apply the changes by merge..
tobiashochguertel / install-tmux
Created Mar 12, 2019 — forked from suhlig/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
View Jenkinsfile
pipeline {
// run on jenkins nodes tha has java 8 label
agent { label 'java8' }
// global env variables
environment {
stages {
stage('Build with unit testing') {
tobiashochguertel /
Created Jun 21, 2018 — forked from cheungnj/
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
tobiashochguertel / user.conf
Created Jun 12, 2018 — forked from JamieMason/user.conf
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/
tobiashochguertel / singleton.js
Created May 29, 2018 — forked from murdockcrc/singleton.js
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 {
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
View gist:125a52344f02d77cf1b089e2239ec524
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"
You can’t perform that action at this time.