This file contains hidden or 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
| <?php | |
| if (!defined('MEDIAWIKI')) { | |
| exit(1); | |
| } | |
| $wgExtensionCredits['other'][] = array( | |
| "name" => "ContextualLogo", | |
| "author" => "sk89q", | |
| "version" => '0.1.0', | |
| "url" => "http://www.sk89q.com", |
This file contains hidden or 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
| #! /bin/sh | |
| ### BEGIN INIT INFO | |
| # Provides: nginx | |
| # Required-Start: $local_fs $remote_fs $network $syslog | |
| # Required-Stop: $local_fs $remote_fs $network $syslog | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: starts the nginx web server | |
| # Description: starts nginx using start-stop-daemon |
This file contains hidden or 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
| ## Block by user agent | |
| if ($http_user_agent ~ (Purebot|Lipperhey|MaMa CaSpEr|libwww-perl|Mail.Ru|gold crawler)) { | |
| return 403; | |
| } | |
| ## Block by referrer keywords | |
| if ($http_referer ~* (viagra|cialis|levitra) ) { | |
| return 403; | |
| } |
This file contains hidden or 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
| import requests | |
| from cStringIO import StringIO | |
| import string | |
| import random | |
| import re | |
| def randstring(size=24, chars=string.ascii_uppercase + string.digits): | |
| return ''.join(random.choice(chars) for x in range(size)) | |
| headers = { |
This file contains hidden or 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
| # Artistic Style format configuration | |
| # see http://astyle.sourceforge.net/astyle.html | |
| add-brackets | |
| break-blocks | |
| delete-empty-lines | |
| indent-switches | |
| indent=force-tab | |
| max-instatement-indent=2 | |
| pad-header | |
| pad-oper |
This file contains hidden or 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
| Named Binary Tag specification | |
| NBT (Named Binary Tag) is a tag based binary format designed to carry large amounts of binary data with smaller amounts of additional data. | |
| An NBT file consists of a single GZIPped Named Tag of type TAG_Compound. | |
| A Named Tag has the following format: | |
| byte tagType | |
| TAG_String name | |
| [payload] |
This file contains hidden or 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
| cussing: | |
| actions: | |
| - zombies | |
| patterns: | |
| - 's/(^|\W)4r5e(\W|$)/ monkey /' | |
| - 's/(^|\W)5h1t(\W|$)/ monkey /' | |
| - 's/(^|\W)5hit(\W|$)/ monkey /' | |
| - 's/(^|\W)a55(\W|$)/ monkey /' | |
| - 's/(^|\W)anal(\W|$)/ monkey /' | |
| - 's/(^|\W)anus(\W|$)/ monkey /' |
This file contains hidden or 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
| #### For Ubuntu 14.04 (Trusty) | |
| ## Ubuntu Main | |
| deb http://archive.ubuntu.com/ubuntu trusty main | |
| ## Ubuntu Updates | |
| deb http://archive.ubuntu.com/ubuntu trusty-updates main | |
| ## Ubuntu Security Patches | |
| deb http://security.ubuntu.com/ubuntu trusty-security main |
This file contains hidden or 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
| #!/bin/bash | |
| MCP_VERSION="721" | |
| FORGE_VERSION="latest" | |
| MCP_URL="https://dl.dropbox.com/s/dao8itysfwuhj9q/mcp$MCP_VERSION.zip?dl=1" | |
| FORGE_URL="http://files.minecraftforge.net/minecraftforge-src-$FORGE_VERSION.zip" | |
| mkdir -p forge | |
| cd forge |
This file contains hidden or 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 Amazon Auto-Smile | |
| // @namespace | |
| // @version 0.1 | |
| // @description Automatically redirects all www.amazon.com URLs to their smile.amazon.com equivalent. | |
| // @match http://www.amazon.com/* | |
| // @match https://www.amazon.com/* | |
| // @run-at document-start | |
| // @copyright 2013 | |
| // ==/UserScript== |