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 | |
# script for batch running sysbench I/O tests for mysql workload | |
# http://www.mysqlperformanceblog.com/2009/08/06/ec2ebs-single-and-raid-volumes-io-bencmark/ | |
set -u | |
set -x | |
set -e | |
for size in 256M 16G; do |
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
sudo apt-get install nginx | |
pip install uwsgi |
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
# 1 - Install magic-namespace | |
$ helm upgrade --install test-tiller stable/magic-namespace --set tiller.storage=secret | |
Release "test-tiller" does not exist. Installing it now. | |
NAME: test-tiller | |
LAST DEPLOYED: Thu May 9 00:14:20 2019 | |
NAMESPACE: default | |
STATUS: DEPLOYED | |
RESOURCES: |
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/bash | |
# This file is designed to spin up a Wireguard VPN quickly and easily, | |
# including configuring a recursive local DNS server using Unbound | |
# | |
# Make sure to change the public/private keys before running the script | |
# Also change the IPs, IP ranges, and listening port if desired | |
# iptables-persistent currently requires user input | |
# add wireguard repo | |
sudo add-apt-repository ppa:wireguard/wireguard -y |
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
acm:DescribeCertificate | |
acm:GetCertificate | |
acm:ListCertificates | |
ec2:AuthorizeSecurityGroupIngress | |
ec2:CreateSecurityGroup | |
ec2:CreateTags | |
ec2:DeleteSecurityGroup | |
ec2:DeleteTags | |
ec2:DescribeAccountAttributes | |
ec2:DescribeAddresses |
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/bash | |
set -euo pipefail | |
##### | |
# Use this script to identify billable GitHub actions usage for a repo | |
# within the current billable period. | |
# | |
# Prerequisite: | |
# | |
# Fetch a PAT from https://github.com/settings/tokens?type=beta | |
# and assign read access to actions. Export as "GITHUB_PAT". |