Skip to content

Instantly share code, notes, and snippets.

Building Riak on SmartOS, the hard way

Build Machine

Here is some information on the build machine I'm using for reference:

  1. Dataset

    $ dsadm list

UUID OS PUBLISHED URN

'''
Based on:
- Read this for EC2 setup info and the approach - http://www.dikant.de/2010/10/08/setting-up-a-vpn-server-on-amazon-ec2/
- https://gist.github.com/1130401
- EC2 fabric bits via - https://github.com/slacy/fabric-ec2
'''
import boto
@HowardMei
HowardMei / gist:4372078
Created December 25, 2012 07:38
singapore ipv4 range
# Report generated on Tue Dec 25 07:37:20 2012
# by http://software77.net/geo-ip/
# Report Type : xx.xx.xx.xx-yy.yy.yy.yy format
# Country : Singapore
# ISO 3166 CC : ALPHA-2 SG; ALPHA-3 SGP
# Registry : APNIC
# Records found: 595
14.100.0.0-14.100.255.255
27.0.8.0-27.0.11.255
27.34.176.0-27.34.191.255
@HowardMei
HowardMei / gist:4350896
Last active May 16, 2020 16:30
python bash integration
A collection of python & shell integration attempts:
pysh:Write shell scripts in Python
https://github.com/yunabe/pysh
lshell:function limited shell
https://github.com/ghantoos/lshell
sh:similar to plumbum but has builtin features
https://github.com/amoffat/sh
@HowardMei
HowardMei / pybrowserlib
Last active December 9, 2015 23:28
Python autobrowsing libs
Alternative to inactive pycurl http://pycurl.sourceforge.net/:
https://github.com/lispython/human_curl
https://github.com/fireteam/curlish
Pexpect upgraded to support unicode:
https://bitbucket.org/takluyver/pexpect/overview
Python http made simple:
@HowardMei
HowardMei / pybddfrm
Created December 20, 2012 08:37
Python BDD Frameworks Actively Maintained
Minimalist BDD in python:
https://github.com/mdwhatcott/pyspecs
Clone of Ruby Cucumber:
https://github.com/jeamland/behave
Full stack acceptance test framework:
https://github.com/heynemann/pyccuracy
Test automation framework for webapps:
@HowardMei
HowardMei / gist:4223999
Created December 6, 2012 12:10
Python file match content search diff patch collection
Grep like file search: https://bitbucket.org/eliben/pss/
Google diff match patch: https://bitbucket.org/spookylukey/diff-match-patch/overview
Mercurial mdiff match mpatch merge: http://selenic.com/hg
@HowardMei
HowardMei / gist:4223942
Created December 6, 2012 11:58
A collection of rule engine or dsl policy engine
Simplest:
https://github.com/oblique63/ChainableLogic Chain logic
https://github.com/hynek/first Get the first meaningful value
https://github.com/xerox91/LogicE A pure fact truth logic
Advanced:
https://github.com/nemonik/Intellect DSL rules/policies engine
https://github.com/knipknap/SpiffWorkflow Workflow patterns
Filesystem:
@HowardMei
HowardMei / gist:4223859
Created December 6, 2012 11:37
Possible way to separate Model from DB
In https://github.com/joshmarshall/norm, Josh tries to separate business model from persistent db backend.
In https://github.com/j2labs/dictshield and https://github.com/j2labs/schematics, j2labs try to unify the way to represent business data model.
Possible solution for RDS that http://code.google.com/p/appengine-ndb-experiment/ does for GAE ?
@HowardMei
HowardMei / wp-config-multienv.php
Created October 30, 2012 14:53
wordpress config for multiple environments
<?php
/**
* The base configurations of the WordPress.
*
* This file is a custom version of the wp-config file to help
* with setting it up for multiple environments. Inspired by
* Leevi Grahams ExpressionEngine Config Bootstrap
* (http://ee-garage.com/nsm-config-bootstrap)
*
* @package WordPress