Skip to content

Instantly share code, notes, and snippets.

@yvh
yvh / set_proxy.sh
Created August 11, 2014 10:42
Set proxy in command line for ubuntu/gnome
#!/bin/bash
# Author Yannick Vanhaeren
# Version 0.1
# Functions
############
function usage
{
echo "usage: set_proxy [-p] | [-s] | [-h] mode"
@yvh
yvh / start_mamp.sh
Last active April 8, 2016 10:07
Start homebrew mamp + Mailcatcher
#!/bin/bash
echo "Starting apache2"
sudo httpd -k start
mysql.server start
sudo mailcatcher --http-port 10000 --smtp-port 25
@yvh
yvh / php-switch.sh
Last active March 12, 2018 08:41
PHP Switch
#!/usr/bin/env bash
# Author Yannick Vanhaeren
# Version 1.0.0
# Functions
############
function usage
{
echo "usage: php-switch [-a] | [-c] | [-h] | [-r] phpversion"