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:
| #!/usr/bin/env python | |
| import os | |
| import shlex | |
| import struct | |
| import platform | |
| import subprocess | |
| def get_terminal_size(): | |
| """ getTerminalSize() |
| #!/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( |
| #!/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 |
| [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 |
| # This is an example config that assumes tagger.py is either in | |
| # $HOME/.starcluster/plugins or lives somewhere in your $PYTHONPATH | |
| [plugin tagger] | |
| setup_class = tagger.TaggerPlugin | |
| # add as many key=value pairs as you like separated by ',' | |
| tags = 'mykey=myvalue, mykey2=myvalue2' | |
| [cluster default] | |
| ... |
I hereby claim:
To claim this, I am signing this object:
| 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) |
| # This is an example config that assumes scenv.py is either in | |
| # $HOME/.starcluster/plugins or lives somewhere in your $PYTHONPATH | |
| [plugin env] | |
| setup_class = scenv.EnvPlugin | |
| # add as many key=value pairs as you like separated by ',' | |
| env_vars_list = 'PYTHONPATH=/path/to/python/mods, MYENV=some_value' | |
| [cluster default] | |
| ... |
| 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 |