Skip to content

Instantly share code, notes, and snippets.

View kramimus's full-sized avatar

Mark Whitney kramimus

View GitHub Profile
' '.join(i.public_ip for i in Cluster.objects.get(id=ID).instances.all())
ssh-keygen -b 4092 -f /tmp/id_rsa
for ip in $IPS; do ssh -i ~/.ssh/devkey ec2-user@$ip hostname; rsync -zaP /tmp/id_rsa* ec2-user@$ip:/tmp/; ssh -i ~/.ssh/devkey ec2-user@$ip 'sudo -u root cp /tmp/id_rsa* /root/.ssh/; sudo -u root cat /root/.ssh/id_rsa.pub | sudo -u root tee -a /root/.ssh/authorized_keys; sudo -u root sed -i "s/#PermitRoot/PermitRoot/" /etc/ssh/sshd_config; sudo -u root service sshd restart'; done
ssh ec2-user@<masteR> 'for ip in $(cat /enc/user/machinefile); do ssh $ip hostname; rsync -zaP /var/lib/gridengine $ip:/var/lib/; done'
adduser sgeadmin
cd /tmp/
wget http://dl.dropbox.com/u/47200624/respin/ge2011.11.tar.gz
tar -xzvf ge2011.11.tar.gz
IPS=
@kramimus
kramimus / gist:7c861493518234f585c43a48bdb9f6e6
Last active May 2, 2018 21:00
fpga simulation setup script
sudo fpga-load-local-image -S 0 -I agfi-00a74c2d615134b21
TOOLS_ROOT=/home/centos
$TOOLS_ROOT/installed/firesim/bin/boot-firesim-singlenode
# ping 30 times, 1 sec per ping
ping -c 30 192.168.1.10
# normally people do this with expect, but looks like there is a tool called sshpass that you can also yum install
@kramimus
kramimus / keybase.md
Last active August 29, 2015 13:57
keybase

Keybase proof

I hereby claim:

  • I am kramimus on github.
  • I am kramimus (https://keybase.io/kramimus) on keybase.
  • I have a public key whose fingerprint is 103C E381 391C C7BE 7F9C 9962 EF6E D8E7 C37B 3370

To claim this, I am signing this object: