If you're like me and you use semver for versioning your tags, you probably hate when you do this:
$ git tag -l
0.1.0
0.10.0
0.2.0
0.3.0
0.3.1
0.4.0
0.5.0
#!/bin/bash | |
# To download your BellaBaby photos | |
# (people who come to the hospital and take photos of you and your newborn) | |
# Note: They are watermarked - you have to pay (big bucks) for the originals! | |
# This seemed to be the convention for my photos: | |
TAG="<photographer_name><date><your_last_name>" | |
# Files 1-9 have slightly different structure... |
If you're like me and you use semver for versioning your tags, you probably hate when you do this:
$ git tag -l
0.1.0
0.10.0
0.2.0
0.3.0
0.3.1
0.4.0
0.5.0
#!/bin/bash | |
# Strip out comments/whitespace/etc. from requirements.txt | |
if [ -z "$1" ] | |
then | |
echo "Missing input requirements.txt dep!" | |
exit 1 | |
fi |
Some scripts for finding the distance between the location of an image and the Bank of America Building in Atlanta (or maybe you have a better use-case).
$ ./image-distance.sh <filename.jpg>
import time | |
from bs4 import BeautifulSoup | |
import requests | |
BASE_URL = "http://newyork.craigslist.org" | |
URL = "http://newyork.craigslist.org/search/?sort=rel&areaID=3&subAreaID=&query=bicycle&catAbb=sss" |
A command line API for getting leaderboard data about the PGA Masters Tournament.
Based on http://www.espn.com/golf/leaderboard
Requirements:
via https://pitchfork.com/features/lists-and-guides/the-best-songs-of-the-1990s/
To generate list:
$ curl -Ss 'https://pitchfork.com/features/lists-and-guides/the-best-songs-of-the-1990s/' \
| pup --plain 'h2 text{}' \
| awk 'NF' \
#!/bin/bash | |
# git-find-large-files | |
# Shows you the largest objects in your repo's pack file. | |
# Written for osx. | |
# | |
# @see https://stubbisms.wordpress.com/2009/07/10/git-script-to-show-largest-pack-objects-and-trim-your-waist-line/ | |
# @see https://stackoverflow.com/questions/10622179/how-to-find-identify-large-commits-in-git-history/10622293#10622293 | |
# @author Antony Stubbs |
So you want that super clever and funny AsciiArtFarts.com humor on your terminal's Message of the Day? Here's how!
First put asciiartfarts-motd.php somewhere where you know where it is:
mv asciiartfarts-motd.php /Users/sam/bin/
Modify your crontab ("crontab -e" on command line) to include something like this:
A scrape of Buzzfeed's ranked list of Mitch Hedberg jokes, via https://www.buzzfeed.com/mrloganrhoades/a-complete-ranking-of-almost-every-single-mitch-hedberg-joke?utm_term=.ng0r5LEb3J#.pkZw8O5zJ3
Scraped via:
curl -Ss "https://www.buzzfeed.com/mrloganrhoades/a-complete-ranking-of-almost-every-single-mitch-hedberg-joke?utm_term=.ng0r5LEb3J#.pkZw8O5zJ3" | pup --plain 'p text{}' > mitch_hedberg.txt
And then manually cleaned up.