Last active
December 27, 2015 02:59
Revisions
-
frankamp revised this gist
Nov 11, 2013 . 1 changed file with 4 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,7 @@ # Usage: sssh name_of_session *ssh_args # ex: sssh a -i identity.pem user@server.com # will connect to or create session "a" on remote server with a certain identity # Requires: bash. # function needs to be exported into your shell, ex: put in .bashrc near aliases # keep this handy http://www.mechanicalkeys.com/files/os/notes/tm.html -
frankamp revised this gist
Nov 11, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ # function needs to be exported into your shell, ex: put in .bashrc near aliases # keep this handy http://www.mechanicalkeys.com/files/os/notes/tm.html sssh() { session="$1" shift ssh -t $@ "tmux a -t $session || tmux new -s $session || screen -S $session -dr || screen -S $session || /bin/bash" -
frankamp revised this gist
Oct 31, 2013 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,5 @@ # function needs to be exported into your shell, ex: put in .bashrc near aliases # keep this handy http://www.mechanicalkeys.com/files/os/notes/tm.html ssh() { session="$1" -
frankamp revised this gist
Oct 31, 2013 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ # function needs to be exported into your shell, ex: put in .bashrc near aliases ssh() { session="$1" shift ssh -t $@ "tmux a -t $session || tmux new -s $session || screen -S $session -dr || screen -S $session || /bin/bash" } -
frankamp created this gist
Oct 31, 2013 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ # function needs to be exported into your shell, ex: put in .bashrc near aliases sssh() { screen_name="$1" shift ssh -t $@ "screen -S $screen_name -dr || screen -S $screen_name" }