- Related Setup: https://gist.github.com/hofmannsven/6814278
- Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
- Interactive Beginners Tutorial: http://try.github.io/
- Git Cheatsheet by GitHub: https://services.github.com/on-demand/downloads/github-git-cheat-sheet/
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
| # AWS EC2 | |
| # Remove Apache and PHP old version | |
| # Install Apache 2.4, Mod_SSL and PHP 5.6 | |
| # | |
| sudo service httpd stop | |
| sudo yum erase httpd httpd-tools apr apr-util | |
| sudo yum remove php-* | |
| sudo yum install php56 | |
| sudo yum install php56-xml php56-xmlrpc php56-soap php56-gd php56-mbstring | |
| sudo yum install php56-mysqlnd |
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
| #!/bin/bash | |
| # | |
| # This script creates a chrooted user, scp enabled, on an Amazon Linux aws instance | |
| # | |
| # 2017-10-05 | |
| # | |
| # change username and password here: | |
| username="abc" |
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
| #!/bin/bash | |
| sudo add-apt-repository ppa:ondrej/php | |
| sudo apt-get update | |
| sudo apt-get install -y apache2 | |
| sudo ufw allow in "Apache Full" | |
| sudo apt-get install -y mysql-server | |
| # After running this command, select (Y), option 2, then (Y) for the rest of the prompts. | |
| sudo mysql_secure_installation |
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
| (function() { | |
| var CSSCriticalPath = function(w, d, opts) { | |
| var opt = opts || {}; | |
| var css = {}; | |
| var pushCSS = function(r) { | |
| if(!!css[r.selectorText] === false) css[r.selectorText] = {}; | |
| var styles = r.style.cssText.split(/;(?![A-Za-z0-9])/); | |
| for(var i = 0; i < styles.length; i++) { | |
| if(!!styles[i] === false) continue; | |
| var pair = styles[i].split(": "); |
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
| ( function( $, plugin ) { | |
| "use strict"; | |
| // Working with promises to bubble event later than core. | |
| $.when( someObjectWithEvents ).done( function() { | |
| console.log( 'AJAX request done.' ); | |
| } ) | |
| .then( function() { | |
| setTimeout( function() { | |
| console.log( 'AJAX requests resolved.' ); |
###Some don't work yet.
Get the top request methods
varnishtop -i RxRequest
Top urls that missed the cache.
varnishtop -i TxURL
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
| # ----------------------------------------------------------------- | |
| # .gitignore for WordPress | |
| # Bare Minimum Git | |
| # http://ironco.de/bare-minimum-git/ | |
| # ver 20150227 | |
| # | |
| # This file is tailored for a WordPress project | |
| # using the default directory structure | |
| # | |
| # This file specifies intentionally untracked files to ignore |