Welcome To Snipplr
Everyone's Recent Bash Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
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
2182
posted 16 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
2296
posted 16 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
2318
posted 17 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
2250
posted 17 years ago by deepsoul
Encrypts traffic between host port 5900 and client port 5921 (view the forwarded traffic at `vnc://localhost:5921`).
0
1604
posted 17 years ago by iblis
URLs:
<http://www.chiark.greenend.org.uk/~sgtatham/utils/> <http://kitenet.net/~joey/code/moreutils/>
Use one of these nifty utilities to automatically process files in-place. Both store the results of programs which write to stdout until t...
0
1756
posted 17 years ago by deepsoul
The following shell function returns the canonicalised abolute path of a file. It resolves symbolic links, /./ and /../ as applicable. This was adapted from various sources. Related snippets on snipplr are [Find absolute path of Bash script](http:...
0
1677
posted 17 years ago by deepsoul
call for the feed using the video_id and get the xml response. see "yt:status"
0
2017
posted 17 years ago by rowntreerob