Skip to content

Instantly share code, notes, and snippets.

View thisredone's full-sized avatar
🏹
༼ つ ◕_◕ ༽つ ʕ ゚ᴥ ゚ʔ

redka thisredone

🏹
༼ つ ◕_◕ ༽つ ʕ ゚ᴥ ゚ʔ
View GitHub Profile
@thisredone
thisredone / lastfm_multitag.rb
Created August 24, 2012 12:38
multitag search for last.fm (cached)
require 'lastfm'
api_key ||= 'xxx'
api_secret ||= 'xxx'
$lastfm ||= Lastfm.new(api_key, api_secret)
# token = lastfm.auth.get_token
# lastfm.session = lastfm.auth.get_session(:token => token)['key']
$cache ||= {}
def multitag *tags
@thisredone
thisredone / hma_proxies.rb
Created August 24, 2012 09:51
Retrieves proxies from HideMyAss.com
# redka => [email protected]
# 24.08.2012
require 'typhoeus'
require 'nokogiri'
def proxies
front = Typhoeus::Request.get(url = "http://www.hidemyass.com/proxy-list/").body
hydra = Typhoeus::Hydra.new
requests = []