This file contains hidden or 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
require "discordrb" | |
require "httparty" | |
def notify_slack(message) | |
HTTParty.post( | |
"https://hooks.slack.com/services/xxx/xxxx/xxxxx", | |
body: JSON.dump({ text: message }), | |
headers: { "Content-Type" => "application/json" } | |
) | |
end |
This file contains hidden or 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
# add to ~/.bash_profile | |
multigit() { find .. -maxdepth 2 -mindepth 2 -type d -name ".git" -exec dirname {} \; | while read repodir; do echo "-- REPO: $repodir"; git -C $repodir $*; done; } | |
mgs() { multigit status -s; } |