This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am bdwill on github. | |
* I am bdwill (https://keybase.io/bdwill) on keybase. | |
* I have a public key whose fingerprint is FF1D 3A8C 49DE F247 40F1 D4E8 4D4D 6AB4 70B3 85EE | |
To claim this, I am signing this object: |
This file contains 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 'twitter' | |
require 'json' | |
client = Twitter::REST::Client.new do |config| | |
config.consumer_key = "..." | |
config.consumer_secret = "..." | |
config.access_token = "..." | |
config.access_token_secret = "..." | |
end |
This file contains 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
# TwitterTrends.rb | |
# From http://www.alphadevx.com/a/88-Writing-a-REST-Client-in-Ruby | |
require 'rubygems' | |
require 'rest_client' | |
require 'json' | |
class TwitterTrends | |
# the URL for the Twitter Trends endpoint | |
@url |
This file contains 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 'rubygems' | |
require 'rest_client' | |
login = RestClient::Request.execute( | |
:method => :post, | |
:url => 'https://10.1.1.1/api/1.9/auth/session', | |
:payload => { api_token: 'xxxxxxxxxxxxxxxxxxx' }, | |
:verify_ssl => false) | |
response = RestClient::Request.execute( |
This file contains 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
version: "3" | |
services: | |
pureelk: | |
image: pureelk/pureelk | |
ports: | |
- "8080:8080" | |
logging: | |
options: | |
max-size: 100m |