This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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}}) |
OlderNewer