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
| sudo amazon-linux-extras install epel -y | |
| sudo yum install stress -y | |
| sudo stress --cpu 8 --vm-bytes $(awk '/MemAvailable/{printf "%d\n", $2 * 0.9;}' < /proc/meminfo)k --vm-keep -m 1 | |
| # –cpu spawn 8 CPU workers spinning on a square root task (sqrt(x)) | |
| # –vm-bytes use 90% of the available memory from /proc/meminfo | |
| # –vm-keep re-dirty memory instead of freeing and reallocating. | |
| # -m 1 spawn 1 worker spinning on malloc()/free() |
| pyenv install --list | grep " 3\.[789]" | |
| pyenv versions | |
| pyenv install 3.10.10 | |
| python3 -m venv .venv | |
| source .venv/bin/activate | |
| pyenv local 3.10.10 |
| #!/bin/bash | |
| ## Install development dependencies for macOS | |
| # | |
| # Usage: ./initial-macos-developer-setup.sh [--debug] | |
| # | |
| # Bash script installing the basic developer macOS command line | |
| # development tools from Apple for this particular version of macOS, | |
| # installs the `brew` package manager, and a few essential brew | |
| # tap sources and settings. |
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
feat: new featurefix(scope): bug in scopefeat!: breaking change / feat(scope)!: rework APIchore(deps): update dependenciesbuild: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)ci: Changes to CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)chore: Changes which doesn't change source code or tests e.g. changes to the build process, auxiliary tools, libraries| #!/bin/bash | |
| # default project name to 'test' unless specified | |
| PROJ_NAME=${1:-test} | |
| echo -e "Using PROJ_NAME '${PROJ_NAME}'\n" | |
| # pause to allow inspection | |
| echo "Press any key to proceed or Ctl+C to quit" | |
| read -n 1 -s |
| # Count total EBS based storage in AWS | |
| aws ec2 describe-volumes | jq "[.Volumes[].Size] | add" | |
| # Count total EBS storage with a tag filter | |
| aws ec2 describe-volumes --filters "Name=tag:Name,Values=CloudEndure Volume qjenc" | jq "[.Volumes[].Size] | add" | |
| # Describe instances concisely | |
| aws ec2 describe-instances | jq '[.Reservations | .[] | .Instances | .[] | {InstanceId: .InstanceId, State: .State, SubnetId: .SubnetId, VpcId: .VpcId, Name: (.Tags[]|select(.Key=="Name")|.Value)}]' | |
| # Wait until $instance_id is running and then immediately stop it again | |
| aws ec2 wait instance-running --instance-id $instance_id && aws ec2 stop-instances --instance-id $instance_id | |
| # Get 10th instance in the account |
I hereby claim:
To claim this, I am signing this object:
| 'Update or create a stack given a name and template + params' | |
| from __future__ import division, print_function, unicode_literals | |
| from datetime import datetime | |
| import logging | |
| import json | |
| import sys | |
| import boto3 | |
| import botocore |
| #!/usr/bin/env bash | |
| # | |
| # Description | |
| # Bootstrap SSH Session to an SSM-managed instance | |
| # by temporarily adding a public SSH key available on the local machine (ssh-agent or in ~/.ssh) | |
| # | |
| # | |
| # Installation | |
| # | |
| # First run your eye over this script to check for malicious code |