Skip to content

Instantly share code, notes, and snippets.

View gist:010ef95f6e89dbfb256d
### Keybase proof
I hereby claim:
* I am metcalfc on github.
* I am metcalfc (https://keybase.io/metcalfc) on keybase.
* I have a public key whose fingerprint is CBA4 56C4 BB7E A54F 4C9A A7E9 3BF7 36DC EFE2 FB0B
To claim this, I am signing this object:
View machine-add-ca.sh
#!/bin/bash
while [[ $# -gt 1 ]]
do
case "$1" in
-f | --file)
file="$2"
shift 2
;;
-h | --hostname)
@metcalfc
metcalfc / main.go
Last active Nov 6, 2015
Quick go utility to get the latest Docker Compose release from Github
View main.go
/*
Copyright 2015 Chad Metcalf <metcalfc@gmail.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
View iam.json
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"ec2:*",
"elasticloadbalancing:*",
"cloudwatch:*",
"autoscaling:*",
View sudppipe.ps1
$remoteport = bash.exe -c "ifconfig eth0 | grep 'inet '"
$found = $remoteport -match '\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}';
if( $found ){
$remoteport = $matches[0];
} else{
echo "The Script Exited, the ip address of WSL 2 cannot be found";
exit;
}
View sshd.bat
powershell.exe "& 'C:\Windows\System32\bash.exe' -c 'sudo /etc/init.d/ssh start'"
powershell.exe "& 'C:\Windows\System32\bash.exe' -c 'sudo /home/metcalfc/bin/sudppipe.sh start'"
timeout 5
View docker-compose.yml
services:
backend:
image: redis@sha256:b7561e4e994ab52cb2062b9c3e943ab2af3287caf9d9aeb6719acc77013769a5
frontend:
depends_on:
- backend
image: metcalfc/myexample@sha256:82d54bfffb6f6d4e7a648b3927fc86df34217eb132ce737d1d9830d61266dcdd
ports:
- 5000:5000
version: '3.8'
View docker-compose.yml
services:
backend:
image: redis@sha256:b7561e4e994ab52cb2062b9c3e943ab2af3287caf9d9aeb6719acc77013769a5
frontend:
depends_on:
- backend
image: metcalfc/myexample@sha256:82d54bfffb6f6d4e7a648b3927fc86df34217eb132ce737d1d9830d61266dcdd
ports:
- 5000:5000
version: '3.8'
@metcalfc
metcalfc / docker-compose.yml
Last active Jul 22, 2020
composer-docker-ecs-compose
View docker-compose.yml
services:
backend:
image: redis@sha256:6972ee00fd35854dd2925904e23cb047faa004df27c62cba842248c7db6bd99d
frontend:
depends_on:
- backend
image: metcalfc/timestamper@sha256:49e46611d6460720282f9a1df4f418b78b453eb238e38afa1a18f05ff0691bbb
ports:
- 5000:5000
x-aws-pull_credentials: arn:aws:secretsmanager:us-west-2:175142243308:secret:DockerHubAccessToken-8cRLae
View install-ecs-plugin.sh
#!/bin/sh
if ! command -v curl &> /dev/null
then
echo "We'll need curl which could not be found"
exit
fi
if ! command -v jq &> /dev/null
then
You can’t perform that action at this time.