Joined May 2011
·
Posted to
Access EC2 Linux box over ssh without .pem file
over 1 year
ago
Avoid PasswordAuthentication yes
as much as possible
Posted to
See which Git command you use the most
over 1 year
ago
I've adapted to read my ~/.bash_history instead, though it's pretty much the same script:
grep ^git ~/.bash_history | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep -v "./" | column -c3 -s " " -t | sort -nr | nl | head -n10
My results are:
1 18 15.2542% co
2 15 12.7119% st
3 14 11.8644% ci
4 12 10.1695% push
5 9 7.62712% s
6 7 5.9322% di
7 7 5.9322% add
8 5 4.23729% rebase
9 5 4.23729% l
10 5 4.23729% fetch
-
co
: checkout -
st
: status -
ci
: commit -
s
: status -sb -
di
: diff -
l
: git --no-pager log -1 --name-status
Posted to
See which Git command you use the most
over 1 year
ago
@passcod there's no need to do cat ~/.histfile | grep git
, it's much better to do grep git ~/.histfile
.
Achievements
126 Karma
0 Total ProTip Views

24PullRequests Participant
Sent at least one pull request during the first 24 days of December 2014

Octopussy
Have a repo followed by a member of the GitHub team

Altruist
Increase developer well-being by sharing at least 20 open source projects

Beaver 3
Have at least three original repo where go is the dominant language

Beaver
Have at least one original repo where go is the dominant language

24PullRequests Participant
Sent at least one pull request during the first 24 days of December 2012

Lemmings 100
Write something great enough to have at least 100 watchers of the project

Raven
Have at least one original repo where some form of shell script is the dominant language

Mongoose 3
Have at least three original repos where Ruby is the dominant language

Mongoose
Have at least one original repo where Ruby is the dominant language

Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos

Forked
Have a project valued enough to be forked by someone else

Charity
Fork and commit to someone's open source project in need
I think you're missing a
\n
afterrate "\r"
, but other than that, this is pretty cool!