Skip to content

Instantly share code, notes, and snippets.

View aggregate_redis_keys.py
import sys
from collections import defaultdict
# To be used like this:
# redis-cli --scan | python aggregate_redis_keys.py
prefixes = (
'dev_',
'prod_',
'staging_',
@mcuelenaere
mcuelenaere / mysql_backup.py
Last active Jan 9, 2019
Script to automate creating a MySQL backup using LVM snapshots, over multiple disks on AWS
View mysql_backup.py
#!/usr/bin/python
# -*- coding: utf-8 -*-
import boto3
import re
import subprocess
import os
import tempfile
import shutil
@mcuelenaere
mcuelenaere / copy_as_geo_json.py
Last active Aug 29, 2015
CopyAsGeoJSON SequelPro bundle
View copy_as_geo_json.py
#!/usr/local/bin/python3
import io
import json
import random
import re
import subprocess
import sys
from osgeo import gdal
from ogr import CreateGeometryFromWkt
View foo.diff
Only in blitz-0.8.6/: .DS_Store
Only in blitz-0.8.6/: .deps
Only in blitz-0.8.6/: .libs
Only in blitz-0.8.6/: Makefile
Only in blitz-0.8.6/: Makefile.fragments
Only in blitz-0.8.6/: Makefile.global
Only in blitz-0.8.6/: Makefile.objects
Only in blitz-0.8.6/: acinclude.m4
Only in blitz-0.8.6/: aclocal.m4
Only in blitz-0.8.6/: autom4te.cache
You can’t perform that action at this time.