Skip to content

Instantly share code, notes, and snippets.

View stephenyeargin's full-sized avatar
:shipit:

Stephen Yeargin stephenyeargin

:shipit:
View GitHub Profile
#!/bin/bash
# date should be yyyymmdd
ARGS="$*"
export TARGET=$(date -jf "%Y%m%d" ${ARGS} +"%m/%d/%Y")
export TICKET_DATE=$(date -jf "%Y%m%d" ${ARGS} +"%a %b%d %g")
# cache every day
[ ! -f /var/tmp/pb ] || [ $(find /var/tmp/pb -mmin +3600) ] && curl -sk http://www.powerball.com/powerball/winnums-text.txt > /var/tmp/pb
[ ! -f /var/tmp/hl ] || [ $(find /var/tmp/hl -mmin +3600) ] && curl -sk http://www.powerball.com/hotlotto/winnums-text.txt > /var/tmp/hl
@ColemanCollins
ColemanCollins / gist:6144525fcb3eda615a60
Last active November 4, 2015 14:07 — forked from jonsuh/gist:e93fbfbf994b5478d4bc
Change Twitter’s Heart Animation to Exploding Poopies
.HeartAnimationContainer .HeartAnimation {
margin-top: -2px;
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAC1QAAABkCAYAAAA7MJAoAABZBElEQVR42uzBAQEAAACAkP6v7ggCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIDZgwMBAAAAACD/10ZQVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVXYuXuWKOAAjuP/paF3UO8gaAwJ90Ck1E49HygDL+ye8s5DF0kzMJCgGhxssMDFoRIqbPAp7zofwG5IaqkhagjaImhw/LdF0VbQqXw+b+G7/vjB/1cb6i4F9ECLA2B9dKBxdTTTGNg3VooXCwE9AAAAAAAAONzK7Q3HNy+dGd9OnDoW0IM/7PQ3na/1NyUCeqCHHmhxIJWLPaXHY6W4UuwbCeiBFvvccr6nupTvrQUAAAAAAADgcKukmi9UU83dgX1ha2JwrHItG7duDE4F9OA3cebOkZXJkXfLk8Mf9+5PHw3ogR56oMWB8yLd9nAp0/t5NZ1YDOiBFgAAAAAAAGDAS71VryYbXuaTn6r55PeNwa7Tgbp6kz53Ynm88PXB1ERcvD60t5vvOBnQg582My0L86Urca6Uj+V060JAD/TQAy0AAAAAAAAAAANe/sX2zeHF5zN349PpW3Hr9lg5UFeb2bbdR/2tca5QjPOpZKykW14H9ODX177b5Wzn20q2+/1auu1eQA/00AMtAAAAAAAAAMAbsgEvf2sn3dK+lOv6NltIxdnC5fgk1xtrA2c7AnWznkmkKrn2D6+G+p5t5Dq/rGUShYAeAAAAAMAP9u7npek4juP4hyAo+gfqTwi6RZDUSQJbufS7NbdpTTfS77bvvvs
@jcockhren
jcockhren / gist:ee10e6c66d7eb8f410f5
Created August 13, 2015 14:06
Port Forwarding for st2 (vagrant)
config.vm.network :forwarded_port, guest: 8080, host: 8080
config.vm.network :forwarded_port, guest: 9100, host: 9100
config.vm.network :forwarded_port, guest: 9101, host: 9101
@makmanalp
makmanalp / comparison.md
Last active June 10, 2024 14:24
Angular vs Backbone vs React vs Ember notes

Note: these are pretty rough notes I made for my team on the fly as I was reading through some pages. Some could be mildly inaccurate but hopefully not terribly so. I might resort to convenient fiction & simplification sometimes.

My top contenders, mostly based on popularity / community etc:

  • Angular
  • Backbone
  • React
  • Ember

Mostly about MVC (or derivatives, MVP / MVVM).

# Get the video
sudo curl https://yt-dl.org/downloads/2014.11.16/youtube-dl -o /usr/local/bin/youtube-dl
sudo chmod 755 /usr/local/bin/youtube-dl
/usr/local/bin/youtube-dl https://www.youtube.com/watch?v=zhUi13dU_88
# snippet it
ln -s "WFTDA Roller Derby - 2014 Championships - Rose City Rollers vs. Gotham Girls Roller Derby-zhUi13dU_88.mp4" input.mp4
ffmpeg -i input.mp4 -ss 3445 -t 00:00:04.0 -acodec copy -vcodec copy output.mp4 ; gif output.mp4;
# gif it
@Skeyelab
Skeyelab / readme.md
Last active October 5, 2017 12:56
Zendesk Dashing Widget

i'll add some documentaton, but it should be pretty straight forward from the comments

add gem 'zendesk_api', '~> 1.4.3' to your gemfile

# cat /etc/supervisor/conf.d/znc.conf
[program:znc]
command = /usr/bin/znc
user = force
directory = /home/force
redirect_stderr = true
@rowanu
rowanu / README.md
Last active July 30, 2021 02:48
Hotness Widget for the Dashing dashboard from Shopify

Dashing Hotness Widget

Are you dashing? Are you hot? Then you need the Dashing Hotness Widget!

See the blog post for more details.

About

This widget is similar to the basic Number widget, except that the entire widget changes colour based on the value displayed. It is designed to draw attention to

@ilyakatz
ilyakatz / Readme.md
Last active March 5, 2020 12:19
MixPanel job for Dashing

Description

Simple Dashing job to display total number of events in MixPanel .

##Preview

##Dependencies

@laserlemon
laserlemon / Rails 2 Environment
Created October 1, 2010 12:11
Snow Leopard, Homebrew, Git, RVM, Ruby, Passenger, Apache, MySQL, Memcached and ImageMagick
# 2010-10-01
#
# Mac OS X 10.6.3
# Homebrew 0.7
# Xcode 3.2.4
# Git 1.7.3.1
# RVM 1.0.12
# Ruby 1.8.7, 1.9.2
# Passenger 2.2.15
# MySQL 5.1.49