Skip to content

Instantly share code, notes, and snippets.

Nicholas Avenell aquarion

Block or report user

Report or block aquarion

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@aquarion
aquarion / archipelago
Created Oct 26, 2017
Aquarion ssh key
View archipelago
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC537ASR1QeJ/9lhzqzyFxklqVhdVQnAR18Qq5DvGRRzUuARfAFR895xBJePWMZQ5amlTXdy4GOOyUWQwHdm/gbFHy1PNoj/dipmE7eJ0HsRA/H3ACMlsSm6mpU3glB/23DIsNrSeRQBroSfRcF4Im8C480Tg1TpwGmSTKSrsBgLLqpNUsJ18MPjfS+/GrFFXkgWAktVtgFa6BaYiTRq6gXWALA6dLRtaq7Ccne0t1sn94Gg5AHFQKnDj61aTb0IkgBtNJ0hEIAqL1E93qXesrfckmR7pP6TWSf84l4Hl4wJiYAM1e7unX9kjTfCclfk3oSO2ik5gvcpsQkgIeOvT+P aquarion@archipelago.water.gkhs.net
View GameUserSettings.ini
[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
View gist:4619921
=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:
View gist:1130256
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) ]
View Rule34.class.php
<?PHP
function rule34($target){
if (is_a($target, "Exception")){
throw Exception("NO EXCEPTIONS");
}
}
View 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
View uncommited.sh
find $HOME -type d -name .git -exec uncommited-dir.sh {} \;
View 000vhosting.apache
<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
View 404.php
<?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'];
You can’t perform that action at this time.