Skip to content

Instantly share code, notes, and snippets.

View andrenarchy's full-sized avatar
🚴‍♂️

André Gaul andrenarchy

🚴‍♂️
View GitHub Profile
@andrenarchy
andrenarchy / HOWTO.md
Created November 18, 2015 10:42
CyanogenMod update w/ encryption

IMPORTANT: use full zip (signed flashable zip; not the incremental update)

FILE="http://builds.cyngn.com/factory/bacon/cm-12.1-YOG4PAS2QL-bacon-signed.zip"
wget ${FILE}
# copy ${FILE} to phone storage (/sdcard)
# reboot to recovery, install ${FILE}, wipe cache & dalvik cache
@andrenarchy
andrenarchy / handbrake_batch
Last active August 29, 2015 14:12
Converts a dir with videos into mp4
#!/bin/bash
BASE_DIR=/home/andre/
INPUT_DIR=$BASE_DIR/handbrake_input/
OUTPUT_DIR=$BASE_DIR/handbrake_output/
OUTPUT_EXT=mp4
HANDBRAKE=HandBrakeCLI
LOG=$BASE_DIR/handbrake_batch.log
for INPUT in `ls $INPUT_DIR`; do
import numpy
from krypy import linsys
m = 10
n = 5
A = numpy.random.rand(m, m)
A = A + A.T
B = numpy.random.rand(n, m)
Z = numpy.zeros((n, n))
tau = 1e-4