Skip to content

Instantly share code, notes, and snippets.

View burturt's full-sized avatar

Alec burturt

View GitHub Profile
@burturt
burturt / repeated-screenshot.sh
Created February 15, 2021 22:32
MacOS - takes a repeated screenshot of area and clicks a location between screenshots.
#!/bin/bash
ITERATION=0
while :
do
screencapture -R 1,1,100,100 -x screenshot-$ITERATION.png
# Get the coordinates for -R using command - shift - 4. First 2 numbers when at one corner then last 2 numbers when dragging over area
ITERATION=$(($ITERATION+1))
echo "picture $ITERATION taken"
osascript -e 'tell application "System Events"
click at {1,100}
@burturt
burturt / starttmux.sh
Created November 18, 2020 05:02
tmux boot script
#!/bin/bash
tmux new-session -d -s discordBots -n voice
tmux send-keys -t discordBots:voice "cd /home/ubuntu/Auto-Voice-Channels" Enter
tmux send-keys -t discordBots:voice "./start.sh" Enter
tmux neww -n whitelist
tmux send-keys -t discordBots:whitelist "cd /home/ubuntu/discordwhitelistbot" Enter
tmux send-keys -t discordBots:whitelist "./start.sh" Enter
@burturt
burturt / pin-bot.py
Created October 14, 2020 16:49 — forked from yhay81/pin-bot.py
Discord bot who can pin messages with just adding reaction 📌 (:pushpin:)
import discord
client = discord.Client()
@client.event
async def on_ready():
print('Logged in as')
print(client.user.name)
@burturt
burturt / Java in Terminal.sublime-build
Last active July 23, 2020 20:26
Sublime text 3 build command to use terminal to compile and run java since the built-in console does not have user input. MacOSX only.
{
"shell_cmd": "osascript -e 'tell app \"Terminal\" to do script \"cd $file_path && javac *.java && java $file_base_name\" in front window activate'"
}

Keybase proof

I hereby claim:

  • I am burturt on github.
  • I am burturt (https://keybase.io/burturt) on keybase.
  • I have a public key ASAZIYJrBlg-O-K5qbl51TlgHVvYJJX41dj2VIK_HYvCeAo

To claim this, I am signing this object: