Welcome To Snipplr
Everyone's Recent Bash Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Inspired: http://evan-roth.com/personal-internet-cache-archive/
In the "style=" you can adjust the "height: ??px" according to the quantity of items in your cache.
0
772
posted 13 years ago by valessiobrito
ssh localhost -CgL 8080(your computer IP address or name):80
0
938
posted 13 years ago by inreflection7
Empties the keyboard buffer. Useful to discard keyboard input during a command execution inside a bash script.
Try this script without this line:
read -t 0.1 -N 255
and enter any garbage ([ENTER] and all) during these 2 seconds window...
Th...
0
824
posted 13 years ago by niglesias
Ever wanted to execute remote commands with sudo while redirecting output to a file that doesn't belong to the user you login with? Combine single quotes with double quotes!
0
700
posted 13 years ago by nohn
This is for debian but can be adapted with little trickery to any Linux distro. This enables changing the root of a shell so that the directories displayed are not too long.
Useful for dir-verbose frameworks like symfony or when managing a huge we...
0
650
posted 13 years ago by ChloeD