Skip to content

Instantly share code, notes, and snippets.

@roaet
roaet / Sound-ResourcesClass.md
Last active August 29, 2015 13:56
Resources for the sound class

#Sound Resources Class

##Quick Links (all free)

  • bfxr - an online or offline program to create random sounds
  • pixitracker - a simple program for computers, mobile, or tablet to create songs based on tracking
  • audacity - a tool to manipulate and edit sounds

##Tips

  • when using bfxr ensure that you set your system volume to 50%, or you will have a bad time
  • if you have an iPad then pixitracker is even better
@roaet
roaet / howto.md
Last active August 29, 2015 13:56
My Way of Setting up Devstack with Neutron

You need some machine (vm or instance) that has at least 4GB of RAM. 8GB is much better. I will assume you just booted a machine and have root, and nothing else.

##Installing Devstack

  • I prefer to make an account (my own) and run devstack as that account (some say to make a stack account, it's the same thing)
  • useradd herpderp && useradd herpderp sudo && apt-get update && apt-get install git && exit
  • Log back into the machine as your user; herpderp in this case
  • git clone https://github.com/openstack-dev/devstack.git
  • cd devstack
  • create a new file called localrc with the contents:
2014-04-04 23:14:19.416 21849 TRACE quark.ipam result = conn.execute(querycontext.statement, self._params) [0/1831]
2014-04-04 23:14:19.416 21849 TRACE quark.ipam File "/opt/rackstack/615.22/neutron/lib/python2.6/site-packages/sqlalchemy/engine/base.py", line 14
49, in execute
2014-04-04 23:14:19.416 21849 TRACE quark.ipam params)
2014-04-04 23:14:19.416 21849 TRACE quark.ipam File "/opt/rackstack/615.22/neutron/lib/python2.6/site-packages/sqlalchemy/engine/base.py", line 15
84, in _execute_clauseelement
2014-04-04 23:14:19.416 21849 TRACE quark.ipam compiled_sql, distilled_params
2014-04-04 23:14:19.416 21849 TRACE quark.ipam File "/opt/rackstack/615.22/neutron/lib/python2.6/site-packages/sqlalchemy/engine/base.py", line 16
98, in _execute_context
2014-04-04 23:14:19.416 21849 TRACE quark.ipam context)
@roaet
roaet / gist:4fbb1ac1fa2dee4f7349
Created May 8, 2014 20:21
Commands I used to make the network
git clone https://github.com/micha/resty
source resty/resty
resty http://preprod.ord.networks-internal.api.rackspacecloud.com:9696 -H 'Content-type: application/json'
POST /v2.0/networks -d '{"network": {"name": "jlh_test_shared", "tenant_id" : "5832759", "network_plugin": "UNMANAGED", "id": "33333333-3333-3333-3333-333333333333"}}'
POST /v2.0/subnets -d '{"subnet": {"network_id":"33333333-3333-3333-3333-333333333333", "cidr": "10.0.0.0/24","tenant_id": "5832759","ip_version": 4, "segment_id": "blah", "allocation_pools": [{"start": "10.0.0.4", "end": "10.0.0.254"}]}}'
POST /v2.0/subnets -d '{"subnet": {"network_id":"33333333-3333-3333-3333-333333333333", "cidr": "10.0.1.0/24","tenant_id": "5832759","ip_version": 4, "segment_id": "blah", "allocation_pools": [{"start": "10.0.1.4", "end": "10.0.1.254"}]}}'
POST /v2.0/subnets -d '{"subnet": {"network_id":"33333333-3333-3333-3333-333333333333", "cidr": "10.0.2.0/24","tenant_id": "5832759","ip_version": 4, "segment_id": "blah", "allocation_pools": [{"start": "10.0.
### Keybase proof
I hereby claim:
* I am roaet on github.
* I am roaet (https://keybase.io/roaet) on keybase.
* I have a public key whose fingerprint is 4539 036D 900E B816 3854 A93C B655 012E A200 2F6E
To claim this, I am signing this object:
@roaet
roaet / gist:5f3487a0376fd9c5b871
Created February 26, 2015 21:27
Basic neutron.profile for blogpost
export OS_AUTH_URL=https://identity.api.rackspacecloud.com/v2.0/
export OS_AUTH_STRATEGY=rackspace
export OS_REGION_NAME=DFW
export OS_USERNAME=<username>
export OS_TENANT_NAME=<tenant_id>
export OS_PROJECT_ID=<tenant_id>
export OS_PASSWORD=<api_key>
export OS_NO_CACHE=1
res = {'id': subnet.get('id'),
'name': subnet.get('name'),
'tenant_id': subnet.get('tenant_id'),
'network_id': subnet.get('network_id'),
'ip_version': subnet.get('ip_version'),
'cidr': subnet.get('_cidr'),
'enable_dhcp': subnet.get('enable_dhcp'),}
#'dns_nameservers': [dns.get('address')
# for dns in subnet.get('dns_nameservers')],
#'gateway_ip': subnet.get('gateway_ip'),
(quantum)localhost{~/.../quantum}:\ (master)]quantum port-delete d80fb43f-9473-40b5-ae87-908f5780
cebd
Deleted port: d80fb43f-9473-40b5-ae87-908f5780cebd
(quantum)localhost{~/.../quantum}:\ (master)]quantum port-delete d80fb43f-9473-40b5-ae87-908f5780
cebd
Deleted port: d80fb43f-9473-40b5-ae87-908f5780cebd
2013-02-13 19:13:42.012 27160 CRITICAL quantum [-] Port_id (1): fd613b07-ec09-4cc1-8949-0476d2414136:
2013-02-13 19:13:42.016 27160 CRITICAL quantum [-] Port_id: bdc069b9-2012-45ac-b0aa-093b614a8149
@roaet
roaet / gist:5111811
Last active December 14, 2015 15:59
2013-03-07 15:21:08.671 2271 INFO quantum.quark [-] get_networks_count for tenant 1e6a7a409cdf4f0ab68a718c628167d6 filters {'tenant_id': [u'1e6a7a409cdf4f0ab68a718c628167d6']}
2013-03-07 15:21:08.673 2271 INFO quantum.quark [-] create_network for tenant 1e6a7a409cdf4f0ab68a718c628167d6
2013-03-07 15:21:08.673 2271 DEBUG quantum.quark.nvplib [-] Creating new lswitch for 1e6a7a409cdf4f0ab68a718c628167d6 network bob _create_lswitch /home/compute/openstack/quantum/quark/quark/drivers/nvp_driver.py:173
2013-03-07 15:21:08.674 2271 DEBUG quantum.quark.nvplib [-] Creating lswitch for network 9dff9e26-12f1-405d-8f10-4e8b2a266f15 _create_lswitch /home/compute/openstack/quantum/quark/quark/drivers/nvp_driver.py:183
2013-03-07 15:21:08,674 2271 INFO aiclib.core [-] (POST @ /ws.v1/lswitch): {'display_name': u'bob', 'tags': [{'scope': 'os_tid', 'tag': u'1e6a7a409cdf4f0ab68a718c628167d6'}, {'scope': 'quantum_net_id', 'tag': '9dff9e26-12f1-405d-8f10-4e8b2a266f15'}]} func /home/compute/opensta
ck/quantum/aiclib/aiclib/core.p
(quantum)localhost{~/openstack/.../quark}:\ (master)]tox -r
GLOB sdist-make: /home/compute/openstack/quantum/quark/setup.py
py26 create: /home/compute/openstack/quantum/quark/.tox/py26
py26 installdeps: -r/home/compute/openstack/quantum/quark/tools/pip-requires, -r/home/compute/openstack/quantum/quark/tools/test-requires
ERROR: invocation failed, logfile: /home/compute/openstack/quantum/quark/.tox/py26/log/py26-1.log
ERROR: actionid=py26