Skip to content

Instantly share code, notes, and snippets.

@adilosa
adilosa / boto3_get-ssm-parameter.py
Last active April 21, 2018 23:55 — forked from mda590/boto3_get-ssm-parameter.py
Get a parameter stored in AWS Systems Manager Parameter Store
import boto3
def getParameter(param_name):
return boto3.client('ssm').get_parameter(Name=param_name)['Parameter']['Value']
@adilosa
adilosa / results
Last active September 22, 2016 08:13
C vs Ruby for SAX Parsing
# Data file is protein sequence database psd7003.xml (683MB) from http://www.cs.washington.edu/research/xmldatasets/www/repository.html#pir
# Structure is list of ~260,000 <ProteinEntry> elements
# Goal is to read data file, and process each <ProteinEntry> onto its own line of output
# This simulates filtering/splitting a large list of similar XML elements
$ time ruby xmlsplit.rb test.xml > output_rb
real 2m35.965s
user 2m28.158s
sys 0m3.340s