This procedure is tested on Mac OS X 10.10.5 with Developpers tools installed (xCode).
PHP 5.6 installed with Homebrew.
Download the following files from Oracle website (yes, you need to create an account and accept terms):
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This procedure is tested on Mac OS X 10.10.5 with Developpers tools installed (xCode).
PHP 5.6 installed with Homebrew.
Download the following files from Oracle website (yes, you need to create an account and accept terms):
cd ~
wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
tar -xvf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
cd wkhtmltox/bin/
sudo mv wkhtmltopdf /usr/bin/wkhtmltopdf
sudo mv wkhtmltoimage /usr/bin/wkhtmltoimage
sudo ln -s /usr/bin/wkhtmltopdf /usr/local/bin/wkhtmltopdf
Open a terminal. | |
Install ack-grep by typing sudo apt-get install ack-grep | |
Change to the directory you want to search under, and type ack-grep foo. it lists out all the matches in all files under that directory. |
This procedure is tested on Mac OS X 10.12.6 with Developpers tools installed (xCode).
PHP 5.6 installed with https://php-osx.liip.ch/.
Download the following files from Oracle website (yes, you need to create an account and accept terms):
#Steps to install latest Laravel, LEMP on AWS Ubuntu 16.4 version. This tutorial is the improvised verision of this tutorial on Digitalocean based on my experience.
Run the following commands in sequence.
sudo apt-get install -y language-pack-en-base
sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install zip unzip
# Breakdown of the process | |
# NOTE: I am searching for branches merged into Develop because I'm using GiT flow | |
# 1) git branch -r --merged develop | |
# Get remote branches that have been merged into develop | |
# 2) grep -v -E '(\*|master|develop)' | |
# From those branches returned by the above command, | |
# exclude: master, develop, & the currently selected branch (the branch name beggining with an asterisk) |
Nginx Tip 1. – Organize Nginx Configuration Files | |
Normally Nginx configuration files are located under /etc/nginx path. | |
One good way to organize configuration files is use Debian/Ubuntu Apache style setup: | |
## Main configuration file ## | |
/etc/nginx/nginx.conf | |
## Virtualhost configuration files on ## | |
/etc/nginx/sites-available/ |
wget \ | |
--recursive \ # Download the whole site. | |
--no-clobber \ # Don't overwrite existing files. | |
--page-requisites \ # Get all assets/elements (CSS/JS/images). | |
--adjust-extension \ # Save files with .html on the end. | |
--span-hosts \ # Include necessary assets from offsite as well. | |
--convert-links \ # Update links to still work in the static version. | |
--restrict-file-names=windows \ # Modify filenames to work in Windows as well. | |
--domains yoursite.com \ # Do not follow links outside this domain. | |
--no-parent \ # Don't follow links outside the directory you pass in. |