Skip to content

Instantly share code, notes, and snippets.

@jonpierce
jonpierce / git-pull-all
Created April 4, 2018 15:30
Perform a `git pull` on all repositories in the current directory
#!/usr/bin/env bash
BASE_DIR=$(pwd)
for git_dir in $(find . -name ".git" | cut -c 3-); do
repo_dir="${git_dir%/.git}"
echo "=========="
echo "Pulling ${repo_dir}..."
Verifying my Blockstack ID is secured with the address 1As5DMarwoeMR26NpT16Vm1NaPBXQ7NSJj https://explorer.blockstack.org/address/1As5DMarwoeMR26NpT16Vm1NaPBXQ7NSJj
Verifying I am +jonpierce on my passcard. https://onename.com/jonpierce

Keybase proof

I hereby claim:

  • I am jonpierce on github.
  • I am jonpierce (https://keybase.io/jonpierce) on keybase.
  • I have a public key whose fingerprint is 172B F436 A841 B09D 56A4 44A2 2095 6727 4E2D 7FE9

To claim this, I am signing this object:

@jonpierce
jonpierce / scrobble.py
Created January 29, 2011 19:31
Last.fm scrobbling for Pianobar, the command-line Pandora client.
#!/usr/bin/env python
"""
Last.fm scrobbling for Pianobar, the command-line Pandora client. Requires Pianobar, Python, pyLast and Last.fm API credentials.
https://github.com/PromyLOPh/pianobar/
http://code.google.com/p/pylast/
http://www.last.fm/api/account
Installation:
1) Copy this script and pylast.py to the Pianobar config directory, ~/.config/pianobar/, and make sure this script is executable