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
Options +FollowSymlinks | |
RewriteEngine on | |
RewriteRule ^i/(.*) http://209.212.145.137/i/$1 [R,NC] | |
RewriteRule ^img http://something.com/ [R,NC] |
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
public Game1(Form1 parent, IntPtr drawSurface) | |
{ | |
/* ... */ | |
parent.pctSurface.MouseMove += new MouseEventHandler(pctSurface_MouseMove); | |
} | |
/* ... */ | |
void pctSurface_MouseMove(object sender, MouseEventArgs e) | |
{ |
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
bool Map::OnLoad(const char* filename) | |
{ | |
FILE* fileHandle = fopen(filename, "r"); | |
if (fileHandle == NULL) | |
return false; | |
// read in the magic | |
fread(&magic, 4, 1, fileHandle); | |
if (magic != 1179468354) |
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
#!/bin/bash | |
kill -15 $(ps -ax | grep -i $1 | grep -v exterminate | grep -v grep | perl -n -e '/([0-9]+)/ && print $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
#!/bin/bash | |
# imgur script by Bart Nagel <bart@tremby.net> | |
# version 2 | |
# I release this as public domain. Do with it what you will. | |
# Required: curl | |
# | |
# Optional: xsel or xclip for automatically putting the URL on the X selection | |
# for easy pasting |
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
#!/bin/sh | |
for i in $@ | |
do | |
cat $i | tr '\n' ' ' | sed 's/[[:blank:]]//g' > $i | |
done |
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
/* Register */ | |
* { | |
padding: 0; | |
margin: 0; | |
} | |
body { | |
background-color: whiteSmoke; | |
font-family: Tahoma; | |
} | |
div#betaregister { |
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
<?php | |
// get browser data from useragent string for tracking | |
function _getBrowserInfo() { | |
// grab the useragent | |
$ua = $_SERVER['HTTP_USER_AGENT']; | |
// list of browsers we want to match | |
$browsers = array( | |
"firefox", | |
"msie", |
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 FFXIV Subreddit Theme Fix | |
// @namespace http://github.com/LeonBlade | |
// @version 0.2 | |
// @description Fix the FFXIV subreddit theme with annoying overflow elements | |
// @author James Stine (LeonBlade) | |
// @grant none | |
// @match /^https?://www\.reddit\.com\/r\/ffxiv$/ | |
// @run-at document-end | |
// @include /^https?://www\.reddit\.com\/r\/ffxiv$/ |
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 FFXIV Hunts Path Finder Autocomplete | |
// @namespace http://github.com/LeonBlade | |
// @version 1.1 | |
// @description Add a search box using datalist | |
// @author James Stine (LeonBlade) | |
// @grant none | |
// @match http://www.ffxivhuntspath.co.uk/ | |
// @run-at document-end | |
// @include http://www.ffxivhuntspath.co.uk/ |
OlderNewer