-
Use the
h264_mp4toannexb
bitstream filter to convert the mp4s (video steam only) into the AnnexB bitstream formatffmpeg -i input1.mp4 -vcodec copy -vbsf h264_mp4toannexb -acodec copy part1.ts # repeat for up to inputN
-
Concat the files using cat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
projectname=`sed -n 's,.*name="app_name">\(.*\)<.*,\1,p' app/res/values/strings.xml` | |
echo "Setting up build for $projectname" | |
echo "" | |
for f in `find external/ -name project.properties`; do | |
projectdir=`dirname $f` | |
echo "Updating ant setup in $projectdir:" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
make[2]: Entering directory `/home/user/src/tlsdate-android/external/tlsdate' | |
CC src/compat/src_compat_libtlsdate_compat_la-clock-linux.lo | |
CCLD src/compat/libtlsdate_compat.la | |
CC src/src_tlsdate_routeup-routeup.o | |
CC src/src_tlsdate_routeup-util.o | |
CCLD src/tlsdate-routeup | |
CC src/src_tlsdate-tlsdate.o | |
CCLD src/tlsdate | |
CC src/src_tlsdate_helper-tlsdate-helper.o | |
CC src/src_tlsdate_helper-util.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* As per https://code.google.com/p/android/issues/detail?id=39801 | |
* on Android 4.2 (+ ?) we need to pass the serial number to "am start" | |
* in order for the uid not to get lost. | |
* in your 'am start' line pass --user SERIAL_NUM | |
*/ | |
private static String getSerialNumber() { | |
/* We really want to use this code, but it requires bumping up the SDK to 17 so for now | |
we will use reflection. See https://bugzilla.mozilla.org/show_bug.cgi?id=811763#c11 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/sh | |
######## | |
# Attach pci device to vm | |
# | |
# usage: pci-attach <domain> <pci-device> | |
# | |
# Will attempt to partially match device names, e.g., "1a" -> "0000:00:1a.0" | |
# | |
domain=$1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# tlsdate installed with --prefix=$HOME/bin/ins | |
$ tlsdate -V -v -n -C ~/bin/ins/etc/tlsdate/ca-roots/ | |
V: tlsdate version 0.0.4 | |
V: We were called with the following arguments: | |
V: validate SSL certificates host = www.ptb.de:443 | |
V: time is currently 1353011888.627536628 | |
V: time is greater than RECENT_COMPILE_DATE | |
V: using TLSv1_client_method() | |
V: opening socket to www.ptb.de:443 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
FileOutputStream os = null; | |
java.io.FileInputStream is = null; | |
try { | |
os = new FileOutputStream("/test_file"); | |
is = new java.io.FileInputStream(this.getContentResolver().openInputStream(uri)); | |
FileChannel sourceFileChannel = is.getChannel(); |
This is a local copy of the commands from:
- http://www.jmknoble.net/keys/#master-key
- http://www.macfreek.nl/mindmaster/Convert_GPG_keys_to_subkeys
- http://wiki.fsfe.org/Card_howtos/Card_with_subkeys_using_backups/
This guide serves as a reference of collected information necessary for strict management of PGP keys. This includes keeping a master key that always remains
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python -O | |
# Kill a running Android JDWP (debuggable) process without Eclipse. | |
import sys | |
import socket | |
import struct | |
import uuid | |
import random | |
import subprocess |