Skip to content

Instantly share code, notes, and snippets.

View wsagen's full-sized avatar

Genevieve Eddison wsagen

View GitHub Profile
@birchestx
birchestx / install_magento2_with_db
Last active December 15, 2017 17:22
Install script for magento2 with database, assumes you are running from www.localhost.com/20
#!/bin/bash
# Sets up a database with a magento2 installation. This assumes you are running from under your httpdocs/<release> location and have www.localhost.com in your /etc/hosts file
# To run type : install_magento2 <dirname> <password> <release>
# password is used for the datbase user and the magento admin password
if [ $# -eq 0 ]; then
echo "No arguments supplied"
echo "Usage: `basename $0` <dirname> <password> <release>"
echo "e.g install_magento2.sh mage2 password 21"
exit 1
@birchestx
birchestx / docker-cheat-sheet
Last active October 15, 2019 00:32
Docker cheat commands
#Build new Image (uses dockerfile in cwd)
docker build -t <your-desired-image-name> .
#Run Docker Container
docker run <image-name>
#Stop Docker Container (if you have used --name you can then stop with actual alias name)
docker stop <image-id>
#Show running Docker Images
git branch -r --merged | grep -v master | sed 's/origin\///' | xargs -n 1 git push --delete origin
git branch --merged master | grep -v master | xargs git branch -d