Skip to content

Instantly share code, notes, and snippets.

Avatar
🚙
Working on Tristan Cole's Pro Driver! Wishlist on Steam: elocnat.com/TCPD

Tristan Cole elocnatsirt

🚙
Working on Tristan Cole's Pro Driver! Wishlist on Steam: elocnat.com/TCPD
View GitHub Profile
@GEMISIS
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
: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
@lizthegrey
lizthegrey / attributes.rb
Last active Aug 7, 2021
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
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"
SGR_CODES = {
none: 0,
bold: 1,
@elocnatsirt
elocnatsirt / install_hashicorp_app.sh
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.
View install_hashicorp_app.sh
#!/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 {
@mgoodness
mgoodness / k8s-svc-annotations.md
Last active Sep 15, 2021
AWS ELB-related annotations for Kubernetes Services (as of v1.12.0)
View k8s-svc-annotations.md

AWS Service annotations

  • 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)