Skip to content

Instantly share code, notes, and snippets.

View neuni's full-sized avatar

Tobias K. neuni

  • vidiventi GmbH
  • Hamburg, Germany
View GitHub Profile
@neuni
neuni / docker.sh
Last active January 21, 2019 09:52
Mac shell script to run symfony 4 projects in docker containers. For good developer performance, only project files are mounted and vendor files are copied back to the host on composer updates.
#!/bin/bash
#################
# RUNTIME CONFIG:
PORT=8888
#################
IMAGE=kempkensteffen/nginx-symfony:7.2-dev
DOCROOT=/var/www/html
@neuni
neuni / install_docker.sh
Created March 2, 2017 15:47
Install docker + docker-compose on Ubuntu 16.04
apt-get update
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
apt-add-repository 'deb https://apt.dockerproject.org/repo ubuntu-xenial main'
apt-get update
apt-get install -y docker-engine
curl -o /usr/local/bin/docker-compose -L "https://github.com/docker/compose/releases/download/1.11.2/docker-compose-$(uname -s)-$(uname -m)"
chmod +x /usr/local/bin/docker-compose
@neuni
neuni / openvpn_on_google_cloud.md
Created February 28, 2017 13:34
Create a openVPN server on Google Cloud Platform to connect to your Google Cloud network using openVPN and/or to route your internet traffic through the VPN (Road Warrior Scenario)

Install openVPN server on Google Cloud using Pritunl

Purpose:

Create a openVPN server on Google Cloud Platform to connect to your Google Cloud network using openVPN and/or to route your internet traffic through the VPN (Road Warrior Scenario)

Create instance

  • Create new instance in default network
  • Chosse Ubuntu 16.04 LTS
@neuni
neuni / clean.md
Last active August 29, 2015 14:19
Clean /boot by removing old kernel packages

First check your current version.

uname -a

Then run the following command:

dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d'
@neuni
neuni / CURL ERROR: Problem (2) in the Chunked-Encoded data
Created February 3, 2015 14:19
CURL ERROR: Problem (2) in the Chunked-Encoded data
sudo add-apt-repository ppa:costamagnagianfranco/ettercap-stable-backports
sudo apt-get update
sudo apt-get install curl
@neuni
neuni / gist:21e9d17deec66927742d
Created June 11, 2014 14:40
ufw: Allow in for interface eth1
ufw allow in on eth1
@neuni
neuni / backup.php
Last active August 29, 2015 13:58
MySQL full / incremental backup script using innobackupex
<?php
/*
* Backup script to create full and incremental backups using innobackupex
*
* Creates a full backup once a day and periodically incremental backups using innobackupex by Percona
*
* Install: create backup folder, change mysql username/password and add a crontab calling "php -f /PATH_TO_SCRIPT/backup.php" every hour
*
* ---
* Warning:
@neuni
neuni / deployPi.sh
Created October 20, 2012 20:00
Script for deploy and run qt-pi-pograms with qtCreator
#!/bin/bash
CONFIG_FILE=$(cd `dirname "${BASH_SOURCE[0]}"` && pwd)/piConfig.cfg;
source $CONFIG_FILE
rm -fR deploy
mkdir deploy
cp * deploy/