No need to add ppa anymore
sudo apt install gdal-bin libgdal-dev
workon <env>
pip install --global-option=build_ext --global-option="-I/usr/include/gdal" GDAL==`gdal-config --version`
ffmpeg -i <infile> -ac 2 -f wav <outfile> |
package com.example.sortable.app; | |
import android.app.Activity; | |
import android.content.Context; | |
import android.graphics.Color; | |
import android.os.Bundle; | |
import android.view.LayoutInflater; | |
import android.view.MotionEvent; | |
import android.view.View; | |
import android.view.ViewGroup; |
http://www.ekho.name/2012/03/pgagent-debianubuntu.html |
""" | |
Two things are wrong with Django's default `SECRET_KEY` system: | |
1. It is not random but pseudo-random | |
2. It saves and displays the SECRET_KEY in `settings.py` | |
This snippet | |
1. uses `SystemRandom()` instead to generate a random key | |
2. saves a local `secret.txt` |
#!/usr/bin/python | |
import sys,getopt | |
filename = None | |
blocksize = 1024 | |
opts,args = getopt.getopt(sys.argv[1:],'f:b:') | |
for o,a in opts: | |
if o == '-f': |