Check These Out
You have to do that before :
$ cd ~/.mozilla/firefox/
Require bash. If you use something else, you may use
$ echo | python
Forked from ArkSeth python script.
Sends the "USR1" signal every 1 second (-n 1) to a process called exactly "dd".
The signal in some systems can be INFO or SIGINFO ...
look at the signals list in: man kill
Read this before you down voting and comment that it is not working -> Wont work on latest versions ~75> since database file is locked and has to be decrypted. This is useful if you have an old hdd with a chrome installation and want to decrypt your old passwords fast.
Grab X11 input and create an MPEG at 25 fps with the resolution 800x600
Finds the string in every file in an entire directory and all its subdirectories and replaces it with a new string. Especially useful when changing a machine's IP address or hostname - run it on /etc.
Create a exact mirror of the local folder "/root/files", on remote server 'remote_server' using SSH command (listening on port 22)
(all files & folders on destination server/folder will be deleted)
Run inside Command Prompt (cmd.exe) as admin.
Note that you must close explorer.exe first, and even so some files will not be deleted, will say "Access is denied."
To definitely delete them enter with another admin user or from other operating system and access the drive.
Rather than complicated and fragile paths relative to a script like "../../other", this command will retrieve the full path of the file's repository head. Safe with spaces in directory names. Works within a symlinked directory. Broken down:
$cd "$(dirname "${BASH_SOURCE[0]}")"
temporarily changes directories within this expansion. Double quoted "$(dirname" and ")" with unquoted ${BASH_SOURCE[0]} allows spaces in the path.
$git rev-parse --show-toplevel
gets the full path of the repository head of the current working directory, which was temporarily changed by the "cd".
Tested on MacOS and GNU/Linux.
It works in dirs containing files starting with '-'.
It runs 'du' only once.
It sorts according to size.
It treats 1K=1000 (and not 1024)