Skip to content

Instantly share code, notes, and snippets.

View foresmac's full-sized avatar

Chris Foresman foresmac

  • Analyte Health
  • Chicago
View GitHub Profile
@foresmac
foresmac / get_instagram_tag.py
Last active December 28, 2021 08:09
Download a particular hashtag from InstagramThis script will download all the images with a particular hashtag from Instagram. It's not very clever, and will try to suck down every image it can find; if you use a particularly popular tag, it will take a **long time** to run. Simply run it from the command line like so:`./get_instagram_tag.py <ta…
#! /usr/bin/python
## get_instagram_tag
## by Chris Foresman
## @foresmac
##
## Instagram API: http://instagram.com/developer/
## Requires the requests Python library
## (sudo) pip install requests
@foresmac
foresmac / solarized.theme
Created May 3, 2013 16:31
This is designed to map Solarized Dark colors to BPython, using ANSI colors configured for OS X's Terminal via [Solarized Dark.ML.settings](https://github.com/foresmac/terminal-solarized).
# This theme attempts to map Solarized Dark colors to bpython similar to
# SublimeText 2. Requires Solarized Dark.ML.settings for Terminal.app.
# Copy to ~/.bpython/solarized.theme and
# set "color_scheme = solarized" in ~/bpython/config
[syntax]
keyword = g
name = d
comment = G
@foresmac
foresmac / Git branch bash prompt
Created March 27, 2013 20:58
Shows current working git branch in you bash prompt.
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1) /'
}
PS1="\[\e[32m\]\$(parse_git_branch)\[\e[34m\]\h:\W \$ \[\e[m\]"
export PS1