Skip to content

Instantly share code, notes, and snippets.

View tolsadus's full-sized avatar
🌴
On vacation

tolsadus tolsadus

🌴
On vacation
View GitHub Profile
@tolsadus
tolsadus / evil_bot.rb
Created June 23, 2016 09:20 — forked from lambda2/evil_bot.rb
A twitter bot, here designed to work with some active record models, but the logic is there.
require 'twitter'
require 'logger'
# 🐵 patch search results, because they sucks
module Twitter
class SearchResults
attr_reader :rate_limit
@tolsadus
tolsadus / bonjourmadame.rb
Created June 23, 2016 09:18 — forked from lambda2/bonjourmadame.rb
Redirect all bonjour* tumblr posts to a slack channel
require "tumblr_client"
require 'slack-ruby-client'
POST_DELAY = 30.minutes
SLACK_CHANNEL = '#nsfw'
# bonjourmademoiselle.fr dites.bonjourmadame.fr bonjourlesfesses.tumblr.com
TUMBLR_SOURCE = 'bonjourmademoiselle.fr'
PAGE_LENGTH = 20