Skip to content

Instantly share code, notes, and snippets.

View MikeRixWolfe's full-sized avatar

Mike Rix Wolfe MikeRixWolfe

  • RedMane
  • Chicago, IL
View GitHub Profile
@MikeRixWolfe
MikeRixWolfe / automod_regex_checker.py
Created December 9, 2023 05:47
Check which automod regex flagged a post
import config
import re
import sys
from praw import Reddit
from prawcore import exceptions
args = ' '.join(sys.argv[1:]).strip()
if len(args) != 7:
print("Not a valid ID")
$(window).on("load", function () {
hashRoute(location.hash.replace('#', '') || "index");
});
$(window).on('hashchange', function () {
hashRoute(location.hash.replace('#', ''));
});
function hashRoute(route) {
$("html, body").animate({ scrollTop: 0 }, "fast");
@MikeRixWolfe
MikeRixWolfe / nickcolor.pl
Last active April 10, 2017 17:11
Updated version of nickcolor.pl with help text, auto-save on set, default color, and other niceties
use strict;
use Irssi 20020101.0250 ();
use vars qw($VERSION %IRSSI);
$VERSION = "1";
%IRSSI = (
authors => "Timo Sirainen, Ian Peters",
contact => "tss\@iki.fi",
name => "Nick Color",
description => "assign a different color for each nick",
license => "Public Domain",
use strict;
use vars qw($VERSION %IRSSI);
use Irssi;
$VERSION = '0.01';
%IRSSI = (
authors => 'Mike Wolfe',
contact => '[email protected]',
name => 'noxd',
description => 'deal with idiots',
license => 'GPLv3',
use strict;
use vars qw($VERSION %IRSSI);
use Irssi;
$VERSION = '0.9';
%IRSSI = (
authors => 'Mike Wolfe',
contact => '[email protected]',
name => 'salute',
description => 'This script salutes',
license => 'GPLv3',
@MikeRixWolfe
MikeRixWolfe / mini_twilio_server.py
Last active May 23, 2016 16:40
A mini JSON REST relay for Twilio using Flask-Restful
#!/usr/bin/env python
import json
import types
import logging
from datetime import datetime
from flask import Flask, Response, request, jsonify
from flask_restful import Resource, Api
from flask_sqlalchemy import SQLAlchemy
from werkzeug.exceptions import default_exceptions
@MikeRixWolfe
MikeRixWolfe / shorty.py
Last active February 21, 2022 19:18
Basic URL shortener using Flask-Restful
#!/usr/bin/env python
import hashlib
import json
import logging
import types
from datetime import datetime
from flask import Flask, Response, abort, redirect, request, jsonify
from flask_restful import Resource, Api
from flask_sqlalchemy import SQLAlchemy
@MikeRixWolfe
MikeRixWolfe / steamsales.py
Last active October 9, 2024 22:41
Steam Sales Checker (via Big Picture data feeds)
#!/usr/bin/env python
import json
import os
import requests
import time
debug = False
debug_path = 'debug'
@MikeRixWolfe
MikeRixWolfe / bot.py
Created February 3, 2015 18:17
andy-bot
#!/usr/bin/env python
import os
import sys
import socket
import time
import re
import glob
import traceback
import collections
@MikeRixWolfe
MikeRixWolfe / rainbow.pl
Last active November 6, 2015 14:44
rainbow.pl v1.9
#!/usr/bin/perl -w
# USAGE:
#
# /RSAY <text>
# - same as /say, but outputs a coloured text
#
# /RME <text>
# - same as /me, but outputs a coloured text
#