Skip to content

Instantly share code, notes, and snippets.

@zrahman001
zrahman001 / bottlequeue.py
Created January 23, 2017 16:31 — forked from fspot/bottlequeue.py
Example app using bottle and multiprocessing for queuing long jobs and using several workers.
#!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
Example app using bottle and multiprocessing for queuing long jobs
and using several workers.
"""
from multiprocessing import Process, Queue, cpu_count
from bottle import Bottle, run
@zrahman001
zrahman001 / convert
Last active August 29, 2015 14:21 — forked from bradenbest/convert
#!/bin/bash
# Converts audio formats in bulk
# requires avconv
fformat=m4a
tformat=mp3
c=0
t=0
files=*.$fformat