#Command Line Just jotting down the ones that I didn't know about.
-
topTable of processes -
whoami -
open .open in finder -
cd -Effectively a 'back' in windows -
ls -lalong listing that lists hidden files -
cat(egcat readme) Displays the file -
open -a "Sublime Text" [filename]Long way to open something in Sublime 3 -
Add the following to
~/.bash_profileso that files can be opened easily in sublimealias subl="open -a 'Sublime Text'" -
Also add the following to
.bash_profileto alter your bash prompt profilePS1="\W $ " -
ctrl-dcloses terminal tab -
rm -rf /deletes your hard drive; The flagris for recursive andfis for force -
whichas inwhich rubytells you the directory the command lives in -
aliaslists aliases -
Useful aliases:
lforls -laandbforcd .. -
manmanual
#Git
- Good way of passing code
- http://daringfireball.net/projects/markdown/ for Markdown tips
#Ruby
- Discusssion about syntax
- Backslash for escaping chracters
- snake case "hello_world"
- camel case "HelloWorld"
- constants are defined using all caps
- #{} is known as string interpolation
- Hash.new("brown") creates a hash where the default value is "brown"
- Exercises from RubyMonk