See how a minor change to your commit message style can make a difference. Examples
Have a look at CLI util git-conventional-commits to ensure this conventions and generate changelogs
See how a minor change to your commit message style can make a difference. Examples
Have a look at CLI util git-conventional-commits to ensure this conventions and generate changelogs
| { | |
| "policy": { | |
| "description": "Delete index after 8D.", | |
| "default_state": "hot", | |
| "states": [ | |
| { | |
| "name": "hot", | |
| "actions": [{ | |
| "replica_count": { | |
| "number_of_replicas": 3 |
| #List ECS Clusters by Name | |
| aws ecs list-clusters --region <region> | jq -r '.clusterArns[]' | cut -d/ -f2 | |
| #List ECS List ServiceNames by Cluster | |
| aws ecs list-services --cluster <cluster-name> --region sa-east-1 | jq -r '.serviceArns[]' | cut -d/ -f3 | |
| #List EventBridge Event Buses | |
| aws events list-event-buses --region <region> | jq -r '.EventBuses[].Name' | |
| #List EventBridge Rules |
| #!/bin/bash | |
| for i in $(aws cloudformation list-stacks |jq -r '.StackSummaries[] | {StackName} | join(" ")') | |
| do echo aws cloudformation delete-stack --stack-name $i #remove echo to delete | |
| done | |
| #!/bin/sh | |
| customer_managed_policy_arns=`aws iam list-policies --scope Local --query 'Policies[*].Arn' --output text` | |
| for arn in $customer_managed_policy_arns; do | |
| echo aws iam delete-policy --policy-arn "$arn" #To delete re-run without "echo" | |
| done |
| wget --no-check-certificate --content-disposition https://github.com/joyent/node/tarball/v0.7.1 | |
| # --no-check-cerftificate was necessary for me to have wget not puke about https | |
| curl -LJO https://github.com/joyent/node/tarball/v0.7.1 |
| # Importing a Route53 Record | |
| $ terragrunt import aws_route53_record.record HOSTZONEIDXXXXXXX_my-record.my-domaym_CNAME | |
| # Generate a Random String | |
| $ cat /dev/urandom | tr -dc '[:alpha:]' | fold -w ${1:-20} | head -n 1 | |
| # Turns your `git log` more Pretty | |
| $ git config --global alias.lg "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative" | |
| ## Examples of use | |
| git lg |
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: ubuntu-deployment | |
| labels: | |
| app: ubuntu | |
| spec: | |
| replicas: 1 | |
| selector: | |
| matchLabels: |
| FROM ubuntu | |
| LABEL Description="A simple network toolkit like a Swiss Army Knife" | |
| RUN apt update && apt install -y curl \ | |
| nmap \ | |
| netcat \ | |
| mtr \ | |
| net-tools \ | |
| telnet \ |
| #!/usr/bin/python | |
| import os | |
| import sys | |
| import boto3 | |
| ec2 = boto3.resource('ec2') | |
| sgs = list(ec2.security_groups.all()) | |
| insts = list(ec2.instances.all()) |