Skip to content

Instantly share code, notes, and snippets.

@jonesd
jonesd / aws.template
Created January 24, 2014 01:56
CloudFormation template to crete an AWS Elastic Load Balancer setup for VPC with Multi-Availability Zones. For more details see: http://i-proving.com/2014/01/14/aws-elastic-load-balancer-setup-for-vpc-with-multi-availability-zones/
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "ELB with Multi-AZ template",
"Parameters" : {
"WebInstanceType" : {
"Description" : "Web machine instance type",
"Type" : "String",
"Default": "m1.small"
},
@jonesd
jonesd / scribus-resizer.py
Last active August 29, 2015 14:05
Scribus DTP image scaling script in support of editing with low resolution images and then switching to high resolution images for final production pdf generation
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
(C)2013.07.26 David Jones
SYNOPSIS
This script supports the development of a scribus document using
@jonesd
jonesd / gist:1f49e083c5a266e5dc2a
Last active October 7, 2015 15:43
Ubunu 14 setup

Setup for Ubuntu 14

Change hostname

sudo hostname XXXXX
sudo vi /etc/hostname
sudo vi /etc/hosts
sudo service hostname restart
@jonesd
jonesd / gist:0055a635049b4bc29976
Created March 15, 2015 20:35
SHA SUMS hashes for checking downloads
Mozilla Firefox
https://ftp.mozilla.org/pub/mozilla.org/firefox/
@jonesd
jonesd / gist:1b99d07bb7480164ebb2
Last active August 29, 2015 14:18
Software Quotes

Conway's Law

Any organization that designs a system (defined broadly) will produce a design whose structure is a copy of the organization's communication structure.

-- Melvyn Conway, 1967

Postel's Law

be conservative in what you do, be liberal in what you accept from others.

Docker: Common Commands

Stop all containers

docker stop $(docker ps -a -q)

Remove all containers

docker rm $(docker ps -a -q)
@jonesd
jonesd / ionic.md
Created December 28, 2016 16:40
Ionic w/Android and iOS

Ioinic on VMWare MacOSX

Android

Start up ADB connection

iOS

Synology

Docker

Base directory for volumes is: /volume1/docker

To see docker processes:

Install Postgres by Homebrew

Create DB and access

createdb testdb
psql testdb

Create additional users