I hereby claim:
- I am jtriley on github.
- I am jtriley (https://keybase.io/jtriley) on keybase.
- I have a public key ASAOFDG0YCtUZcaWZrjbJGvF2J7BAk3_sntdNkYawPTmRgo
To claim this, I am signing this object:
| #!/bin/bash | |
| BOSS_TOKEN_URL="https://auth.theboss.io/auth/realms/BOSS/protocol/openid-connect/token" | |
| echo -n "BOSS Username: " | |
| read BOSS_USER | |
| echo -n "BOSS Password: " | |
| read -s BOSS_PASSWORD | |
| echo -en "\nBOSS Client Id: " | |
| read BOSS_CLIENT_ID |
I hereby claim:
To claim this, I am signing this object:
| from .devstack import * # pylint: disable=wildcard-import, unused-wildcard-import | |
| from .common import INSTALLED_APPS, MIDDLEWARE_CLASSES | |
| FEATURES['ENABLE_SYSADMIN_DASHBOARD'] = True | |
| FEATURES['INDIVIDUAL_DUE_DATES'] = True | |
| def tuple_without(source_tuple, exclusion_list): | |
| """Return new tuple excluding any entries in the exclusion list. Needed because tuples | |
| are immutable. Order preserved.""" | |
| return tuple([i for i in source_tuple if i not in exclusion_list]) |
| from starcluster import config | |
| from starcluster import cluster | |
| cfg = config.StarClusterConfig().load() | |
| ec2 = cfg.get_easy_ec2() | |
| cm = cluster.ClusterManager(cfg, ec2=ec2) | |
| cl = cm.get_cluster("your_running_cluster_tag") | |
| print len(cl.running_nodes) |
| #!/usr/bin/env python | |
| import hashlib | |
| import optparse | |
| import paramiko | |
| from Crypto.PublicKey import RSA | |
| def insert_char_every_n_chars(string, char='\n', every=64): | |
| return char.join( |
| [unix_http_server] | |
| file=/tmp/supervisor.sock | |
| [supervisord] | |
| logfile=/tmp/supervisord.log | |
| logfile_maxbytes=50MB | |
| logfile_backups=10 | |
| loglevel=info | |
| pidfile=/tmp/supervisord.pid | |
| nodaemon=false |
| import os | |
| from starcluster import clustersetup | |
| from starcluster.logger import log | |
| BOTO_CFG_TEMPLATE = """\ | |
| [Credentials] | |
| aws_access_key_id = %(aws_access_key_id)s | |
| aws_secret_access_key = %(aws_secret_access_key)s |
| Host ec2* | |
| IdentityFile /path/to/your/ssh/key |
| # From: http://tentacles.posterous.com/43038706 | |
| # Take a bunch of XML files on the command line and merge them into | |
| # one big XML document. | |
| # | |
| # The root element will come from the first document; the root elements of | |
| # subsequent documents will be lost, as will anything outside the root | |
| # (comments and whatnot). | |
| import sys | |
| import libxml2 |