-
Notifications
You must be signed in to change notification settings - Fork 78
/
shellactivities
56 lines (46 loc) · 2.12 KB
/
shellactivities
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/bin/sh
# Git Be
# Will contact the GitHub API to retrieve name and email information about a user
# and uses that data to change the local (repo-scoped) configuration for user.name and user.email
#
# Usage: gitbe githubteacher
function gitbe {
echo "Looking up $1 on GitHub.com..."
data=$(curl -s https://api.github.com/users/$1)
name=$(echo $data | grep name\": | sed 's/ \"name\": \"\(.*\)\",/\1/')
email=$(echo $data | grep email\": | sed 's/ \"email\": \"\(.*\)\",/\1/')
git config --local user.name "$name"
git config --local user.email $email
echo "Your local configuration has been modified."
echo "You are now committing as: $name <$email>."
}
# Productivity Sessions
function work.ppap() {
open "http://presentationpatterns.com"
open "http://www.amazon.com/Presentation-Patterns-Techniques-Crafting-Presentations/dp/0321820800/ref=sr_1_1?ie=UTF8&qid=1347145745&sr=8-1&keywords=presentation+patterns"
open "https://github.com/presentationPatterns"
open "https://github.com/PresentationPatterns/presentationpatterns.github.com"
open "~/Dropbox/AI-Clients/Presentation-Patterns-Book"
open "~/Dropbox/PPAP"
iterm "~/Dropbox/AI-Clients/Presentation-Patterns-Book" "PPAP-Book" "black"
iterm "~/Dropbox/PPAP" "PPAP-Dropbox" "black"
iterm "~/Dropbox/AI-Clients/Presentation-Patterns-Book/presentationpatterns.github.com" "PPAP-Site" "black"
}
function work.teachgit() {
open "https://github.com/githubtrainer/hellogitworld" -a "Firefox"
open "https://github.com/githubstudent" -a "Google Chrome"
open "https://github.com/github/teach.github.com"
open "https://github.com/training/free"
open "https://github.com/matthewmccullough/dotfiles"
open "~/Documents/Temp/Scratch"
iterm "~/Documents/Temp/Scratch" "Scratch" "black"
}
function work.gittraining() {
open "https://github.com/githubtraining"
open "https://github.com/github/training/issues"
open "https://github.com/github/teach.github.com"
open "~/Documents/Code/GitHub"
open "~/Documents/Code/GitHub/training.github.com_git"
open "~/Documents/Code/GitHub/GUTS_git"
open "~/Documents/Code/GitHub/teach.github.com"
}