This file contains 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
- simple | |
- public over private | |
- personal vanity | |
- internet is global | |
- permalinks | |
- one important item per page | |
- don't break the browser | |
- don't wanker in technology | |
- a medium is not a grande | |
- break convention for your users |
This file contains 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
Find a file quickly -> Ctrl Shift R | |
Move to previous/next used files -> alt+arrow keys | |
Open Declaration -> F3 | |
Open Call Hierarchy -> Ctrl+Alt+H | |
Organize Imports -> Ctrl+Shift+O | |
Reformat source -> Ctrl+Shift+F |
This file contains 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
Installing apc in LAMP and WAMP | |
-WAMP sucks, no APC binary/dll for windows found anywhere for the newest versions of PHP ie php 5.3. And yes, the APC binary must match exactly the php version duh! | |
-LAMP was easy, just get APC from yum install | |
Setting up vhosts in LAMP | |
-Add vhost usual syntax to httpd.conf |
This file contains 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
http://learn.github.com/ | |
git merge orgin/master | |
git pull origin master | |
git push | |
git fetch origin (Fetch changes from origin Git server to master branch of local repository) | |
git merge origin/master (Merge changes from origin/master branch to master branch of local repository) |
This file contains 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
Django Setup Cheatsheet on Ubuntu | |
$ sudo apt-get install python-django | |
$ sudo apt-get install mysql-server | |
$ sudo apt-get install python-mysqldb | |
$ mysql -u root -p | |
Enter password: | |
Welcome to the MySQL monitor. Commands end with ; or \g. |
This file contains 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
general | |
/ Finds a word forwards | |
? Finds a word backwards | |
Shift + g Goes to end of file | |
Shift + m Goes to Middle of screen | |
Shift + h Goes to the Top of the screen | |
Shift + l Goes to Bottom of the screen | |
. Repeat last command | |
:f Displays line and file name |
This file contains 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 Check Public/Private Key | |
============================ | |
ssh-add -L => What keys are being accessed | |
ssh-add ssh-add ~/.ssh/adeleinr/id_rsa => Tell it to add key in different directoy | |
SSH Tunneling | |
============= | |
local$ ssh-keygen -t dsa | |
local$ scp ~/.ssh/id_dsa.pub remote |
This file contains 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
screen Configuration & Cheatsheet | |
Sample .screenrc file: | |
Here is an example .screenrc: | |
hardstatus alwayslastline | |
hardstatus string ‘%{= kG}[ %{G}%H %{g}][%= %{=kw}%?%-\ | |
Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}]\ | |
[%{B}%Y-%m-%d %{W}%c %{g}]‘ | |
screen -t Development1 0 |
This file contains 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
#Big grep | |
find Members/ -type f -print0 | xargs -0 grep "examplestring" | |
#grep line plus its context (1 line before 3 lines after) | |
grep -A 3 -B 1 “patter” filename | |
#10 biggest files in a directory | |
du -a /var | sort -n -r | head -n 10 | |
#Get a column from a file |
This file contains 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
Shift+Esc Brings Up Tab manager | |
Ctrl + Shift + T Undo closed tab | |
Ctrl + 1,2,3,..etc Brings up the first tab, 2nd, 3rd tab..etc | |
Ctrl + l Goes to the address bar | |
Ctrl + w Closes the current tab |
OlderNewer