Skip to content

Instantly share code, notes, and snippets.

@christiangenco
christiangenco / hn_impersonator.rb
Created Oct 7, 2014
Impersonate your favorite HN commenter
View hn_impersonator.rb
require 'http'
require 'json'
require 'peach'
require 'gabbler'
require 'pry'
USERNAME = "patio11"
unless File.exists?("comments.txt")
def get_json(url)
@richardmcmillen-examtime
richardmcmillen-examtime / Repo
Last active Aug 11, 2021
Open a project file on GitHub.
View Repo
#!/bin/bash
#
# Open the specified file on GitHub. It will use the master branch by default:
#
# repo -f app/controllers/application_controller.rb
#
# Specify a different branch:
#
# repo -b another-branch -f app/controllers/application_controller.rb
@abeppu
abeppu / feelbetter.js
Last active Feb 6, 2021
Implementation of @FeelBetterBot
View feelbetter.js
var Twit = require("twit");
var config = require('./oauthconfig');
console.log("config:");
console.log(config);
var T = new Twit({
consumer_key: config.consumer_key,
consumer_secret: config.consumer_secret,
access_token: config.access_token,