Skip to content

Instantly share code, notes, and snippets.

View lilithmooncohen's full-sized avatar

Lily Cohen lilithmooncohen

View GitHub Profile
#!/bin/bash
CATEGORY=$1
EMOJI_BASE_URL="https://homestead-social.sfo2.cdn.digitaloceanspaces.com/emoji_packs"
URL_ENCODED_CATEGORY=$(echo $CATEGORY | sed 's/ /%20/g')
NO_SPACE_CATEGORY=$(echo $CATEGORY | sed 's/ /_/g')
import() {
CATEGORY=$1
EMOJI_BASE_URL="https://homestead-social.sfo2.cdn.digitaloceanspaces.com/emoji_packs"
@lilithmooncohen
lilithmooncohen / hydroxide_tailscale.md
Created July 7, 2024 21:01
Hydroxide Proton bridge with valid Tailscale certificates

Hydroxide Proton bridge with valid Tailscale certificates

Tailscale login if you haven't already

sudo tailscale up

Generate certificates

sudo mkdir -p /path/to/my/state/dir/hydroxide

Keybase proof

I hereby claim:

  • I am lilithmooncohen on github.
  • I am lilithmooncohen (https://keybase.io/lilithmooncohen) on keybase.
  • I have a public key ASBDG4mgmu-udGX-A2XxD0QM7BGebcJc-3sQqhMxOB05Dgo

To claim this, I am signing this object:

➜ make test_integration
./test/integration/gcloud/run.sh
Creating main.tf file
Creating outputs.tf file
Fetching https://github.com/terraform-google-modules/kitchen-inspec.git
Fetching gem metadata from https://rubygems.org/........
Fetching gem metadata from https://rubygems.org/........
Fetching gem metadata from https://rubygems.org/.
Fetching gem metadata from https://rubygems.org/.
➜ issue-1826 cat main.tf
locals {
credentials_file_path = "./sa-key.json"
}
provider "google" {
credentials = "${file(local.credentials_file_path)}"
}
resource "google_project" "project" {
#!/bin/bash
set -e
if [ "$#" -lt 4 ]; then
>&2 echo "Not all expected arguments set."
exit 1
fi
PROJECT_ID=$1
@lilithmooncohen
lilithmooncohen / gist:ab3e3780071f1fb6f8616402890e0af4
Created July 30, 2018 17:45
google_project app engine feature setting multiple applies
➜ terraform plan
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.
------------------------------------------------------------------------
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:

Keybase proof

I hereby claim:

  • I am ryanckoch on github.
  • I am ryanckoch (https://keybase.io/ryanckoch) on keybase.
  • I have a public key whose fingerprint is 87D1 3A7A 0BC7 38C2 00E1 9E58 5099 E6DB 7387 08BD

To claim this, I am signing this object:

#!/bin/bash
# Description: This script spins up a multi node Docker Swarm w/ Docker
# Networking and Consul discovery w/ Registrator
# Author: Ryan C Koch
# ryanckoch@gmail.com
# Usage: bash docker-playground.sh usage
PLAYGROUND_NAME="docker-playground"
CONSUL_IMAGE="progrium/consul"
#!/bin/bash
# ------------------------------------------------------------------
# Author: Ryan C Koch - ryanckoch@gmail.com
# Purpose: CHECK TCP AND UDP CONNECTIVITY BETWEEN
# SOURCE AND DESTINATION HOSTS
# ------------------------------------------------------------------
SOURCE_FILE="source.hosts"
DESTINATION_FILE="destination.hosts"
LOG_VERBOSE="logs/verbose.log"