Skip to content

Instantly share code, notes, and snippets.

View mdevilliers's full-sized avatar
💭
Crufting

Mark deVilliers mdevilliers

💭
Crufting
View GitHub Profile

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@mdevilliers
mdevilliers / python run pipes
Last active February 16, 2018 17:19 — forked from Popcore/python run pipes
Run a Thingful pipe programmatically with python
import requests
import os
import logging
try:
import http.client as http_client
except ImportError:
# Python 2
import httplib as http_client
@mdevilliers
mdevilliers / gist:257c03831cc10a016c6e5930205a8068
Last active January 19, 2018 17:09
multiple wav to one mp3 file
sudo apt-get install lame
sudo apt-get install mp3wrap
for i in *.wav; do lame -b 320 -h "${i}" "${i%.wav}.mp3"; done
find . -maxdepth 1 -iname '*.mp3' -print0 | sort -Vz | xargs -0 mp3wrap $RANDOM.mp3
@mdevilliers
mdevilliers / aws_ami_copier.py
Created February 10, 2016 08:21
Script to copy an ami image to all of the other regions
#!/usr/bin/env python
from __future__ import print_function
from argparse import ArgumentParser, Action
import boto.ec2
import os
regions = ['us-west-2', 'us-east-1', 'us-west-1', 'eu-west-1', 'sa-east-1',