This file contains 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 characters
tell application "iTerm" | |
try | |
repeat with termWindow in windows | |
tell termWindow | |
repeat with termTab in tabs | |
tell termTab | |
repeat with termSession in sessions | |
tell termSession | |
if name contains " vim " then | |
write text ":e " & POSIX path of input |
This file contains 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 characters
on run {input, parameters} | |
tell application "Calendar" | |
tell calendar "Pomodoro" | |
repeat | |
try | |
set currentEvents to first event whose start date ≤ (current date) and end date > (current date) | |
set currentSummary to currentEvents's summary | |
display notification currentSummary with title "Focus on:" sound name "Frog" | |
delay 1500 | |
display notification currentSummary with title "Take a break from:" sound name "Frog" |
This file contains 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 characters
on run {input, parameters} | |
tell application "System Events" | |
tell process "NotificationCenter" | |
copy windows to notifications | |
repeat with notification in notifications | |
set btnNames to {} | |
set btnName to "OK" | |
set n to number of notification | |
repeat with btn in buttons of notification |
This file contains 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 characters
#!/bin/bash | |
echo -n "GitHub User: " | |
read USER | |
echo -n "GitHub Password: " | |
read -s PASS | |
echo "" | |
echo -n "GitHub Repo (e.g. foo/bar): " |