Just my notes
Monday, January 30, 2017
show full path of a file
›
readlink -f filename gives the full absolute path. but if the file is a symlink, u'll get the final resolved name.
Wednesday, January 13, 2016
remove bash history under Linux
›
history -c history -w
vim scp, etc
›
vimdiff a.sas scp://user@lpwcsmd1//data/b.sas note that / is used to separate host and path, so there are two slashes above.
Wednesday, January 21, 2015
git instaweb
›
`git instweb` can open a local http server for a git repo
Tuesday, November 18, 2014
imapsync all emails to one folder
›
use --regextrans2 "s/.*/folder_on_Bmail\/$&/"
Monday, October 27, 2014
promise in R
›
promise in R #define PROMSXP 5 /* promises: [un]evaluated closure arguments */ reference pryr and see force in R
Tuesday, September 23, 2014
see the version number of mac on command line
›
$ sw_vers ProductName: Mac OS X ProductVersion: 10.9.5 BuildVersion: 13F34
›
Home
View web version