Download the Dockerfile
wget https://gist.githubusercontent.com/nitrocode/62505b0623cd9bf27e4b39a3f98412f5/raw/Dockerfile| #!/bin/bash | |
| # abbreviations refer to resource IDs | |
| # security group = SG | |
| # security group rule = SGR | |
| # referencing security group = RGS | |
| # SG to delete | |
| SG=$1 |
| # https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html | |
| $dlurl = "https://awscli.amazonaws.com/AWSCLIV2.msi" | |
| $installerPath = Join-Path $env:TEMP (Split-Path $dlurl -Leaf) | |
| $ProgressPreference = 'SilentlyContinue' | |
| Invoke-WebRequest $dlurl -OutFile $installerPath | |
| Start-Process -FilePath msiexec -Args "/i $installerPath /passive" -Verb RunAs -Wait | |
| Remove-Item $installerPath | |
| $env:Path += ";C:\Program Files\Amazon\AWSCLIV2" |
| #!/bin/bash | |
| # clone to copies of the same repo, side by side | |
| # add this script to the repo you want to copy from | |
| # the name of the repo you want to copy to | |
| REPO_NAME="myrepo" | |
| # the PR number with the modifications | |
| PR_NUMBER="5" |
All of these diagrams are dynamically rendered during html display by Github, the images generated from text inside the Github-Flavored Markdown. None are static images. Mermaid support was released for Github on 2022-02-14
Pros & Cons:
Notes:
B-->C[fa:fa-ban forbidden], hyperlink and tooltips) are supported by Github.| #!/usr/bin/env python3 | |
| import glob | |
| import os.path | |
| root_dir = '' | |
| def filename_hook(filename): | |
| print(filename) |
| #!/bin/bash | |
| [ -f nohup.log ] && rm -f nohup.log | |
| nohup \ | |
| yes \ | |
| > nohup.log 2>&1 & |
| #!/usr/bin/env python3 | |
| import argparse | |
| import boto3 | |
| import json | |
| import os | |
| from datetime import datetime | |
| parser = argparse.ArgumentParser( |
| --- | |
| apiVersion: v1 | |
| kind: Pod | |
| metadata: | |
| name: ubuntu | |
| labels: | |
| app: ubuntu | |
| spec: | |
| restartPolicy: Always | |
| containers: |
| #!/bin/bash -e | |
| # run with | |
| # git clone https://gist.github.com/a43c1352d3ddc84f61af43bf38661beb.git | |
| # bash ./a43c1352d3ddc84f61af43bf38661beb/update-terraform-module.sh | |
| git clone https://github.com/rhythmictech/terraform-terraform-template.git tmp | |
| rm -rf .github bin | |
| mv tmp/.github .github |