Skip to content

Instantly share code, notes, and snippets.

View ChangedNameTo's full-sized avatar

Will Mitchell ChangedNameTo

  • Nead Werx
  • United States
View GitHub Profile
@ChangedNameTo
ChangedNameTo / gist:16decb2d03cc0ba41f6b
Created April 10, 2015 15:52
/r/League Broswer Extension
// ==UserScript==
// @name rleague-browser-extension
// @namespace reddit_league
// @description Links summoner names, and makes other small improvements to /r/League.
// @include http://*.reddit.com/r/league
// @include http://*.reddit.com/r/League
// @include http://*.reddit.com/r/league/*
// @include http://*.reddit.com/r/League/*
// @include https://*.reddit.com/r/league
// @include https://*.reddit.com/r/League
@ChangedNameTo
ChangedNameTo / UptimeCounter
Created May 5, 2015 15:43
Uptime Counter for Server
echo "<head><title>Uptime</title></head><body><center><b>The server has been up for:<br><h1> " > /var/www/html/up.html ; top -b -n 1 | head -1 | grep -E -o ".{0,3}days" >> /var/www/html/up.html ; echo "</h1></b><br><hr><h3>Other Stats</h3><br><b>" >> /var/www/html/up.html ; top -b -n 1 | head -1 | grep -E -o "load average.{0,18}">> /var/www/html/up.html ; echo "<br> Disk space used: " >> /var/www/html/up.html ; df -h | sed -n 2p | cut -d " " -f 13 >> /var/www/html/up.html ; echo "</b><br><small>Last updated on `date`</small></center></body>" >> /var/www/html/up.html
#!/usr/bin/env python3
import praw
import sys
import os
from time import gmtime, strftime
try:
from flair_list import flairs
except ImportError as e:
print("Flairs file can't be accessed\n")
#!/usr/bin/env python3
import praw
import sys
import os
from time import gmtime, strftime
try:
from flair_list import flairs
except ImportError as e:
print("Flairs file can't be accessed\n")
def process_pms(self):
for pm in self.pms:
try:
if str(pm.subject) == self.SUBJECT:
author = str(pm.author) # Author of the PM
if author.lower() in (user.lower() for user in self.BLACKLIST):
continue
content = str(pm.body) # Content of the PM
index = content.find(":")
if index != -1:
#!/usr/bin/env python3
import praw
import sys
import os
from time import gmtime, strftime
try:
from flair_list import flairs
except ImportError as e:
print("Flairs file can't be accessed\n")
#!/usr/bin/env python3
import praw
import sys
import os
from time import gmtime, strftime
try:
from flair_list import flairs
except ImportError as e:
print("Flairs file can't be accessed\n")
//LoL Mundo Dota Port
//Author: TheAlpacalypse
//Date 06/2015
"mundo_burning_agony"
{
"AbilityBehavior" "DOTA_ABILITY_BEHAVIOR_AURA"
"BaseClass" "ability_datadriven"
"AbilityTextureName" "mundo_burning_agony"
"MaxLevel" "5"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><!-- InstanceBegin template="/Templates/basic_page.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta name="keywords" content="wireless, LAWN, lawn, Wi-fi, wifi, Wifi, wireless"/>
<meta name="description" content="Georgia Tech's wireless network, the LAWN (local Area Wireless & Walkup Network), is available
for students, faculty, and staff who are mobile computer users."
<!-- InstanceBeginEditable name="doctitle" -->
<title>Georgia Tech :: LAWN</title>
<!-- InstanceEndEditable --><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="/lawn_styles.css" rel="stylesheet" type="text/css">
@ChangedNameTo
ChangedNameTo / gist:17f2ad2178aa2fef9452
Last active September 19, 2019 02:35
Automod config
# Metalink Warning
# HOW TO ADD AN EXEMPTION FOR THE AUTO MODMAIL: Add the subreddit name to both this rule and the next one.
author: [totes_meta_bot, OriginalLinkBot, TotesMessenger, Meta_Bot2]
~body: [/r/subredditdrama, /r/shitedditsays]
action: remove
action_reason: removed metalink notification, no modmail
modmail: |
[{{title}}]({{permalink}})