aws ec2 describe-subnets \
--filters "Name=vpc-id,Values=<VpcId>" \
--query 'Subnets[*].[VpcId,SubnetId,CidrBlock,MapPublicIpOnLaunch,AvailabilityZone,Tags[?Key==`Name`]|[0].Value]' \
--output text
This file contains hidden or 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 | |
echo "*****************************************" | |
echo " Installing puppet" | |
echo "*****************************************" | |
RELEASEVER=$(rpm -q --qf "%{VERSION}" $(rpm -q --whatprovides redhat-release)) | |
yum install -y https://yum.puppetlabs.com/puppetlabs-release-pc1-el-${RELEASEVER}.noarch.rpm | |
yum install -y puppet-agent |
This file contains hidden or 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
# Makefile | |
COMMITID=$(shell git rev-parse HEAD) | |
ifndef AWS_DEFAULT_REGION | |
AWS_DEFAULT_REGION = $(shell aws configure get region) | |
endif | |
ifndef AWS_REGION | |
AWS_REGION = ${AWS_DEFAULT_REGION} | |
endif |
This file contains hidden or 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
AWSTemplateFormatVersion: '2010-09-09' | |
Metadata: | |
License: Apache-2.0 | |
Description: 'Create Read Replica from the supplied MasterDBName' | |
Parameters: | |
MasterDBName: | |
Default: prod-9-6 | |
Description: The database name or the MasterDB | |
Type: String | |
MinLength: '1' |
This file contains hidden or 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
#!/usr/bin/env sh | |
# Download lists, unpack and filter, write to stdout | |
curl -s https://www.iblocklist.com/lists.php \ | |
| sed -n "s/.*value='\(http:.*iblocklist.*\)'.*/\1/p" | |
| xargs curl -sL --compressed | |
| gunzip | |
| egrep -v '^#' |
Download ntfs-mac https://www.paragon-software.com/home/ntfs-mac/#
diskutil list
Following the https://win10.guru/usb-install-media-with-larger-than-4gb-wim-file/ method for large files
diskutil partitionDisk /dev/disk2 gpt fat32 UEFI_BOOT 1g UFSD_NTFS Win10 0b
All the repos in an org
curl -s -u ${GITHUB_USER}:${GITHUB_OAUTH_TOKEN} https://api.github.com/orgs/${GITHUB_ORG}/repos\?type\=all | jq -r '.[].clone_url'
curl -s -u ${GITHUB_USER}:${GITHUB_OAUTH_TOKEN} https://api.github.com/orgs/${GITHUB_ORG}/repos\?type\=all | jq -r '.[].ssh_url' | sort
This file contains hidden or 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 | |
# VirtualBox | |
pacman -Sy virtualbox-guest-utils | |
systemctl enable | |
# Network setup | |
pacman -Sy dhcpcd |
This file contains hidden or 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
GitHub Personal Access Token that you can get from https://github.com/settings/tokens (click on “generate a new one” and check all the “repo” and “user” permission scopes) | |
curl -s -H "Authorization: token $TOKEN" "https://api.github.com/orgs/$ORG/repos?per_page=100&page=1" | jq -r ".[].ssh_url" | xargs -n 1 git clone | |
Githun API limits to 100 repos increment page to get the second hundred |
OlderNewer