Skip to content

Instantly share code, notes, and snippets.

@mcuelenaere
mcuelenaere / mysql_backup.py
Last active March 17, 2022 10:36
Script to automate creating a MySQL backup using LVM snapshots, over multiple disks on AWS
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import boto3
import re
import subprocess
import os, os.path
import tempfile
import shutil
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 / copy_as_geo_json.py
Last active August 29, 2015 14:14
CopyAsGeoJSON SequelPro bundle
#!/usr/local/bin/python3
import io
import json
import random
import re
import subprocess
import sys
from osgeo import gdal
from ogr import CreateGeometryFromWkt
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