I hereby claim:
- I am sportebois on github.
- I am sportebois (https://keybase.io/sportebois) on keybase.
- I have a public key whose fingerprint is FBCA E30C BFC4 D896 DA6F EFDC 372F 643B EB94 3C61
To claim this, I am signing this object:
#!/usr/bin/env python | |
# -*- coding: UTF-8 -*- | |
import argparse | |
import boto3 | |
parser = argparse.ArgumentParser(description='Cleanup Docker images form ECR.') | |
parser.add_argument('--repository-name', metavar='repo', dest='repository_name', required=True, help='Repository name') | |
parser.add_argument('--registry-id', metavar='registry', dest='registry_id', required=False, help='Registry ID.If you do not specify a registry, the default registry is assumed.') | |
parser.add_argument('--delete', dest='delete', required=False, default=False, action='store_true', help='If set to true, delete the untagged images. Otherwise (default), only list them') |
limit_req_zone $request_uri zone=by_uri:10m rate=30r/m; | |
server { | |
listen 80; | |
location /by-uri/burst0 { | |
limit_req zone=by_uri; | |
try_files $uri /index.html; | |
} |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
# Usage: | |
# | |
# cat file.yml | load-yaml-dump-json | |
# ./load-yaml-dump-json # enter data and ctl-d when finished | |
yaml=`cat` | |
echo == Perl |
This error is reasied when the key cannot be parsed. Since the error code and message are totally helpless, this gist is here to help you verify your certificate and key are correct, which have been the root cause when such error was raised in our Python code.
Sample use case:
ssl_context.load_cert_chain(certfile=certfile, keyfile=keyfile, password='secret')
# Raise SSLError
/* Bitbucket */ | |
@import url(https://cdn.rawgit.com/tonsky/FiraCode/1.204/distr/fira_code.css); | |
/* Bitbucket code and diffs */ | |
.refract-content-container .line-numbers, | |
.refract-content-container .source { | |
font-family: 'Fira Code'; | |
} |
# Markdown utilities (requires `brew install pandoc`) | |
function mdless () { | |
local mdfile=$1 | |
if [ -z ${mdfile:+x} ]; then mdfile="README.md"; fi | |
case $mdfile in | |
-h | --help) | |
print "mdless usage: 'mdless myfile.md' or 'mdless' (defaults to README.md)" | |
;; | |
*) | |
mdcat $mdfile | less |
#!/usr/bin/env bash | |
set -e | |
# Note: this will overwite your AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY if you use it | |
# (I usually prefer using ~/.aws/credentials profile and leave those unset) | |
# Use this script by sourcing the output directly, like: | |
# $(./aws_mfa_auth.sh) | |
# Or | |
# $(./aws_mfa_auth.sh arn:aws:iam::123456789012:mfa/bob) |
/* Github */ | |
@import url(https://cdn.rawgit.com/tonsky/FiraCode/1.204/distr/fira_code.css); | |
.blob-code-inner, | |
.markdown-body .highlight pre, | |
.markdown-body pre, tt, code { | |
font-family: "Fira Code","SFMono-Regular",Consolas,"Liberation Mono",Menlo,Courier,monospace; | |
font-feature-settings: "calt" 1; | |
font-variant-ligatures: contextual; |
/* Gitlab */ | |
@import url(https://cdn.rawgit.com/tonsky/FiraCode/1.204/distr/fira_code.css); | |
.file-content.code pre code, | |
.wiki code, | |
.diff-file .diff-content table { | |
font-family: 'Fira Code'; | |
} |