Skip to content

Instantly share code, notes, and snippets.

Avatar

Michael Hotan mhotan

  • Flexe
  • Seattle, WA
View GitHub Profile
@mhotan
mhotan / ssh-multi.sh
Last active Nov 30, 2016 — forked from dmytro/ssh-multi.sh
Start multiple synchronized SSH connections with Tmux
View ssh-multi.sh
#!/bin/bash
# ssh-multi
# D.Kovalov
# Based on http://linuxpixies.blogspot.jp/2011/06/tmux-copy-mode-and-how-to-control.html
# a script to ssh multiple servers over multiple tmux panes
starttmux() {
if [ -z "$HOSTS" ]; then
View gist:1c2cb460749d56c65037
apply plugin: 'java'
apply plugin: 'scala'
// For those using Eclipse or IntelliJ IDEA
apply plugin: 'eclipse'
apply plugin: 'idea'
def findPlay20(){
def pathEnvName = ['PATH', 'Path'].find{ System.getenv()[it] != null }
for(path in System.getenv()[pathEnvName].split(File.pathSeparator)){
for(playExec in ['play.bat', 'play.sh', 'play']){