Skip to content

Instantly share code, notes, and snippets.

@jessejanderson
jessejanderson / the_abcs_of_otp.md
Last active August 17, 2025 14:39
The ABCs of OTP
@ollpu
ollpu / telegram_controller.rb
Last active October 30, 2017 15:35
Telegram Bot API in Rails
# Set ENV["TELEGRAM_BOT_API_KEY"] before usage!
# Use telegram#repair to connect to API
require "net/http"
require "uri"
include ActionView::Helpers::TextHelper
class TelegramController < ApplicationController
protect_from_forgery with: :null_session
@emad-elsaid
emad-elsaid / twitter-thanks.rb
Created February 27, 2014 10:21
create a thanks for following me twitter bot using ruby
#!/usr/bin/env ruby
require 'Twitter'
# Create a read write application from :
# https://apps.twitter.com
# authenticate it for your account
# fill in the following
config = {consumer_key: '', consumer_secret: '',
access_token: '', access_token_secret: ''}
me = 'Blaze Boy' # to prevent DM yourself