Skip to content

Instantly share code, notes, and snippets.

View brodkin's full-sized avatar
😃
Living my best life

Ryan Brodkin brodkin

😃
Living my best life
  • Los Angeles, CA
  • 04:15 (UTC -07:00)
View GitHub Profile
@skippy
skippy / cloud-config.yml
Created December 31, 2014 18:38
modifying fleet metadata (from aws meta-data service) before fleet.service start; this is a proof of concept (but it works!)
#cloud-config
---
coreos:
units:
- name: update-fleet-metadata.service
command: start
content: |-
[Unit]
Description=Update Fleet metadata tag
Before=fleet.service
while [ -n "`docker ps | grep mysql`"]
do
echo "waiting on mysql..."
sleep 6
done
echo "mysql started!"
@viccherubini
viccherubini / build.xml
Last active December 27, 2015 08:09
Expert PHP Deployments Phing build.xml file.
<?xml version="1.0" encoding="UTF-8"?>
<project name="Your Application" default="build">
<resolvepath propertyName="root_path" file="./" />
<resolvepath propertyName="config_path" file="./app/config/" />
<php function="date" returnProperty="build_date">
<param value="c" />
</php>
<php function="time" returnProperty="build_timestamp" />
@haschek
haschek / .jshintrc
Created May 4, 2012 16:08
JSHint Configuration, Strict Edition
{
// --------------------------------------------------------------------
// JSHint Configuration, Strict Edition
// --------------------------------------------------------------------
//
// This is a options template for [JSHint][1], using [JSHint example][2]
// and [Ory Band's example][3] as basis and setting config values to
// be most strict:
//
// * set all enforcing options to true
@mfkp
mfkp / index.html
Created December 17, 2011 01:39
mailchimp ajax signup form example
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="jquery.ketchup.all.min.js" type="text/javascript"></script>
</head>
<body>
<div id="email">
<span>Enter your email to sign up</span>
<form action="/subscribe.php" id="invite" method="POST">
@claylo
claylo / prep_crowd_proxy.sh
Created April 15, 2011 19:30
Perform the three steps to get Crowd to be ready to proxy, and accessible only via localhost.
# we'll only have IPv4 addresses to look for
sed -i -e 's/UTF-8/UTF-8 -Djava.net.preferIPv4Stack=true/' crowd/apache-tomcat/bin/setenv.sh
# block anyone not on localhost IP
sed -i -e '/<Context>/ a\
<Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="127\\.0\\.0\\.1" />' crowd/apache-tomcat/conf/context.xml
# make sure Tomcat knows it's behind a proxy.
# UPDATE THIS FOR YOUR ATLASSIAN SUITE SERVER HOSTNAME
sed -i -e 's/<Connector/<Connector proxyHost="atlassian.example.com" proxyPort="443" scheme="https"/' crowd/apache-tomcat/conf/server.xml