- Restart using
ESC-Refresh-Power
- At the prompt,
CTRL-D
to erase and install ChromeOS in Developer mode - Launch terminal -
CTRL-ALT-t
- Download and Install Crouton from (https://github.com/dnschneid/crouton)
sudo sh -e ~/Downloads/crouton -t cli-extra
sudo sh -e crouton -p "/media/removable/USB Drive/" -r trusty -t cli-extra
sudo sh -e crouton -p "/media/removable/USB Drive/" -r trusty -t xfce
- Open up port 80 if needed -
sudo /sbin/iptables -A INPUT -p tcp --dport 80 -j ACCEPT
# | |
# Minimal httpd.conf for running apache in the foreground for local php | |
# development. | |
# | |
# Setup: | |
# 1. Place this file in the root of your project. | |
# 2. Make sure the ./tmp directory exists (for the pid and lock files). | |
# 3. Update the DocumentRoot and Directory directives with the relative path to | |
# your project's document root. | |
# |
The Z shell (zsh) is a Unix shell [...]. Zsh can be thought of as an extended Bourne shell with a large number of improvements, including some features of bash, ksh, and tcsh.
Read more about ZSH at An Introduction to the Z Shell.
Choose one of the following options.
########## Install NGINX ############## | |
# Install software-properties-common package to give us add-apt-repository package | |
sudo apt-get install -y software-properties-common | |
# Install latest nginx version from community maintained ppa | |
sudo add-apt-repository ppa:nginx/stable | |
# Update packages after adding ppa |
The git command-line utility has plenty of inconsistencies http://steveko.wordpress.com/2012/02/24/10-things-i-hate-about-git/
A GUI like http://sourcetreeapp.com is often helpful, but staying on the command line usually quicker. This is a list of the commands I use most frequently, listed by functional category:
git status
list which (unstaged) files have changed
/* | |
Based on: | |
1. http://stephen.io/mediaqueries | |
2. https://css-tricks.com/snippets/css/media-queries-for-standard-devices/ | |
*/ | |
/* iPhone X in portrait & landscape */ | |
@media only screen | |
and (min-device-width : 375px) | |
and (max-device-width : 812px) |
- 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/
Press minus + shift + s
and return
to chop/fold long lines!
Just migrated it from Codepen.io to markdown. Credit goes to David Conner.
Working with DOM | Working with JS | Working With Functions |
---|---|---|
Accessing Dom Elements | Add/Remove Array Item | Add Default Arguments to Function |
Grab Children/Parent Node(s) | Add/Remove Object Properties | Throttle/Debounce Functions |
Create DOM Elements | Conditionals |
Magic words:
psql -U postgres
Some interesting flags (to see all, use -h
or --help
depending on your psql version):
-E
: will describe the underlaying queries of the\
commands (cool for learning!)-l
: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)