Skip to content

Instantly share code, notes, and snippets.

View loisaidasam's full-sized avatar
🙌
🙌

Loisaida Sam loisaidasam

🙌
🙌
View GitHub Profile
@loisaidasam
loisaidasam / bellababy.sh
Created February 3, 2016 06:25
Download your bellababy photos
#!/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...
@loisaidasam
loisaidasam / README.md
Last active October 19, 2023 16:07
Sort git tags by semver

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

@loisaidasam
loisaidasam / strip-requirements.sh
Last active October 11, 2023 07:30
Strip out comments/whitespace/etc. from requirements.txt
#!/bin/bash
# Strip out comments/whitespace/etc. from requirements.txt
if [ -z "$1" ]
then
echo "Missing input requirements.txt dep!"
exit 1
fi
@loisaidasam
loisaidasam / README.md
Last active August 20, 2023 15:39
Image EXIF Distance Tools

Image EXIF Distance Tools

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).

Usage

$ ./image-distance.sh <filename.jpg>
@loisaidasam
loisaidasam / scour.py
Last active June 16, 2023 14:30
Hack of the day: How to scour craigslist for a 62cm-64cm bicycle
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"
@loisaidasam
loisaidasam / README.md
Last active April 5, 2023 18:37
The Masters API!
@loisaidasam
loisaidasam / README.md
Created September 29, 2022 15:58
Pitchfork - The 250 Best Songs of the 1990s - in a plaintext list
@loisaidasam
loisaidasam / git-find-large-files
Created March 15, 2019 20:10
Shows you the largest objects in your repo's pack file.
#!/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
@loisaidasam
loisaidasam / README.md
Last active April 7, 2022 19:26
Automatically set the latest AsciiArtFarts.com art to your MOTD!

So you want that super clever and funny AsciiArtFarts.com humor on your terminal's Message of the Day? Here's how!

STEP 1.

First put asciiartfarts-motd.php somewhere where you know where it is:

mv asciiartfarts-motd.php /Users/sam/bin/

STEP 2.

Modify your crontab ("crontab -e" on command line) to include something like this:

@loisaidasam
loisaidasam / README.md
Last active March 31, 2022 18:46
Scraped Mitch Hedberg jokes