Check These Out
Some IO intensive process make the system unresponsive. This function periodically starts/stops a process, which hopefully releases some resources for other activities.
This function is useful when ionice is not available
This command is more for demonstrating piping to vim and jumping to a specific line than anything else.
Exit vim with :q!
+23 jumps to line 23
- make vim receive the data from the pipe
You can set the previous bash command as the terminal title by this command.
Explanation:
-trap assigns a command to execute at a given bash signal.
-in the $BASH_COMMAND you find the last command
-you can set the terminal title with the escape sequence: \e]0;this is the title\007
-to let the echo care about the backslashes give the -e to it
Since trap is a built in bash command you find more informatin in 'man bash'for more
Source: http://www.davidpashley.com/articles/xterm-titles-with-bash.html
Lets you set all the java alternatives at once to a matching version. Also has options for just changing the jre or the plugin.
This will launch a listener on the machine that will wait for a connection on port 1234. When you connect from a remote machine with something like :
nc 192.168.0.1 1234
You will have console access to the machine through bash.
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.
Same, without modules...
Probably smarter option: just use the shuf command or even sort -R.
Set a bookmark as normal shell variable
$ p=/cumbersome/path/to/project
To go there
$ to p
This saves one "$" and is faster to type ;-) The variable is still useful as such:
$ vim $p/
will expand the variable (at least in bash) and show a list of files to edit.
If setting the bookmarks is too much typing you could add another function
$ bm() { eval $1=$(pwd); }
then bookmark the current directory with
$ bm p
Installs pip packages defining a proxy