Install portaudio using homebrew (or method of your choice)
brew install portaudiocreate $HOME/.pydistutils.cfg using the include and lib directories of your portaudio install:
[build_ext]
| Number of beers Kevin owes me: 2 |
Install portaudio using homebrew (or method of your choice)
brew install portaudiocreate $HOME/.pydistutils.cfg using the include and lib directories of your portaudio install:
[build_ext]
| # Convert an existing docker container into a "docker run" command line. | |
| # | |
| # This is useful when trying to debug containers that have been created | |
| # by orchestration tools. | |
| # | |
| # Install jq: stedolan.github.io/jq/ | |
| function format_run() { | |
| cid=$1 |
Unionize lets you connect together docker containers in arbitrarily complex scenarios.
Note: I recommend to use https://github.com/jpetazzo/pipework instead.
Now if you want Unionize, it's still here. Just check those examples.
| In [1]: policy = """{ | |
| ...: "Statement":[{ | |
| ...: "Effect":"Allow", | |
| ...: "Action":["s3:*"], | |
| ...: "Resource":["arn:aws:s3:::mybucket"]}]}""" | |
| In [2]: import boto | |
| In [4]: c = boto.connect_iam() | |
| In [5]: instance_profile = c.create_instance_profile('myinstanceprofile') | |
| In [6]: role = c.create_role('myrole') | |
| In [7]: c.add_role_to_instance_profile('myinstanceprofile', 'myrole') |
| # First verify the version of Java being used is not SunJSK. | |
| java -version | |
| # Get the latest Sun Java SDK from Oracle http://www.oracle.com/technetwork/java/javase/downloads/jdk-7u1-download-513651.html | |
| wget http://download.oracle.com/otn-pub/java/jdk/7u1-b08/jdk-7u1-linux-i586.rpm | |
| # Rename the file downloaded, just to be nice | |
| mv jdk-7u1-linux-i586.rpm\?e\=1320265424\&h\=916f87354faed15fe652d9f76d64c844 jdk-7u1-linux-i586.rpm | |
| # Install Java |
| In response to all the responses to: | |
| http://twitter.com/rtomayko/status/1155906157 | |
| You should never do this in a source file included with your library, | |
| app, or tests: | |
| require 'rubygems' | |
| The system I use to manage my $LOAD_PATH is not your library/app/tests |