View slack.js
var slack = require('slack'); | |
var bot = slack.rtm.client(); | |
var token = "your_slack_token"; | |
bot.team_join(function(obj) { | |
console.log("Team join triggered"); | |
slack.chat.postMessage( | |
{ | |
token: token, | |
channel: obj.user.id, |
View printgitremote.sh
find . -maxdepth 1 -mindepth 1 -type d | while read dir; do | |
if [ -e $dir/.git ]; | |
then | |
git -C $dir remote -v | |
fi | |
done |