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 | |
#PASSWORD=$1 # Now using .my.cnf for password | |
LOC=/var/backups/mysql/$1 | |
# Exit immediately if a pipeline returns non-zero. | |
# Short form: set -e | |
set -o errexit |
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
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}}" |
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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC537ASR1QeJ/9lhzqzyFxklqVhdVQnAR18Qq5DvGRRzUuARfAFR895xBJePWMZQ5amlTXdy4GOOyUWQwHdm/gbFHy1PNoj/dipmE7eJ0HsRA/H3ACMlsSm6mpU3glB/23DIsNrSeRQBroSfRcF4Im8C480Tg1TpwGmSTKSrsBgLLqpNUsJ18MPjfS+/GrFFXkgWAktVtgFa6BaYiTRq6gXWALA6dLRtaq7Ccne0t1sn94Gg5AHFQKnDj61aTb0IkgBtNJ0hEIAqL1E93qXesrfckmR7pP6TWSf84l4Hl4wJiYAM1e7unX9kjTfCclfk3oSO2ik5gvcpsQkgIeOvT+P [email protected] |
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
[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 |
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
=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: |
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
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) ] |
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 | |
function rule34($target){ | |
if (is_a($target, "Exception")){ | |
throw Exception("NO EXCEPTIONS"); | |
} | |
} |
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 | |
GITPATH=$1 | |
DIRNAME=`dirname $1` | |
REPONAME=`basename $DIRNAME` | |
TMPFILE=`mktemp -t uncommited.XXXXXXXXXX` | |
cd $DIRNAME; | |
if [[ -e .uncommitted-ignore ]];then | |
exit |
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
find $HOME -type d -name .git -exec uncommited-dir.sh {} \; |
NewerOlder