Skip to content

Instantly share code, notes, and snippets.

View osterman's full-sized avatar
🤙
https://slack.cloudposse.com

Erik Osterman (CEO @ Cloud Posse) osterman

🤙
https://slack.cloudposse.com
View GitHub Profile
@temoto
temoto / bitsquat.py
Created November 20, 2012 18:03
DNS domain bitsquat checker
#!/usr/bin/env python
from __future__ import unicode_literals
# Original idea: http://dinaburg.org/bitsquatting.html
import gevent.monkey
gevent.monkey.patch_all()
import dns.name, dns.resolver
import gevent, gevent.pool
import sys
@dlueth
dlueth / mdnsresponder.sh
Last active April 16, 2022 03:02
Replace Yosemite's DNS discoveryd with the former mDNSResponder.
#!/bin/bash
if [ ! $(whoami) = 'root' ]; then
echo "This script should be run as root." > /dev/stderr
exit 1
fi
spinner()
{
local pid=$!
resource "aws_db_event_subscription" "default" {
name = "rds-event-sub-${var.environment}"
sns_topic = "${aws_sns_topic.default.arn}"
source_type = "db-instance"
source_ids = ["${aws_db_instance.main_rds_instance.id}"]
event_categories = [
"availability",
"deletion",
@antonbabenko
antonbabenko / ecs-codedeploy
Last active November 16, 2022 23:25
This script performs deployment of ECS Service using AWS CodeDeploy
#!/usr/bin/env bash
#######################################################################
# This script performs deployment of ECS Service using AWS CodeDeploy
#
# Heavily inspired by https://github.com/silinternational/ecs-deploy ,
# which unfortunately can't be used to deploy ECS service when `deployment_option=ECS`
#
# Author: Anton Babenko
# URL: https://github.com/antonbabenko
@rms1000watt
rms1000watt / update-helm-state.sh
Last active November 5, 2019 07:51
Edit helm state.. update the release status of a helm deployment
go get github.com/helm/helm
cd $(go env GOPATH)/src/github.com/helm/helm/_proto
kubectl -n kube-system get cm hello-world.v1 -o yaml | grep release | cut -d' ' -f4 | base64 -D | gunzip | protoc --decode hapi.release.Release hapi/**/* > ~/Desktop/hello-world.v1.protod
# Edit this file to DEPLOYED
cat ~/Desktop/hello-world.v1.protod | protoc --encode hapi.release.Release hapi/**/* | gzip | base64 | pbcopy
kubectl -n kube-system edit cm hell-world.v1
# Update the release with the value in your clipboard
# Also update metadata.labels.STATUS to DEPLOYED so the protobuf matches this label STATUS
helm ls
@AlexAtkinson
AlexAtkinson / gh-workflow-auth-example.yml
Created November 23, 2022 19:38
Github Workflow WITH authorization check.
name: "Full Job Example"
on:
workflow_dispatch:
inputs:
version:
description: Version (See Releases)
required: true
jobs: