##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
| # 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 |
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
| curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar | |
| php wp-cli.phar --info | |
| chmod +x wp-cli.phar | |
| sudo mv wp-cli.phar /usr/local/bin/wp | |
| wp --info | |
| wp core download | |
| #export DB_NAME=awesome ; export DB_USERNAME=awesome ; export DB_PASSWORD=123 |
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
| # originated from: | |
| # https://perfp.wordpress.com/2010/08/25/mass-converting-video-files-using-powershell-and-handbrake/ | |
| $outdir = "C:\Temp\convert-avi" | |
| [Environment]::CurrentDirectory=(Get-Location -PSProvider FileSystem).ProviderPath | |
| $files = Get-Childitem -Recurse -Include "*.avi" | |
| foreach ($file in $files) { | |
| $subpath = $file.DirectoryName.Replace((Get-Location -PSProvider FileSystem).ProviderPath , "") | |
| $destdir = $outdir + $subpath |
OlderNewer