Skip to content

Instantly share code, notes, and snippets.

View acaire's full-sized avatar

Ash Caire acaire

  • Perth, Australia
View GitHub Profile
@acaire
acaire / github-actions-billable-usage.sh
Created November 15, 2023 03:36
Fetch Github Actions Billable Usage per repo
#!/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".
@acaire
acaire / 0.34.0.txt
Last active February 3, 2021 04:54
eksctl-0.35.0-iam-action-differences
acm:DescribeCertificate
acm:GetCertificate
acm:ListCertificates
ec2:AuthorizeSecurityGroupIngress
ec2:CreateSecurityGroup
ec2:CreateTags
ec2:DeleteSecurityGroup
ec2:DeleteTags
ec2:DescribeAccountAttributes
ec2:DescribeAddresses
@acaire
acaire / wg_install.sh
Created March 3, 2020 04:09 — forked from Anachron/wg_install.sh
A script to spin up a Wireguard VPN server with Unbound recursive DNS in a hurry
#!/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
@acaire
acaire / magic-namespace-bug
Created May 8, 2019 16:27
magic namespace bug
# 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:
@acaire
acaire / 000_requirements
Last active August 25, 2017 11:32
netbox nginx with uwsgi
sudo apt-get install nginx
pip install uwsgi
#!/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