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
package main | |
import ( | |
"encoding/binary" | |
"fmt" | |
"io" | |
"io/fs" | |
"os" | |
"path/filepath" | |
"strings" |
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 | |
if [ "$#" -ne 2 ]; then | |
echo "USAGE: $0 <APP_NAME> <PORT>" | |
echo "Replicate the behaivor of cf ssh on a port not advertised by /v2/info" | |
echo "https://docs.cloudfoundry.org/devguide/deploy-apps/ssh-apps.html#other-ssh-access" | |
exit 99 | |
fi | |
set -eu |
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
#!/usr/bin/env python3 | |
import datetime | |
import json | |
import os | |
import subprocess | |
import yaml | |
import marshmallow as ma | |
import requests |
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
package main | |
import ( | |
"bufio" | |
"bytes" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"net/http" | |
"os/exec" |
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
#!/usr/bin/env python3 | |
import re | |
import requests | |
import subprocess | |
import yaml | |
buildpacks = {} | |
bpack_info = subprocess.check_output(['cf', 'buildpacks']) | |
for item in bpack_info.decode('utf-8').split("\n"): |
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
#!/usr/bin/env python | |
import re | |
import subprocess | |
import yaml | |
import datetime | |
since=datetime.datetime(2017, 2, 28, 0, 0, 0) |
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
#!/usr/bin/env python | |
import json | |
import sys | |
import subprocess | |
# To use this script: `uaac` and `cf` must be in your PATH | |
# | |
# Use `uaac target` and `uaac token client get` to ensure uaac can perform operations | |
# |
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
#!/usr/bin/env python | |
import glob | |
import yaml | |
import argparse | |
# extract all manifests to a directory with: | |
# for d in `bosh deployments |grep trusty | cut -d" " -f2`; do bosh download manifest $d > $d.yml; done | |
# then run this script in that directory |
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
FROM ubuntu:16.04 | |
RUN apt-get update -qq | |
# Dependencies to execute android | |
RUN apt-get install -y --no-install-recommends openjdk-8-jdk wget git ant | |
# Main Android SDK | |
RUN cd /opt && wget -q https://dl.google.com/android/android-sdk_r24.4.1-linux.tgz && tar xzf *.tgz && rm -f *.tgz |
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 | |
# make sure we have what we need | |
if [ -z "$AWS_ACCESS_KEY_ID" ] || \ | |
[ -z "$AWS_SECRET_ACCESS_KEY" ] || \ | |
[ -z "$AWS_DEFAULT_REGION" ] || \ | |
[ -z "$(which aws)" ] || \ | |
[ -z "$(which terraform)" ] | |
then |
NewerOlder