Skip to content

Instantly share code, notes, and snippets.

@surjikal
Created May 24, 2012 15:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save surjikal/2782293 to your computer and use it in GitHub Desktop.
Save surjikal/2782293 to your computer and use it in GitHub Desktop.
Commands

Access remote port from local machine:

ssh -f -L <local_port>:localhost:<remote_port> <remote_host> -N

Execute command on file/dir change:

watchmedo shell-command --patterns="*.rmd" --command="Rscript compile.rscript"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment