Welcome To Snipplr
Everyone's Recent Bash Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
In Snow Leopard, bash treats colors differently. All the color codes that are escaped with \e won't be recognized. The new escape sequence is \033.
The list below works perfectly in Snow Leopard
0
804
posted 15 years ago by AzizLight
Put this into your ~/.bashrc script and you should see the Git/SVN status in your prompt if your working directory is a sandbox.
0
1062
posted 15 years ago by zingo
/!\Notice: Change the ci_dir to wherever your ci folder is on line 3. /!\
Usage: ci [name of project]
Gives the project a name based on the current date if the user didn't provide one. Option to move the app directory outside of the system dire...
2
865
posted 15 years ago by AzizLight
The tetex implementation of BibTeX, LaTeX's bibliography tool, forcibly breaks lines above a certain length (79 chars) by inserting % signs and line feeds, unless they can be broken between words. This is a problem when URLs are referenced, or if co...
0
923
posted 15 years ago by deepsoul
When using `ln` to create a link in a different directory, the semantics of creating hard and symbolic links differ. That is because a hard link contains a direct reference to its target's data, while a symbolic link is just a string containing a (p...
1
851
posted 15 years ago by deepsoul
Encrypts traffic between host port 5900 and client port 5921 (view the forwarded traffic at `vnc://localhost:5921`).
0
639
posted 15 years ago by iblis