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
### 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: |
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 | |
while [[ $# -gt 1 ]] | |
do | |
case "$1" in | |
-f | --file) | |
file="$2" | |
shift 2 | |
;; | |
-h | --hostname) |
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
/* | |
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 |
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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"ec2:*", | |
"elasticloadbalancing:*", | |
"cloudwatch:*", | |
"autoscaling:*", |
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
$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; | |
} |
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
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 |
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
services: | |
backend: | |
image: redis@sha256:b7561e4e994ab52cb2062b9c3e943ab2af3287caf9d9aeb6719acc77013769a5 | |
frontend: | |
depends_on: | |
- backend | |
image: metcalfc/myexample@sha256:82d54bfffb6f6d4e7a648b3927fc86df34217eb132ce737d1d9830d61266dcdd | |
ports: | |
- 5000:5000 | |
version: '3.8' |
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
services: | |
backend: | |
image: redis@sha256:b7561e4e994ab52cb2062b9c3e943ab2af3287caf9d9aeb6719acc77013769a5 | |
frontend: | |
depends_on: | |
- backend | |
image: metcalfc/myexample@sha256:82d54bfffb6f6d4e7a648b3927fc86df34217eb132ce737d1d9830d61266dcdd | |
ports: | |
- 5000:5000 | |
version: '3.8' |
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
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 |
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/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 |
OlderNewer