Tuesday, January 31, 2012
Monday, January 30, 2012
Adding Recent File List Plugin to VIM
From: http://stackoverflow.com/questions/3171284/recent-file-history-in-vim
MRU (Most Recently Used) Plugin
http://www.vim.org/scripts/script.php?script_id=521
How to add on unix:
On vim enter:
:help add-plugin
Steps:
mkdir ~/.vim
mkdir ~/.vim/plugin
cd
To Use:
While working on vim, enter the command:
1. :MRU
2. Select a file, press enter, thats it.
MRU (Most Recently Used) Plugin
http://www.vim.org/scripts/script.php?script_id=521
How to add on unix:
On vim enter:
:help add-plugin
Steps:
mkdir ~/.vim
mkdir ~/.vim/plugin
cd
~/.vim/plugin
wget -O mru.vim http://www.vim.org/scripts/download_script.php?src_id=11919To Use:
While working on vim, enter the command:
1. :MRU
2. Select a file, press enter, thats it.
ProcessBuilder Runtime Redirecting Output and Exec uting
The following discuss details of the problem:
http://stackoverflow.com/questions/5986324/processbuilder-redirecting-output
Shell redirection operators are unknown to
http://stackoverflow.com/questions/5740390/printing-my-macs-serial-number-in-java-using-unix-commands/5740673#5740673
http://stackoverflow.com/questions/3777654/problem-with-runtime
http://stackoverflow.com/questions/3259143/split-a-string-containing-command-line-parameters-into-a-string-in-java
Wonderful answer here:
ProcessBuilder redirecting output
http://stackoverflow.com/questions/5986324/processbuilder-redirecting-output
Shell redirection operators are unknown to
ProcessBuilder
. Put your command in a shell script and execute it, as shown here. Alternatively, use bash -c
, as shown here.
Or prepending "bash -c" to the exec
http://stackoverflow.com/questions/5740390/printing-my-macs-serial-number-in-java-using-unix-commands/5740673#5740673
How to use OutputStream for output redirection
http://stackoverflow.com/questions/3777654/problem-with-runtime
Split a string containing command-line parameters into a String[] in Java
http://stackoverflow.com/questions/3259143/split-a-string-containing-command-line-parameters-into-a-string-in-java
Wonderful answer here:
Here is a pretty easy alternative for splitting a text line from a file into an argument vector so that you can feed it into your options parser:
This is the solution:
public static void main(String[] args) {
String myArgs = Commandline.translateCommandline("-a hello -b world -c \"Hello world\"");
for (String arg:myArgs)
System.out.println(arg);
}
Git, How to revert to a previous commit?
Best on this is:http://stackoverflow.com/questions/4114095/git-revert-to-previous-commit-how
I like this way:
I like this way:
git checkout 0d1d7fc32 .
git commit
Also you can do the following if you have some local modifications:
git stash git checkout 0d1d7fc32 git stash pop git commit
Friday, January 27, 2012
Stop the software architecture erosion.
http://www.infoq.com/presentations/Stop-the-Software-Architecture-Erosion
Wonderful tools in this presentation and should be watched.
Wonderful tools in this presentation and should be watched.
Where Did My Architecture Go?
http://www.infoq.com/presentations/Where-Did-My-Architecture-Go
Watch this video, and make sure you understand the tools used inside it.
Eoin Woods
Watch this video, and make sure you understand the tools used inside it.
Eoin Woods
Monday, January 23, 2012
Saturday, January 14, 2012
Display files modified in the last 10 minutes on linux
find /var/log -type f -mmin -10
Wonderful command.
Wonderful command.
Thursday, January 05, 2012
Converting between openssh and ssh2
http://burnz.wordpress.com/2007/12/14/ssh-convert-openssh-to-ssh2-and-vise-versa/
Keywords: RSA, SSH, SSH2, Authentication
Subscribe to:
Posts (Atom)