##Here's the Sticky Footer simplified code as of today because they're always optimizing it and this is GOOD: http://stackoverflow.com/a/22948396
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set default behaviour, in case users don't have core.autocrlf set. | |
* text | |
# Explicitly declare text files we want to always be normalized and converted | |
# to native line endings on checkout. | |
*.html text | |
*.css text | |
*.js text | |
# Declare files that will always have LF line endings on checkout. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Recursively add a .gitignore file to all directories | |
# in the working directory which are empty and don't | |
# start with a dot. Helpful for tracking empty dirs | |
# in a git repository. | |
find . -type d -regex ``./[^.].*'' -empty -exec touch {}"/.gitignore" \; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo chgrp -R www-data /var/www/sitename.com | |
sudo chmod -R g+w /var/www/sitename.com | |
find /var/www/sitename.com -type d -exec chmod g+s {} \; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "uec-images.ubuntu.com/trusty64" | |
config.vm.network "forwarded_port", guest: 80, host: 8080, host_ip: "127.0.0.1" | |
config.vm.provider "virtualbox" do |vb| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create database if not exists `${DB_NAME}`; | |
grant all privileges on `${DB_NAME}`.* TO `${DB_USERNAME}`@`localhost` identified by '123'; | |
grant all privileges on `${DB_NAME}`.* TO `${DB_USERNAME}`@`%` identified by '123'; | |
mysql --force --user ${DB_USERNAME} --password ${DB_PASSWORD} ${DB_NAME} < ${DB_NAME}.sql |
OlderNewer