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/sh | |
brew install dnsmasq | |
mkdir -pv $(brew --prefix)/etc/ | |
echo 'address=/.dev/127.0.0.1' > $(brew --prefix)/etc/dnsmasq.conf | |
sudo cp -v $(brew --prefix dnsmasq)/homebrew.mxcl.dnsmasq.plist /Library/LaunchDaemons | |
# sudo launchctl unload -w /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist | |
sudo launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist | |
sudo mkdir -v /etc/resolver | |
sudo bash -c 'echo "nameserver 127.0.0.1" > /etc/resolver/dev' |
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
wget http://prajith.in/downloads/apachebooster.tar.gz | |
tar -zxf apachebooster.tar.gz | |
cd apachebooster | |
sh install.sh |
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/sh | |
WORKING_DIR=/var/www/site; | |
GIT_WORK_TREE=$WORKING_DIR git checkout -f; | |
cd $WORKING_DIR && composer update -o; |
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/sh | |
if [[ -z "$1" ]]; then | |
DIR="criterion" | |
else | |
DIR=$1 | |
fi | |
mkdir $DIR | |
cd $DIR |
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
dpkg -i mod-pagespeed-*.deb | |
apt-get -f install | |
Or for CentOS you run | |
yum install at # if you do not already have 'at' installed | |
rpm -U mod-pagespeed-*.rpm |
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
/etc/apache2/mods-available/pagespeed.conf | |
The ones i decided to enable where the following: | |
ModPagespeedEnableFilters inline_preview_images # Load low quality images before loading high quality ones | |
ModPagespeedEnableFilters resize_images # Resize the images before serving them (These are then cached in Varnish) | |
ModPagespeedEnableFilters insert_image_dimensions # If any image does not have width, height set, then insert them | |
ModPagespeedEnableFilters combine_javascript # Combine javascript files into one file | |
ModPagespeedEnableFilters collapse_whitespace # Minify the HTML output of the page | |
ModPagespeedEnableFilters resize_mobile_images # Resize smaller images on mobile | |
ModPagespeedEnableFilters remove_comments # Remove comments from JS,CSS and HTML files. |
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
https://developers.google.com/speed/docs/mod_pagespeed/download |
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
brew install dnsmasq | |
mkdir -pv $(brew --prefix)/etc/ | |
echo 'address=/.dev/127.0.0.1' > $(brew --prefix)/etc/dnsmasq.conf | |
sudo cp -v $(brew --prefix dnsmasq)/homebrew.mxcl.dnsmasq.plist /Library/LaunchDaemons | |
sudo launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist | |
sudo mkdir -v /etc/resolver | |
sudo bash -c 'echo "nameserver 127.0.0.1" > /etc/resolver/dev' |
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
ssh-keygen |
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
ssh-copy-id [email protected] |
OlderNewer