Check These Out
using `cat` under *NIX - just because you help manage M$ Windoze
*doesn't* mean you should have to resort to using it!
You can also make custom win32 installers with the 7zip "extras" package:
$ cat /path/to/7zSD.sfx /path/to/config.txt /path/to/archive > setup.exe
usage:
:[rang]ret[!][tabstop value]
python is indent sensitive, after command
:set list
you may see your codes are mixed with tab and space
ret can help you to convert space to tab or tab to space
This will perform one of two blocks of code, depending on the condition of the first. Essentially is a bash terniary operator.
To tell if a machine is up:
$ ping -c1 machine { echo succes;} || { echo failed; }
Because of the bash { } block operators, you can have multiple commands
$ ping -c1 machine && { echo success;log-timestamp.sh }|| { echo failed; email-admin.sh; }
Tips:
Remember, the { } operators are treated by bash as a reserved word: as such, they need a space on either side.
If you have a command that can fail at the end of the true block, consider ending said block with 'false' to prevent accidental execution
* Replace USERNAME with the desired svn username
* Replace the first YYYY-MM-DD with the date you want to get the log (this starts at the midnight event that starts this date)
* Replace the second YYYY-MM-DD with the date after you want to get the log (this will end the log scan on midnight of the previous day)
Example, if I want the log for December 10, 2010, I would put {2010-12-10}:{2010-12-11}
This is the way to get access to your Firefox history...
options: -n line nbrs, -i ignore case, -s no "doesn't exist", -I ignore binary
args: * for all files of current dir (not hidden), .[!.]* for all hidden files
I don't include by default the -R (recursive) option, which is not always useful. You add it by hand when needed.
this will find text in the directory you specify and give you line where it appears.
Modify file in place to remove empty lines and create a backup of the original with the extension .bak
You can get one specific line during any procedure. Very interesting to be used when you know what line you want.