This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| buildscript { | |
| repositories { | |
| mavenCentral() | |
| } | |
| dependencies { | |
| classpath group: 'org.twitter4j', name: 'twitter4j-core', version: '3.0.5' | |
| } | |
| } | |
| import twitter4j.* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require "open-uri" | |
| [ | |
| "http://pastebin.com/raw.php?i=Kc9ng18h", | |
| "http://pastebin.com/raw.php?i=vCMndK2L", | |
| "http://pastebin.com/raw.php?i=JdQkuYwG", | |
| "http://pastebin.com/raw.php?i=fw43srjY" | |
| ].each do |url| | |
| open(url).each_line do |line| | |
| name, password = line.chomp.split(/:/) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # earthquake.ge plugin | |
| # post url to instapaper.com | |
| # | |
| # Fork of https://gist.github.com/936403 | |
| require 'open-uri' | |
| Earthquake.init do | |
| _ = config[:instapaper] ||= {} | |
| _[:user] ||= '' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # earthquake.gem plugin | |
| # shorten url using bit.ly if text is over 140 | |
| Earthquake.init do | |
| config[:bitly] ||= {} | |
| config[:bitly][:username] ||= 'earthquakegem' | |
| config[:bitly][:api_key] ||= 'R_22e702353baf49751d053660e4c71a30' | |
| config[:bitly][:domain] ||= 'j.mp' | |
| input_filter do |text| | |
| if text =~ /^:(update|reply|retweet|message)/ && text.size > 140 |