Skip to content

Instantly share code, notes, and snippets.

@innerfly
innerfly / mysql-docker.sh
Created May 23, 2020 06:07 — forked from spalladino/mysql-docker.sh
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
@innerfly
innerfly / default nginx configuration file
Created February 26, 2019 11:03 — forked from skbr1234/default nginx configuration file
The default nginx configuration file inside /etc/nginx/sites-available/default
##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# http://wiki.nginx.org/Pitfalls
# http://wiki.nginx.org/QuickStart
# http://wiki.nginx.org/Configuration
#
# Generally, you will want to move this file somewhere, and start with a clean
# file but keep this around for reference. Or just disable in sites-enabled.
#
@innerfly
innerfly / update.sh
Last active February 26, 2019 11:04 — forked from aschiwi/update.sh
Shell and drush commands to update the given installation
################################################################################
# Shell and drush commands to update the given installation
#
# Go to sites/all/scripts (e.g. cd sites/all/scripts) and type "sh update.sh"
# in your console/shell/Terminal.
#
# The commands have to be functional for any case after the initial installation
# installation. So on any set up after calling that script, the configuration
# must be the same.
#
@innerfly
innerfly / vhost.conf
Last active August 29, 2015 14:11
Apache 2 vhost for Vagrant
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName www.example.loc
DocumentRoot /vagrant/html/example.loc
<Directory /vagrant/html/example.loc>
Options -Indexes +FollowSymLinks +MultiViews
AllowOverride All
Order allow,deny