This file contains 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
<snippet> | |
<content><![CDATA[import pdb; pdb.set_trace()]]></content> | |
<tabTrigger>pdb</tabTrigger> | |
<scope>source.python</scope> | |
<description>import pdb</description> | |
</snippet> | |
<!-- USAGE --> | |
<!-- 1. Go to Tools -> New Snippet --> |
This file contains 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
FROM python:2.7 | |
RUN apt-get update && \ | |
apt-get install -y --no-install-recommends \ | |
xvfb \ | |
chromium \ | |
chromedriver | |
RUN pip install selenium |
This file contains 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
import boto3 | |
import json | |
import urllib, urllib2 | |
import os | |
from datetime import datetime | |
from dateutil import tz | |
import time | |
ecs = boto3.client('ecs') | |
sns = boto3.client('sns') |
This file contains 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
import re | |
import time | |
from datetime import datetime, timedelta | |
import boto3 | |
import json | |
import hashlib | |
from botocore.vendored import requests | |
SUCCESS = "SUCCESS" | |
FAILED = "FAILED" |
This file contains 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
import json | |
import boto3 | |
from botocore.vendored import requests | |
import json | |
SUCCESS = "SUCCESS" | |
FAILED = "FAILED" | |
def lower(s): | |
return s[:1].lower() + s[1:] if s else s |
This file contains 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
{ | |
"AWSTemplateFormatVersion" : "2010-09-09", | |
"Description" : "Alerts on ECS burst balance and terminates unhealthy hosts", | |
"Parameters" : { | |
"ClusterName": { | |
"Type": "String", | |
"Description": "ECS Cluster name" | |
}, |
This file contains 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 | |
###################################################################### | |
# Useful script when you want to run `pip` in virtual environments # | |
# you have in a common directory with a provided Python package. # | |
# Note: Requires VirtualWrapper to be managing your environments # | |
# # | |
# Usage: # | |
# ./pip_virtualenvs.sh [-i | -u | -z] pkg_name [-a | -l] [env1 env2] # | |
# # | |
# Example: # |
Currently, there is an explosion of tools that aim to manage secrets for automated, cloud native infrastructure management. Daniel Somerfield did some work classifying the various approaches, but (as far as I know) no one has made a recent effort to summarize the various tools.
This is an attempt to give a quick overview of what can be found out there. The list is alphabetical. There will be tools that are missing, and some of the facts might be wrong--I welcome your corrections. For the purpose, I can be reached via @maxvt on Twitter, or just leave me a comment here.
There is a companion feature matrix of various tools. Comments are welcome in the same manner.
This file contains 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
SELECT table_name AS "Tables", | |
round(((data_length + index_length) / 1024 / 1024), 2) "Size in MB", | |
round(((data_length + index_length) / 1024 / 1024 / 1024), 2) "Size in GB" | |
FROM information_schema.TABLES | |
WHERE table_schema = "PUT_DATABASE_NAME_HERE" | |
ORDER BY (data_length + index_length) DESC; |
NewerOlder