Skip to content

Instantly share code, notes, and snippets.

View tanookiben's full-sized avatar
☁️
just setting up my gthb

Benjamin Hsieh tanookiben

☁️
just setting up my gthb
View GitHub Profile
@tanookiben
tanookiben / BalancedPayments.md
Last active December 15, 2015 19:39
Minimum required components needed to set up a Balanced Payment (balancedpayments.com) marketplace.

Getting Balanced Payments up and running.

Files

  • balanced_controller.rb
  • _bank_account_form.html.haml
  • _credit_card_form.html.haml
  • bank_account_submission.js
  • credit_card_submission.js
@tanookiben
tanookiben / read_activity.rb
Last active December 16, 2015 00:38 — forked from igrigorik/read_activity.rb
Read data from githubarchive.org file and process records.
require 'open-uri'
require 'zlib'
require 'yajl'
gz = open('http://data.githubarchive.org/2012-03-11-12.json.gz')
js = Zlib::GzipReader.new(gz).read
events = [] # list of each event for the specified date based on predefined event types
Yajl::Parser.parse(js) do |event|
# puts event <-- not particularly useful in demoing how to actually see the data
Cleaning up children
Killing child's pgid: 53317
Traceback (most recent call last):
File "test/harness", line 113, in <module>
main()
File "test/harness", line 110, in main
bin/start-servers: killing child 53319
harness.run()
File "/Users/hsiehb/Projects/Personal/stripe-ctf/stripe-ctf3/level3/test/lib/test_framework.py", line 106, in run
bin/start-servers: killing child 53320
@tanookiben
tanookiben / clips.md
Last active August 29, 2015 13:57
X-Men: Days of Future Past
  1. 0:05 - 0:18 - apocalypse wasteland
  2. 0:18 - 0:19 - new Professor X
  3. 0:19 - 0:20 - old Professor X
  4. 0:21 - 0:22 - old Magneto
  5. 0:22 - 0:24 - new Magneto
  6. 0:25 - 0:26 - Storm gets attacked
  7. 0:31 - 0:33 - apocalypse again
  8. 0:33 - 0:35 - old Professor X
  9. 0:35 - 0:36 - Wolverine
  10. 0:36 - 0:38 - Mystique
@tanookiben
tanookiben / clips.md
Last active August 29, 2015 13:57
Captain America: The Winter Soldier
  1. 0:08 - 0:10 - some jail scene
  2. 0:13 - 0:16 - RoboCop
  3. 0:16 - 0:18 - Black Widow talking to the Captain
  4. 0:18 - 0:19 - RoboCop half-naked
  5. 0:20 - 0:22 - Winter Soldier walking
  6. 0:24 - 0:26 - Captain America
  7. 0:29 - 0:31 - airplane
  8. 0:32 - 0:36 - Captain America
  9. 0:37 - 0:38 - SHIELD HQ
  10. 0:38 - 0:40 - Captain America
@tanookiben
tanookiben / live_now.rb
Last active August 29, 2015 14:10
Get current live Twitch followed channels
require 'net/http'
require 'json'
FOLLOW_REQUEST = "https://api.twitch.tv/kraken/users/#{ARGV[0]}/follows/channels?limit=100"
STREAM_REQUEST = "https://api.twitch.tv/kraken/streams/"
followed_channels = JSON.parse(Net::HTTP.get_response(URI.parse(FOLLOW_REQUEST)).body)['follows'].collect { |chan| chan['channel']['name'] }
followed_live_channels = followed_channels.keep_if { |chan| JSON.parse(Net::HTTP.get_response(URI.parse("#{STREAM_REQUEST}#{chan}")).body)['stream'] }
@tanookiben
tanookiben / todayscript-twitch.sh
Last active August 29, 2015 14:10
Get current live Twitch followed channels
#!/bin/zsh
# SCRIPT_TO_LOAD: https://gist.github.com/tanookiben/ebcc94db19ca8efe1504
# PATH_TO_SCRIPT: local path to SCRIPT_TO_LOAD
# YOUR_TWITCH_LOGIN: your twitch login
ruby PATH_TO_SCRIPT YOUR_TWITCH_LOGIN

Keybase proof

I hereby claim:

  • I am tanookiben on github.
  • I am tanookiben (https://keybase.io/tanookiben) on keybase.
  • I have a public key ASAdknry5qYuHvCNy6hGWTprTA3iLUxon_jAQnI5YQ4vuwo

To claim this, I am signing this object:

hello world
@tanookiben
tanookiben / drusic.md
Last active September 9, 2017 09:15
ElvUI

Feral