Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View elocnatsirt's full-sized avatar
🚙
Working on a crazy stunt driving game! Wishlist on Steam: elocnat.com/TCPD

Tristan Cole elocnatsirt

🚙
Working on a crazy stunt driving game! Wishlist on Steam: elocnat.com/TCPD
View GitHub Profile
@mgoodness
mgoodness / k8s-svc-annotations.md
Last active March 11, 2024 16:24
AWS ELB-related annotations for Kubernetes Services (as of v1.12.0)
  • service.beta.kubernetes.io/aws-load-balancer-access-log-emit-interval (in minutes)
  • service.beta.kubernetes.io/aws-load-balancer-access-log-enabled (true|false)
  • service.beta.kubernetes.io/aws-load-balancer-access-log-s3-bucket-name
  • service.beta.kubernetes.io/aws-load-balancer-access-log-s3-bucket-prefix
  • service.beta.kubernetes.io/aws-load-balancer-additional-resource-tags (comma-separated list of key=value)
  • service.beta.kubernetes.io/aws-load-balancer-backend-protocol (http|https|ssl|tcp)
  • service.beta.kubernetes.io/aws-load-balancer-connection-draining-enabled (true|false)
@lizthegrey
lizthegrey / attributes.rb
Last active February 24, 2024 14:11
Hardening SSH with 2fa
default['sshd']['sshd_config']['AuthenticationMethods'] = 'publickey,keyboard-interactive:pam'
default['sshd']['sshd_config']['ChallengeResponseAuthentication'] = 'yes'
default['sshd']['sshd_config']['PasswordAuthentication'] = 'no'
@greglook
greglook / sg-diff
Created July 27, 2018 23:11
Render Terraform AWS security group diffs for humans
#!/usr/bin/env ruby
# Better Terraform security group diffing. Feed the terraform resource diff
# output into this script's standard input.
SGR_ANSI = "\e[%sm"
SGR_CODES = {
none: 0,
bold: 1,
@GEMISIS
GEMISIS / vid-2-gif.bat
Last active June 28, 2020 15:12
Usage: **vid-2-gif.bat input.mp4** Takes a video input and converts it into a nice, small gif. Note that you'll want to keep the video size fairly small, otherwise the gif could turn out huge! Requires FFMPEG to use!
@echo off
if [%1]==[] goto :error1
:post
set output="%~n1.gif"
echo Creating %output%...
ffmpeg -i %1 -filter_complex "[0:v] fps=12,scale=480:-1,split [a][b];[a] palettegen [p];[b][p] paletteuse" %output%
goto :done
:error1
@elocnatsirt
elocnatsirt / install_hashicorp_app.sh
Last active September 2, 2019 19:28
A script to download and install any valid Hashicorp application (terraform, packer, vagrant, etc.). Has options for version, install directory, extending path, and system architecture.
#!/usr/bin/env bash
# Written by: https://github.com/elocnatsirt
# This will download any valid Hashicorp product you specify if it exists.
# This script has been tested on OSX.
NORM=`tput sgr0`
BOLD=`tput bold`
function show_help {