Removing files older than 7 days
December 9th, 2009 Filed Under General, Scripts
find ./ -type f -mtime +7 -exec rm -f {} \;
http://www.unix.com/unix-dummies-questions-answers/37258-removing-files-older-than-7-days.html
Post Linx
Permalink | Trackback |
|
Print This Article | Leave a Comment
Firebrand
December 9th, 2009 Filed Under Arch, Firefox, General, Scripts, X11
http://bbs.archlinux.org/viewtopic.php?pid=597312#p597312
Post Linx
Permalink | Trackback |
|
Print This Article | Leave a Comment
Sync with Unison
October 8th, 2009 Filed Under General, Scripts
### ROOT SYNC PATHS ###
# first root is my home directory on this laptop
root = /home/micah/
# second directory is my desktop's home folder over SSH
root = ssh://micah@192.168.1.2//home/micah/
### PATHS TO SYNCHRONIZE ###
# sync all of my email data (will ignore parts later)
path = .mozilla-thunderbird/micah.default/
# only sync up bookmarks for firefox
path = .mozilla/firefox/micah.default/bookmarks.html
# sync all gFTP for the bookmarks and cache
path = .gftp/
# gaim/pidgin IM client logs and settings
path = .purple/
# MySQL Query Browser information and history
path = .mysqlgui/
# Personal folders
path = finances/
path = websites/
path = projects/
path = robotics/
path = email_signature
### IGNORE RULES ###
# ignore archived backups
ignore = Path websites/archive/*
# ignore the extensions folder in thunderbird as they are architecture-specific
ignore = Path .mozilla-thunderbird/micah.default/extensions/*
# I don't think these will break anything, but let's ignore anyway
ignore = Path .mozilla-thunderbird/micah.default/compatibility.ini
ignore = Path .mozilla-thunderbird/micah.default/install.log
Synchronizing 2 Ubuntu Systems with Unison

Post Linx
Permalink | Trackback |
|
Print This Article | Leave a Comment
Script to mount/unmount drive
April 21st, 2009 Filed Under Scripts
#!/bin/bash
DRIVE="/media/tera"
if mount | grep -q $DRIVE; then
umount $DRIVE
else
mount $DRIVE
fi
Arch Linux Forums / Post your handy self made command line utilities
Post Linx
Permalink | Trackback |
|
Print This Article | Leave a Comment
iRedMail: Build A Full-Featured Mail Server With LDAP, Postfix, RoundCube, Dovecot, ClamAV, DKIM, SPF On CentOS 5.x
April 15th, 2009 Filed Under General, Mail, Mysql, Scripts

Post Linx
Permalink | Trackback |
|
Print This Article | Leave a Comment
Color man pages
April 6th, 2009 Filed Under General, Scripts
You can add the values to your ~/.bashrc so that they are always used:
# Less Colors for Man Pages
export LESS_TERMCAP_mb=$’\E[01;31m’ # begin blinking
export LESS_TERMCAP_md=$’\E[01;38;5;74m’ # begin bold
export LESS_TERMCAP_me=$’\E[0m’ # end mode
export LESS_TERMCAP_se=$’\E[0m’ # end standout-mode
export LESS_TERMCAP_so=$’\E[38;5;246m’ # begin standout-mode – info box
export LESS_TERMCAP_ue=$’\E[0m’ # end underline
export LESS_TERMCAP_us=$’\E[04;38;5;146m’ # begin underline
Less Colors For Man Pages « Helpful Linux Tidbits
Post Linx
Permalink | Trackback |
|
Print This Article | Leave a Comment
rmnl — remove new line characters with tr, awk, perl, sed or C/C++
March 16th, 2009 Filed Under General, Scripts
tr -d '\n' < days.txt
cat days.txt | tr -d '\n'
Linux Blog » rmnl — remove new line characters with tr, awk, perl, sed or C/C++

Post Linx
Permalink | Trackback |
|
Print This Article | Leave a Comment
Howto block DDOS attacks
March 16th, 2009 Filed Under General, Scripts
Howto block DDOS attacks on Ubuntu | Share your knowledge!

Post Linx
Permalink | Trackback |
|
Print This Article | Leave a Comment
Quick and Dirty : Vimdiff Tutorial
February 2nd, 2009 Filed Under General, Scripts, Vim
Keyboard Shortcuts:
do - Get changes from other window into the current window.
dp – Put the changes from current window into the other window.
]c – Jump to the next change.
[c - Jump to the previous change.
Ctrl W + Ctrl W – Switch to the other split window.
Core Dump: Quick and Dirty : Vimdiff Tutorial
Post Linx
Permalink | Trackback |
|
Print This Article | Leave a Comment
Archmbox simple email archiver
December 9th, 2008 Filed Under General, Mail, Scripts
Post Linx
Permalink | Trackback |
|
Print This Article | Leave a Comment