Skip to content

Instantly share code, notes, and snippets.

View jeffery's full-sized avatar
🏠
Working from home

Jeffery Fernandez jeffery

🏠
Working from home
  • Ping Identity
  • Melbourne, Australia
View GitHub Profile
@mitchellh
mitchellh / post.md
Created August 13, 2019 04:29
Originally posted on Tumblr on Feb 25, 2011.

THIS WAS ORIGINALLY POSTED ON MY TUMBLR ON FEB 25, 2011. I forgot I had a Tumblr account. I recently logged in (in light of the acquisition by Automattic), found some old posts, and I'm republishing them exactly as they were with zero modifications.


CloudFormation: The Big Picture

Amazon announced CloudFormation to the public yesterday, and while the general opinion I could glean from various sources shows that people are excited about this new technology, many are still unsure what it is and how it fits into their current cloud workflow. I feel as though I have a firm grasp on CloudFormation and will attempt to answer some questions here.

Note: I'm definitely not a representative of Amazon in any way, and anything here is simply my educated opinion on the matter.

@warnergodfrey
warnergodfrey / gist:7512051
Last active September 21, 2018 03:20
Access the ATO Business Portal using AusKey Mac OS X Mountain Lion
  • Install the latest JRE from Oracle
  • In the Java Control Panel, go to the Security tab and make sure 'Enable Java Content' is checked
  • Open Safari
  • Go to the ATO Business portal site https://bp.ato.gov.au/BpStatics/homepage.htm
  • Click Login
  • A dialog will apear asking you 'Do you want to trust the website “authentication.business.gov.au” to use the “Java” plug-in?'
  • Click 'Trust'
  • Now you will be asked 'Do you want to run this application?'
  • Click 'Run'
  • Another dialog will appear asking you to 'Allow access to the following application from this website?'
@saxman
saxman / cities.js
Last active December 12, 2015 06:58
Top 100 Cities by Population
var map;
var geometries;
var POP_ATTR = 'POP_MAX';
var NUM_CITIES = 100;
function initialize() {
var mapStyle = [
{
stylers: [
@raphaelstolt
raphaelstolt / php54_php53_pear_macports.markdown
Created May 17, 2012 21:37
Installing PHP 5.4 and 5.3 side by side on Max OSX via MacPorts

##Given Apache 2 and MySQL are already installed.

#Update MacPorts sudo port selfupdate;sudo port -u upgrade outdated

#Install PHP 5.4.* sudo port install php54 php54-apache2handler ##Activate Apache Module cd /opt/local/apache2/modules

@barraponto
barraponto / git-submodule-rm.sh
Created April 25, 2012 16:36
git submodule-rm
#!/bin/bash
function actual_path() {
if [ [ -z "$1" ] -a [ -d $1 ] ]; then
echo $(cd $1 && test `pwd` = `pwd -P`)
return 0
else
return 1
fi
}
@axelson
axelson / patchset-created
Created January 17, 2012 20:23
Gerrit trivial rebase detector hook
#!/bin/bash
# hook downloaded from: https://www.codeaurora.org/xwiki/bin/QAEP/Gerrit
#patchset-created --change <change id> --change-url <change url> --project <project name> --branch <branch> --uploader <uploader> --commit <sha1> --patchset <patchset id>
# $1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14
echo "patchset created `date`" >> patchset-created.log
echo "pwd `pwd`" >> patchset-created.log
DIR="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
#Usage: trivial_rebase.py <required options> [--server-port=PORT]
@jeffery
jeffery / xvfb_daemon.sh
Created July 5, 2011 00:18 — forked from tommeier/xvfb_daemon.sh
Xvfb startup init script for headless selenium started via Jenkins
#!/bin/bash
# /etc/init.d/xvfb_daemon
# Debian-compatible Xvfb startup script.
# Tom Meier <tom@venombytes.com>
# Jeffery Fernandez <jeffery@fernandez.net.au>
#
### BEGIN INIT INFO
# Provides: xvfb_daemon
# Required-Start: $remote_fs $syslog $network
# Required-Stop: $remote_fs $syslog $network
@robinhoode
robinhoode / selenium
Created May 27, 2011 18:44
/etc/init.d/selenium
#!/bin/bash
# TODO: http://wiki.debian.org/LSBInitScripts
DESC="Selenium server"
RUN_AS=root
JAVA_BIN=/usr/bin/java
SELENIUM_DIR=/etc/selenium
PID_FILE="$SELENIUM_DIR/selenium.pid"
@ahutchings
ahutchings / php_serial.class.php
Created January 24, 2009 05:02
PHP Serial Port Control Class by Rémy Sanchez with Modifications for OS X
<?php
define ("SERIAL_DEVICE_NOTSET", 0);
define ("SERIAL_DEVICE_SET", 1);
define ("SERIAL_DEVICE_OPENED", 2);
/**
* Serial port control class
*
* THIS PROGRAM COMES WITH ABSOLUTELY NO WARANTIES !
* USE IT AT YOUR OWN RISKS !