Welcome To Snipplr
Everyone's Recent Bash Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Good info here too: http://www.ilisys.com.au/support/linux-password-protect/
2
3603
posted 19 years ago by jonhenshaw
After:
sudo port -v selfupdate
Update outdated ports with:
sudo port upgrade outdated
1
2205
posted 19 years ago by rhockens
After installing MacPorts, try running a selfupdate to grab all the latest MacPorts Portfiles (Portfiles contain information about how to install MacPorts software "ports"). You will need to run this command as an administrator, and it requires root...
0
1758
posted 19 years ago by rhockens
A one-liner to remove any temporary files modified over one day ago. Removes files from /tmp/
Run without the '-exec rm {} \;' part to check that it is matching the right set of files - this can be dangerous if run by root!
If you want to remove fi...
1
2286
posted 19 years ago by wolfie
[quote]
Verbose booting shows you the actual process of Mac OS X's startup. You'll see drivers get loaded and services launch. This command should work on any recent (New World) Macintosh: sudo /usr/sbin/nvram boot-args="-v". The -v flag tells the s...
0
1818
posted 19 years ago by rhockens
"...UNIX systems run scheduled maintenance routines — known as maintenance scripts — to clean up a variety of System logs and temporary files. By default, these are executed between 03:15 and 05:30 hours local time, depending on the script.
If...
1
2164
posted 19 years ago by rhockens
Run this in a terminal on mac to set your screensaver as your background. (hint: use rss visualizer for a neat effect)
Ctrl+C to stop.
1
2074
posted 19 years ago by capitalist
List the current version and installation date of every application on a OS X system, using of Spotlight.
1
1855
posted 19 years ago by zingo
Over time, your Mac's Mail program can start to feel sluggish because, like any database, over time it needs to optimized.
4
2657
posted 19 years ago by jonhenshaw
Converts whitespace that spans multiple lines into a single newline, needs improvement
0
2024
posted 19 years ago by plexus
for .bashrc, a function that cd's to a directory and lists the contents it takes ls arguments and a directory. for example, cl goes to home dir and lists contents. cl -l goes to ~/ and long lists contents. and cl -lrt public_html shows the contents o...
0
1839
posted 19 years ago by zingo
- lowQ/ is the output directory
- pass quality level from 1 to 100
2
2520
posted 19 years ago by abhiomkar
Usage: save the script to ~/scripts/my.bashrc and then source it in .bashrc.
0
2108
posted 19 years ago by thebugslayer