With Audio and Screen Sharing Enabled
Add the i386 architecture to the list of dpkg architectures :
sudo dpkg --add-architecture i386
| #!/bin/bash | |
| # load authentication key | |
| cd $HOME | |
| source keystonerc_admin | |
| # list neutron routers | |
| neutron router-list --max-width 50 | |
| # remove router gateway |
| !/bin/bash | |
| togglefloaterByUUID() { | |
| floater=$(nova show $1 | grep network | awk -F "|" '{printf $3}' | awk -F ", " '{printf $NF}' | sed -e 's/ //g' | sed ':a;N;$!ba;s/\n/ /g'); | |
| if [ -z $floater ]; then | |
| echo $1": No floating IP association found."; | |
| else | |
| name=$(nova show $1 | grep ' name ' | awk -F "|" '{printf $3}' | sed -e 's/ //g' | sed ':a;N;$!ba;s/\n/ /g'); | |
| echo "Dis-associating floating IP" $floater "from instance" $name "("$1")..."; |
| # Now we are managing the users on a project by using groups. So everything | |
| # is about creating users and add they to the groups. | |
| # A special user is created always with the same name of the project, | |
| # just to reserve the name and avoid confusion and have an email. | |
| ############## Define those variables for the tenant (this is just an example) | |
| TENANT=test | |
| PASSWORD=test | |
| TENANT_DESC="Test" |
| # Assumptions: | |
| # | |
| # * After the merge is complete, the directory should exist in the target repository and not exist in the source | |
| # repository. In other words, this is a move, not a cross-reference: we never want to be able to push commits | |
| # back to the source repository, or merge further changes from the source repository. If you want to do that | |
| # instead, a subtree merge is what you're looking for. | |
| # | |
| # * The directory doesn't exist in the target repository yet. | |
| # | |
| # In this example, we're moving the "/openstack-swift/" directory from jclouds/jclouds-labs-openstack to |
| #!/bin/bash | |
| # Based on kizbitz/dockerhub-v2-api-organization.sh at https://gist.github.com/kizbitz/175be06d0fbbb39bc9bfa6c0cb0d4721 | |
| # Example for the Docker Hub V2 API | |
| # Returns all images and tags associated with a Docker Hub organization account. | |
| # Requires 'jq': https://stedolan.github.io/jq/ | |
| # set username, password, and organization | |
| UNAME="" | |
| UPASS="" |
| #!/bin/bash | |
| # Based on kizbitz/dockerhub-v2-api-organization.sh at https://gist.github.com/kizbitz/175be06d0fbbb39bc9bfa6c0cb0d4721 | |
| # Example for the Docker Hub V2 API | |
| # Returns all images and tags associated with a Docker Hub organization account. | |
| # Requires 'jq': https://stedolan.github.io/jq/ | |
| # set username, password, and organization | |
| UNAME="" | |
| UPASS="" |
| #!/bin/sh | |
| # This gist contains pre-commit hooks to prevent you from commiting bad code or to the wrong branch. | |
| # There are four variants that I have built: | |
| # - pre-commit: stops commits to "master" and "develop" branches. | |
| # - pre-commit-2: also includes a core.whitespace check. | |
| # - pre-commit-3: the core.whitespace check and an EOF-newline-check. | |
| # - pre-commit-4: only the core.whitespace check. | |
| # - pre-commit-5: stop SaltMaster direct reclass branch commits. | |
| # Set desired version like this before installing: | |
| # FILE=pre-commit |
| from jinja2 import Template | |
| tmpl = """{% if name != "Jeff" %}Nothing to see here move along{% else %} ... hello {{name}}, how are you?{% endif %}""" | |
| template = Template(tmpl) | |
| print template.render({"name": "Jeff"}) | |
| # hello Jeff, how are you? | |
| print template.render({"name": "John"}) | |
| # Nothing to see here move along |
| import getopt | |
| import pycassa | |
| import subprocess | |
| import sys | |
| from pycassa.pool import ConnectionPool | |
| from pycassa.columnfamily import ColumnFamily | |
| def query_typename(column, typename): | |
| data = column.get(typename.replace('-', '_')) |