Skip to content

Instantly share code, notes, and snippets.

Working on a crazy stunt driving game! Wishlist on Steam:

Tristan Cole elocnatsirt

Working on a crazy stunt driving game! Wishlist on Steam:
View GitHub Profile
GEMISIS / vid-2-gif.bat
Last active Jun 28, 2020
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!
View vid-2-gif.bat
@echo off
if [%1]==[] goto :error1
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
lizthegrey / attributes.rb
Last active Aug 7, 2022
Hardening SSH with 2fa
View attributes.rb
default['sshd']['sshd_config']['AuthenticationMethods'] = 'publickey,keyboard-interactive:pam'
default['sshd']['sshd_config']['ChallengeResponseAuthentication'] = 'yes'
default['sshd']['sshd_config']['PasswordAuthentication'] = 'no'
greglook / sg-diff
Created Jul 27, 2018
Render Terraform AWS security group diffs for humans
View sg-diff
#!/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"
none: 0,
bold: 1,
elocnatsirt /
Last active Sep 2, 2019
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:
# 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 {
mgoodness /
Last active Jun 27, 2022
AWS ELB-related annotations for Kubernetes Services (as of v1.12.0)

AWS Service annotations

  • (in minutes)
  • (true|false)
  • (comma-separated list of key=value)
  • (http|https|ssl|tcp)
  • (true|false)