Instantly share code, notes, and snippets.

aws ecs describe-task-definition --task-definition=sentry | jq -r '.taskDefinition.containerDefinitions[] | .environment[] | "export \(.name)=\(.value)"'
View homepage.html
<div id="featured-items-container" class="well">
<div id="featured-items" class="multi-carousel" data-json-url="{% url 'featured-items-json' %}">
<ul class="items list-unstyled list-inline">
{% for wdl_id, thumbnail_ts, title in featured_items|slice:":5" %}
<li class="item" data-wdl-id="{{ wdl_id|unlocalize }}">
<a href="{% url 'item-detail' wdl_id=wdl_id %}" title="{{ title }}">
<img class="img-rounded" width="308" height="255" src="{% media_url 'item-thumbnail' wdl_id=wdl_id height=255 width=308 timestamp=thumbnail_ts %}" alt="{{ title }}">
<span class="caption">{{ title }}</span>
View overcast.opml
<?xml version="1.0"?>
<opml version="1.0">
<title>Overcast Podcast Subscriptions</title>
<outline type="rss" text="Death, Sex &amp; Money" title="Death, Sex &amp; Money" xmlUrl="" htmlUrl=""/>
<outline type="rss" text="Reveal" title="Reveal" xmlUrl="" htmlUrl=""/>
<outline type="rss" text="This American Life" title="This American Life" xmlUrl="" htmlUrl=""/>
<outline type="rss" text="Working" title="Working" xmlUrl="" htmlUrl=""/>
#!/usr/bin/env python
# encoding: utf-8
"""Download one or more URLs with a running progress display"""
from __future__ import (absolute_import, division, print_function,
import os
import sys
from timeit import default_timer
#!/usr/bin/env python
from __future__ import absolute_import, print_function
from multiprocessing.pool import ThreadPool
from random import random
from time import sleep
from timeit import default_timer
import sys
#!/usr/bin/env python3
from unicodedata import category, name
from sys import maxunicode
for i in range(0, maxunicode):
char = chr(i)
if category(char) == 'Zs':
print(i, name(char), char, sep='\t')
View .stylelintrc
"plugins": [
"extends": "stylelint-config-standard",
"rules": {
"indentation": 4,
"function-comma-newline-after": "always-multi-line",
"function-comma-space-after": "always",
"function-parentheses-newline-inside": "always-multi-line",
import inspect
import math
print("all local variables:")
print("just the modules:")
print([name for name, value in locals().items() if inspect.ismodule(value)])
View .gitattributes
bagit.xml diff=xml2rfc
View .stylelintrc.json
"plugins": [
"extends": "stylelint-config-standard",
"rules": {
"order/declaration-block-property-groups-structure": [
"emptyLineBefore": "always",