This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ ! $(whoami) = 'root' ]; then | |
echo "This script should be run as root." > /dev/stderr | |
exit 1 | |
fi | |
spinner() | |
{ | |
local pid=$! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Full Job Example" | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: Version (See Releases) | |
required: true | |
jobs: |