Skip to content

Instantly share code, notes, and snippets.

View taihen's full-sized avatar

AJ Wolski taihen

View GitHub Profile
@Aaronmacaron
Aaronmacaron / install-alacritty-ubuntu.sh
Last active October 10, 2022 11:26
Install Alacritty on Ubuntu
#!/bin/bash
# This installs alacritty terminal on ubuntu (https://github.com/jwilm/alacritty)
# You have to have rust/cargo installed for this to work
# Install required tools
sudo apt-get install -y cmake libfreetype6-dev libfontconfig1-dev xclip
# Download, compile and install Alacritty
git clone https://github.com/jwilm/alacritty
@dalekurt
dalekurt / gcp.tf
Created January 22, 2019 18:29
Terraform template based on Seth Vargo's vault-on-gke
# This file contains all the interactions with Google Cloud
provider "google" {
region = "${var.region}"
project = "${var.project}"
# An earlier attempt to use a service account with roles/owner
# credentials = "${file("account.json")}"
}
terraform {
required_version = ">= 0.10.0"
@tdmalone
tdmalone / aws-services.py
Created December 28, 2023 04:39
Using an undocumented (and thus subject-to-change) API, provides a list of all AWS services colourised as to whether or not they're available in the given region. Alternatively, given two regions, colourised based on whether services are available in one region, both regions, or neither of them.
#!/usr/bin/env python
import json, sys
from urllib.request import urlopen
def green(str): return f'\033[92m{str}\033[0m'
def orange(str): return f'\033[38;5;214m{str}\033[0m'
def red(str): return f'\033[91m{str}\033[0m'
def yellow(str): return f'\033[93m{str}\033[0m'