Skip to content

Instantly share code, notes, and snippets.

@mcescalante
mcescalante / gist:7227148
Created October 30, 2013 04:17
Open manpage and search for string
man foobar | less +/searched_string
@mcescalante
mcescalante / tardaysago.sh
Last active December 25, 2015 02:39
Find files modified since x days ago, tar them
#tar files in current directory modified since 1 day ago
find . -mtime -1 -exec tar --no-recursion -czf name.tgz {} +
@mcescalante
mcescalante / gist:6803535
Created October 3, 2013 02:02
FreeNAS 8.2 rsync remote to local, non-standard port
#Sync all verbose with progress from remote server to local. This is intended as a one shot sync, not to be scheduled as a cron job. Written for use with FreeNAS 8.2 as non-standard ports take a bit of work to get working.
#XXXX after the p flag should be replaced with the port.
rsync -avPz -e "ssh -pXXXX $portNumber" user@remote:/path/to/files/ /local/path/