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 | |
COMPOSER=$(type -p "composer.phar") | |
if [ -x "${COMPOSER}" ]; then | |
${COMPOSER} self-update > /dev/null | |
else | |
$(type -p "php") -r "eval('?>'.file_get_contents('https://getcomposer.org/installer'));" | |
fi | |
${COMPOSER} $@ |
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
[ zircote ~/Workspace/Jazsl ] zf cluster-status jazsl-server zcsm | |
Cluster Members: | |
┌──────────┬───────────────┬───────────────┬────────────────────────────────────────────────────────────┐ | |
│Server ID │Status │Instance-Name │URI │ | |
├──────────┼───────────────┼───────────────┼────────────────────────────────────────────────────────────┤ | |
│25 │OK │i-07982fff │ec2-00-00-00-01.compute-1.amazonaws.com │ | |
├──────────┼───────────────┼───────────────┼────────────────────────────────────────────────────────────┤ | |
│28 │OK │i-25765fff │ec2-00-00-00-00.compute-1.amazonaws.com │ | |
├──────────┼───────────────┼───────────────┼────────────────────────────────────────────────────────────┤ | |
│31 │OK │i-2e988fff │ec2-00-00-00-00.us-west-1.compute.amazonaws.com │ |
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 | |
# | |
# @c Robert Allen [email protected] | |
# | |
# /usr/bin/ec2_name | |
if [ -f /etc/profile.d/aws-apitools-common.sh ]; then | |
. /etc/profile.d/aws-apitools-common.sh | |
export PATH=/opt/aws/bin:$PATH | |
fi |
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
Writing System V init scripts for Red Hat Linux | |
=============================================== | |
All System V init scripts are named /etc/rc.d/init.d/<servicename> | |
where <servicename> is the name of the service. There must be no | |
".init" suffix. | |
This path will very likely be moved to /etc/init.d in the future. | |
Once Red Hat Linux 7.0 is installed, you can access scripts as | |
/etc/init.d/<servicename>, via symlinks. |
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
# cluster identifier | |
default[:route53][:zone] = "my.default-domain.com" |
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 | |
ZONE="my.route53-dnszone.com" | |
test_local="$(curl --write-out %{http_code} --silent --output \ | |
/dev/null http://169.254.169.254/latest/meta-data/public-hostname)" | |
if [ "200" = "$test_local" ]; then | |
CNAME="$(curl -s http://169.254.169.254/latest/meta-data/public-hostname)" | |
else | |
CNAME="$(curl -s http://169.254.169.254/latest/meta-data/local-ipv4)" | |
fi | |
HOSTNAME="$(ec2-describe-tags \ |
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
import boto, logging, os, sys, re, awscreds | |
from celery import Celery | |
from celery.utils.log import get_task_logger | |
from boto.s3.connection import S3ResponseError | |
def searchDirs(): | |
import shlex, subprocess | |
command = "find %s -maxdepth 4 -mindepth 4 -type d " % root_path; | |
args = shlex.split(command) | |
process = subprocess.Popen(args, stdout=subprocess.PIPE) |
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
{ | |
"/pet":{ | |
"apiVersion":"0.2", | |
"swaggerVersion":"1.1", | |
"basePath":"http://petstore.swagger.wordnik.com/api", | |
"resourcePath":"/pet", | |
"apis":[ | |
{ | |
"path":"/pet.{format}/{petId}", | |
"description":"Operations about pets", |
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 | |
/** | |
* @package | |
* @category | |
* @subcategory | |
*/ | |
/** | |
* @package | |
* @category | |
* @subcategory |
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 | |
require_once 'Zend/Mail.php'; | |
require_once 'Zend/Mime/Part.php'; | |
require_once 'Zend/Mail/Transport/Smtp.php'; | |
$config = array( | |
'name' => 'smtp.gmail.com', | |
'auth' => 'login', |