Skip to content

Instantly share code, notes, and snippets.

View Plutor's full-sized avatar
🗯️

Logan Ingalls Plutor

🗯️
View GitHub Profile
// Get a Wordnik API key: http://developer.wordnik.com/
var WORDNIK_API_KEY = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
// Get a Twitter app key: https://apps.twitter.com/
var TWITTER_CONSUMER_KEY = "YYYYYYYYYYYYYYYYYYYYYYYYYYYYY";
var TWITTER_CONSUMER_SECRET = "ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ";
// Email to send errors to
var ERROR_EMAIL_ADDR = "[email protected]"
function Start() {
// Delete exiting triggers, if any
@Plutor
Plutor / randomperl.py
Last active March 11, 2016 17:55
Generate random perl for http://twitter.com/ThisIsPerl
#!/usr/bin/python
import os
import random
import shutil
import subprocess
import sys
import tempfile
perl_binary = '/usr/bin/perl'
@Plutor
Plutor / code.py
Last active February 12, 2018 20:13
Fastest posted /r/nfl posts in the last year that linked to tweets
#!/usr/bin/python
import datetime
import json
import re
import requests
import time
USER_AGENT_HEADER = {'User-Agent': 'nfl-fast-tweets/1.0'}
@Plutor
Plutor / .bash_stalias
Last active April 2, 2021 13:22
Staylias makes your aliases persist across bash sessions
# Staylias makes your aliases persist across bash sessions.
# To install, save this as .bash_staylias in your home dir add this line to your bashrc:
# source "$HOME/.bash_staylias"
#
# How to use:
# $ alias foo=bar
# $ alias foo
# alias foo=bar
#
# $ alias foo=baz
@Plutor
Plutor / discord-to-slack-bot.rb
Last active May 16, 2022 21:20 — forked from tomaszwro/discord-to-slack-bot.rb
Discord-to-Slack bot
require "discordrb"
require "httparty"
def notify_slack(message)
HTTParty.post(
# people_who_play_games
"https://hooks.slack.com/services/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
body: JSON.dump({
text: message,
username: "Discord announcement",