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.
View gist:9794015
#!/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)
View gist:42e4d8b4a9abbffb28c0
#!/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"
View docker-playground.sh
#!/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"
View keybase.md

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

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: