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
aquarion@Typhoon ~/code/IDL/ansible-webstack (master *): cat packer/ami.pkr.hcl
source "amazon-ebs" "cornerstone" {
profile = "pr-globalcms"
region = "us-east-1"
source_ami = "ami-019212a8baeffb0fa"
instance_type = "t2.micro"
ssh_username = "ubuntu"
ami_name = "cornerstone_AWS {{timestamp}}"
@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
[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
=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:
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) ]
<?PHP
function rule34($target){
if (is_a($target, "Exception")){
throw Exception("NO EXCEPTIONS");
}
}
#!/bin/bash
GITPATH=$1
DIRNAME=`dirname $1`
REPONAME=`basename $DIRNAME`
TMPFILE=`mktemp -t uncommited.XXXXXXXXXX`
cd $DIRNAME;
if [[ -e .uncommitted-ignore ]];then
exit
find $HOME -type d -name .git -exec uncommited-dir.sh {} \;
<?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'];