Venga now - the commands I always forget
Wednesday, 14 November 2012
How to iterate through an array in bash? one liner
$ export MYARRAY=("one" "two" "three" "four")
$ for i in ${MYARRAY[@]}; do echo $i;done
one
two
three
four
and to reverse the loop
$ for (( idx=${#MYARRAY[@]}-1 ; idx>=0 ; idx-- )) ; do echo ${MYARRAY[idx]} ; done
How to scroll up using screen in linux
Crtl + a
then press
ESC
to enter copy mode.
You use the mouse wheel to scroll up and down.
Monday, 16 July 2012
Vim Regular Expressions
http://vimregex.com/
Wednesday, 20 June 2012
Good vimrc resources
Examples of changing spelling highlight modes
http://bodhizazen.net/Tutorials/vimrc
And another resource from Amir Salihefendic http://amix.dk
http://amix.dk/blog/post/19691#The-ultimate-Vim-configuration-on-Github
http://amix.dk/vim/vimrc.html
Monday, 11 June 2012
Yumex Authentication in Openbox
add the next line to your autostart script
(sleep 1 && /usr/libexec/polkit-gnome-authentication-agent-1) &
Tuesday, 15 May 2012
How to standard input in R?
readline()
Tuesday, 10 April 2012
how to use empty 'which()' results in R?
As the function returns a vector, for the cases in which the function does not find any cases matching the criteria it will return a vector length of zero
> length(which(borders$end == bands[b,'start']))
[1] 0
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)