Skip to content

Instantly share code, notes, and snippets.

View athanasius-kircher's full-sized avatar

Julius athanasius-kircher

View GitHub Profile
@athanasius-kircher
athanasius-kircher / switch-maria-db.sh
Created November 7, 2017 13:55
Shell script to switch between different local Maria DB Installations
#!/bin/bash
# Creator:Julius Boellmann
# Email: jb@converia.de
brew_prefix=$(brew --prefix | sed 's#/#\\\/#g')
brew_array=("10.1" "latest")
found=0
for i in "${brew_array[@]}"
do
if [[ "$i" == "$1" ]]
@athanasius-kircher
athanasius-kircher / add-apache-vhost
Last active September 7, 2017 09:18
Shell script to add a vhost entry to your apache pointing to current folder, for quick local development setup. Some basic things have to be setuped, as local main domain, with a local certificate. Bases on a brewer apache installation.
#!/bin/bash
#Config this according to your needs, all variables are currently mandatory
#-------------------------------------------------------------------------------
#Your local main dev domain
MAIN_DOMAIN_NAME=".ls-boellmann.local"
#Path to cert apache uses
CERT_PATH="/usr/local/etc/apache2/2.4/crt/boellmann_dev_local.crt"
#Path to key apache uses
KEY_PATH="/usr/local/etc/apache2/2.4/crt/Julius_dev_local_neu.pem"