Skip to content

Instantly share code, notes, and snippets.

View aquarion's full-sized avatar
💫
The More You Know

Nicholas Avenell aquarion

💫
The More You Know
View GitHub Profile
<VirtualHost *:80>
ErrorDocument 404 /.EverythingIsCatchingOnEverythingIsCatchingOnFire/404/index.php
ErrorDocument 410 /.EverythingIsCatchingOnEverythingIsCatchingOnFire/410/index.php
Alias /.EverythingIsCatchingOnEverythingIsCatchingOnFire /var/www/hosts/errors
DocumentRoot /var/www/
AddType text/html .shtml
<?PHP
// @todo: deal with multiple options a bit better.
header("HTTP/1.1 404 File Not Found");
$purl = parse_url($_SERVER['REQUEST_URI']);
$host = $_SERVER['HTTP_HOST'];
find $HOME -type d -name .git -exec uncommited-dir.sh {} \;
#!/bin/bash
GITPATH=$1
DIRNAME=`dirname $1`
REPONAME=`basename $DIRNAME`
TMPFILE=`mktemp -t uncommited.XXXXXXXXXX`
cd $DIRNAME;
if [[ -e .uncommitted-ignore ]];then
exit
<?PHP
function rule34($target){
if (is_a($target, "Exception")){
throw Exception("NO EXCEPTIONS");
}
}
from map.pathfinding.route import Route
from PIL import Image, ImageDraw
def drawCross(coords, image, color=255, size=10, width=3):
draw = ImageDraw.Draw(image)
cross1 = [ (coords[0]-size, coords[1]-size), (coords[0]+size, coords[1]+size) ]
cross2 = [ (coords[0]+size, coords[1]-size), (coords[0]-size, coords[1]+size) ]
=if( // #IsPounds:
iferror( // #FindPoundSign
find("£",TO_TEXT(E2), // This will error out if it isn't there.
1) // #IsPounds:True (returned by Find)
,0 // #IsPounds:No (returned by iferror)
), // End iferror#FindPoundSign
// This is the result if #IsPounds:True
E2, // return it in the cell. #GAMEOVER
// if #IsPounds:False:
( // #GetCurrencyConversion:
[ServerSettings]
RCONPort=32330
PvEDinoDecayPeriodMultiplier=1.000000
KickIdlePlayersPeriod=2400.000000
PerPlatformMaxStructuresMultiplier=1.000000
AutoSavePeriodMinutes=15.000000
ListenServerTetherDistanceMultiplier=1.000000
MaxTamedDinos=5000.000000
RCONServerGameLogBuffer=600.000000
RCONEnabled=True
@aquarion
aquarion / archipelago
Created October 26, 2017 13:25
Aquarion ssh key
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC537ASR1QeJ/9lhzqzyFxklqVhdVQnAR18Qq5DvGRRzUuARfAFR895xBJePWMZQ5amlTXdy4GOOyUWQwHdm/gbFHy1PNoj/dipmE7eJ0HsRA/H3ACMlsSm6mpU3glB/23DIsNrSeRQBroSfRcF4Im8C480Tg1TpwGmSTKSrsBgLLqpNUsJ18MPjfS+/GrFFXkgWAktVtgFa6BaYiTRq6gXWALA6dLRtaq7Ccne0t1sn94Gg5AHFQKnDj61aTb0IkgBtNJ0hEIAqL1E93qXesrfckmR7pP6TWSf84l4Hl4wJiYAM1e7unX9kjTfCclfk3oSO2ik5gvcpsQkgIeOvT+P aquarion@archipelago.water.gkhs.net