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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "Stmt1426742219000", | |
"Effect": "Allow", | |
"Action": [ | |
"s3:AbortMultipartUpload", | |
"s3:GetObject", | |
"s3:GetObjectAcl", |
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
{"backup.log": { | |
"1427577934": { | |
"full-date": "2015-03-28T21:25:34.000Z", | |
"unix-timestamp": 1427577934, | |
"version-type": "VERSIONS", | |
"version-id": "Q7fGH4csueuuYZTd7UnosKCrwZZunfYg" | |
}, | |
"1427577797": { | |
"full-date": "2015-03-28T21:23:17.000Z", | |
"unix-timestamp": 1427577797, |
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
#this is a property file that is used in awsUtil.php and | |
#can be used by https://github.com/MoriTanosuke/glacieruploader | |
#should you want to use it some where in your backup solution | |
# you will want to use user credentials that are limited by a policy like the one found here: | |
#https://gist.github.com/nicholasdunbar/70772946be646966dec1 | |
accessKey=EXAMPLEOFAKEY | |
secretKey=ex3a2m9plkeof8a9s8e9c7ret2ke8y |
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
<?xml version="1.0"?> | |
<project default="main" basedir="."> | |
<!-- This is the example of creating a variable or inline property, directly in the build file--> | |
<property name="CRONTAB_PATH" value="/some/dir/"/> | |
</project> |
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
<property name="CRONTAB_PATH" value="/some/dir/"/> | |
<task name="generateCrontab"> | |
<copy file="crontab" | |
tofile="crontabTest.txt" | |
overwrite="true"> | |
<filterchain> | |
<replacetokens> | |
<token key="cronPath" value="${CRONTAB_PATH}"/> | |
</replacetokens> |
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
<copy file="crontab" | |
tofile="crontabTest.txt" | |
overwrite="true"> | |
</copy> | |
<replace file="crontabTest.txt" | |
propertyFile="dev2.properties"> | |
<replacefilter token="@cronPath@" | |
property="cronPath"/> | |
</replace> | |
<!-- |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!--Use ANT to trigger different tasks based on what OS is being used. See the code | |
snipit bellow if you don't want to create a new task just to switch some small piece | |
of logic depending on the operating system.--> | |
<project name="detectOS" default="showOS" > | |
<!--Create properties based on OS | |
conditions are like properties or variables that get set based on what is true |
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 | |
//To parse an example like the following categorized columns: | |
/* | |
col1 col2 col3 | |
==== ==== ==== | |
1 a b c d e 103 14 as d9 | |
2 a 103 14 as d9 | |
3 a 103 14 as d9 | |
*/ |
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 | |
//To parse the following unevenly categorized columns: | |
/* | |
* col1 col2 col3 | |
* ==== ==== ==== | |
* 1 a b c d e 103 14 as d9 | |
* 2 a 103 14 as d9 | |
* 3 a 103 14 as d9 | |
* | |
* Into structured data like this: |
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
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<title>Detect IE8</title> | |
<head> | |
<script type="text/javascript" id="init-ie-var"> | |
var isIE8OrLess = false; | |
</script> | |
<!--[if lte IE 8]> |
NewerOlder