Skip to content

Instantly share code, notes, and snippets.

View lilithmooncohen's full-sized avatar

Lily Cohen lilithmooncohen

View GitHub Profile
@lilithmooncohen
lilithmooncohen / gist:9794015
Last active August 29, 2015 13:57
Simple script to return TCP memory settings and actual usage.
#!/bin/bash
# Author: Ryan C Koch - ryanckoch@gmail.com
# Purpose: Returns TCP Memory settings and Usage
# Arguments: low - Return Low Threshold Setting
# mem - Return Memory Pressure Setting
# out - Return Out of Socket Setting
# use - Return Actual Usage
# use_thresh - Check Usage Against Settings and Return Threshold
SETTINGS=$(cat /proc/sys/net/ipv4/tcp_mem)
#!/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"
#!/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"

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:

@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:
#!/bin/bash
set -e
if [ "$#" -lt 4 ]; then
>&2 echo "Not all expected arguments set."
exit 1
fi
PROJECT_ID=$1
➜ issue-1826 cat main.tf
locals {
credentials_file_path = "./sa-key.json"
}
provider "google" {
credentials = "${file(local.credentials_file_path)}"
}
resource "google_project" "project" {
➜ 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/.

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:

@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