View collie-cheatsheet.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# query costs and output a filtered tsv, inspiration https://stackoverflow.com/a/39144364/125407 | |
collie tenant cost --from 2022-05-01 --to 2022-05-31 meshcloud-dev --platform azure.meshcloud-azure-dev -o json \ | |
| jq -r ".[] | [.relatedTenant.platformTenantId, .relatedTenant.platformTenantName, .totalUsageCost] | @tsv" |
View fix-refresh-rate.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install cscreen | |
brew cask install cscreen | |
# list displays | |
cscreen -l | |
# find your external screen in the list and write the number (not the ID) down somewhere | |
# in the following instructions, use that number instead of <SCREEN> | |
# list display modes for your external screen |
View dashboard.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": "-- Grafana --", | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", | |
"name": "Annotations & Alerts", |
View dbconnect-mongodb.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
container="$1:dbssh" | |
VCAP_SERVICES=$(cf ssh $container -c 'echo $VCAP_SERVICES') | |
MONGO_URI=$(echo $VCAP_SERVICES | jq -r .MongoDB[0].credentials.uri) | |
PARSED_URI=$(./parse-url $MONGO_URI) |
View keystonev3token.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
if [ -z "$OS_USERNAME" ]; then echo "Error: OS_USERNAME is unset"; exit 1; fi; | |
if [ -z "$OS_PASSWORD" ]; then echo "Error: OS_PASSWORD is unset"; exit 1; fi; | |
if [ -z "$OS_USER_DOMAIN_NAME" ]; then echo "Error: OS_USER_DOMAIN_NAME is unset"; exit 1; fi; | |
if [ -z "$OS_PROJECT_DOMAIN_NAME" ]; then echo "Error: OS_PROJECT_DOMAIN_NAME is unset"; exit 1; fi; | |
if [ -z "$OS_AUTH_URL" ]; then echo "Error: OS_AUTH_URL is unset"; exit 1; fi; | |
if [ -z "$OS_PROJECT_NAME" ]; then echo "Error: OS_PROJECT_NAME is unset"; exit 1; fi; |
View cors.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
core.register_service("cors-response", "http", function(applet) | |
applet:set_status(200) | |
applet:add_header("Content-Length", "0") | |
applet:add_header("Access-Control-Allow-Origin", applet.headers["origin"][0]) | |
applet:add_header("Access-Control-Allow-Credentials", "true") | |
applet:add_header("Access-Control-Allow-Headers", "Origin, DNT, If-Match, If-Modified-Since, If-None-Match, If-Range, If-Unmodified-Since, X-Requested-With, Content-Type, X-Auth-Token, X-Service-Token, X-Newest, X-Trans-Id-Extra, X-Trans-Id, X-Account-Meta-Temp-URL-Key, X-Account-Meta-Temp-URL-Key-2, X-Timestamp, X-Openstack-Request-Id, X-Account-Bytes-Used, X-Account-Container-Count, X-Account-Object-Count, X-Account-Meta-Quota-Bytes, X-Account-Access-Control, X-Container-Meta-Temp-URL-Key, X-Container-Meta-Temp-URL-Key-2, X-Storage-Policy, X-Container-Object-Count, X-Container-Bytes-Used, X-Container-Meta-Quota-Count, X-Container-Meta-Quota-Bytes, X-Container-Read, X-Container-Write, X-Container-Sync-Key, X-Container-Sync-To |
View haproxy.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global | |
chroot /var/lib/haproxy | |
stats socket /run/haproxy/admin.sock mode 660 level admin | |
stats timeout 30s | |
user haproxy | |
group haproxy | |
daemon | |
ca-base /etc/ssl/certs | |
crt-base /etc/ssl/private | |
ssl-default-bind-ciphers ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS |
View haproxy.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global | |
chroot /var/lib/haproxy | |
stats socket /run/haproxy/admin.sock mode 660 level admin | |
stats timeout 30s | |
user haproxy | |
group haproxy | |
daemon | |
ca-base /etc/ssl/certs | |
crt-base /etc/ssl/private | |
ssl-default-bind-ciphers ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS |
View log.txt
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"timestamp":"1501158250.404868841","source":"worker","message":"worker.setup.unpacking","log_level":1,"data":{"session":"1"}} | |
{"timestamp":"1501158255.259465933","source":"worker","message":"worker.setup.done","log_level":1,"data":{"session":"1"}} | |
{"timestamp":"1501158255.260781527","source":"worker","message":"worker.garden.extract-resources.extract.extracting","log_level":1,"data":{"resource-type":"archive","session":"2.1.1"}} | |
{"timestamp":"1501158255.485595226","source":"worker","message":"worker.garden.extract-resources.extract.extracting","log_level":1,"data":{"resource-type":"bosh-deployment","session":"2.1.2"}} | |
{"timestamp":"1501158255.865631342","source":"worker","message":"worker.garden.extract-resources.extract.extracting","log_level":1,"data":{"resource-type":"bosh-io-release","session":"2.1.3"}} | |
{"timestamp":"1501158256.025983572","source":"worker","message":"worker.garden.extract-resources.extract.extracting","log_level":1,"data":{"resource-type":"bosh-io-stemcell","session":"2.1.4"}} | |
{"timestam |
NewerOlder