This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ nodejs --version && lua -v && luajit -v | |
| v0.10.28 | |
| Lua 5.2.3 Copyright (C) 1994-2013 Lua.org, PUC-Rio | |
| LuaJIT 2.0.3 -- Copyright (C) 2005-2014 Mike Pall. http://luajit.org/ | |
| $ nodejs --expose-gc test.js && lua test.lua && luajit test.lua | |
| ---- | |
| nodejs | |
| ---- | |
| 1804856 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Usage: Either sshcat host:file or sshcat host file | |
| # handy as a drop-in replacement for normal cat in piped oneliners, etc. | |
| sshcat() { | |
| if [[ "$1" == *:* ]]; then | |
| ssh "${1%:*}" "cat ${1##*:}"; | |
| else | |
| ssh "$1" "cat $2"; | |
| fi | |
| } |
NewerOlder