Skip to content

Instantly share code, notes, and snippets.

@analogrithems
analogrithems / reindex.sh
Created June 24, 2025 23:53 — forked from hartfordfive/reindex.sh
Bash script to re-index all indices matching apattern from a remote Elasticsearch cluster to a local one
#!/bin/bash
if [ "$1" == "" ] || [ "$2" == "" ]; then
echo "Usage: ./reindex.sh [REMOTE_HOST:REMOTE_PORT] [INDEX_PATTERN] [LOCAL_HOST:LOCAL_PORT]"
exit 1
fi
REMOTE_HOST=$1
PATTERN=$2
if [ "$3" == "" ]; then
@analogrithems
analogrithems / resume.json
Last active September 14, 2023 19:23
Resume for Aaron Collins
{
"meta": { "theme": "elegant" },
"basics": {
"name": "Aaron Collins",
"label": "Developer, Security, Operations Engineer",
"picture": "https://raw.githubusercontent.com/analogrithems/analogrithems.github.io/master/me.jpeg",
"email": "aaron.collinsa@gmail.com",
"phone": "(808) 203-8756",
"summary": "I have 20 years of experience in programming, security, operations and release engineering. As an early cloud adopter, I’ve learned, the amount of services I manage increases to infinite possibilities. Using containers, I’ve changed my mental model of what a task is. I strive to make all scripts, jobs and apps run out of a container to achieve my goal of sleeping all night. Since all tasks should now be run from a container most of my time is now spent creating configurations to building C.I.C.D. pipelines or auditing security and training other engineers best practices.",
"location": {
@analogrithems
analogrithems / generate an nginx geo list of amazon's IP's
Last active January 13, 2016 19:36
Generate an Nginx Geo list of Amazon IP's from their public JSON list
var jq = document.createElement('script');
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
setTimeout(function(){
var jqxhr = jQuery.get( "https://ip-ranges.amazonaws.com/ip-ranges.json", function(data) {
var s = "geo $amazon {\n";
var ni = [];
s += "\tdefault\t\t\t0;\n";