Skip to content

Instantly share code, notes, and snippets.

View Gerzer's full-sized avatar

Gabriel Jacoby-Cooper Gerzer

  • Rensselaer Polytechnic Institute
  • Troy, NY
  • 15:38 (UTC -04:00)
  • X @GerzerSoftware
View GitHub Profile
@Gerzer
Gerzer / valgrind.command
Last active December 9, 2020 23:54
Easily run Valgrind on a remote machine
#!/bin/bash
user="" # Server user
address="" # Server address
ssh $user@$address << ENDSSH
cd ~/
mkdir valgrind/
ENDSSH
scp *.cpp $user@$address:~/valgrind/
scp *.h $user@$address:~/valgrind/
activate application "Discord"
repeat 5 times
tell application "System Events"
repeat 10 times
keystroke "."
key code 36 using shift down
end repeat
key code 36
delay 1
end tell