Skip to content

Instantly share code, notes, and snippets.

View oponder's full-sized avatar

Oliver Ponder oponder

View GitHub Profile
@oponder
oponder / custom-styles.css
Created June 21, 2019 04:44
Don't show notification indicator on GitHub.com
/* Don't show notification indicator on github.com */
.notification-indicator .mail-status.unread {
display: none !important;
}

Keybase proof

I hereby claim:

  • I am oponder on github.
  • I am oponder (https://keybase.io/oponder) on keybase.
  • I have a public key ASBI_N3ZyxyluV1gFDlt0TehIb1lBZSYJ1wEQaKh0Sz-0Ao

To claim this, I am signing this object:

@oponder
oponder / gist:1043432
Created June 23, 2011 19:36
Show git branch and time since last commit in a bash prompt
# Super messy and hacked together from what I saw at http://asemanfar.com/Current-Git-Branch-in-Bash-Prompt, but then with time since last commit smooshed in
export PS1="\[\033[38m\]\u\[\033[01;34m\]:\W \[\033[31m\]\`ruby -e \"git_status = (%x{git status 2> /dev/null}); last_commit = (%x{git log --pretty=format:'%at' -1 2> /dev/null}).gsub(/^\* (.+)$/, '(\1) '); seconds = Time.now.to_f - last_commit.to_f; minutes = seconds.to_f / 60; ((seconds > 60*60*2) ? (time_since_commit = ('+2h')) : (time_since_commit = minutes.to_i.to_s + 'm') if (git_status != ''));print (%x{git branch 2> /dev/null}.split(%r{\n}).grep(/^\*/).first || '').gsub(/^\* (.+)$/, '(' + time_since_commit.to_s + '|\1) ')\"\`\[\033[37m\]$\[\033[00m\] "