Based on my experiments with https://github.com/martincameron/micromod
To compile mt
files:
java -jar micromod-20160326.jar songs/Origin.mt
To compile the micromod-c mod player (this is what worked on my Mac anyway):
FROM debian:stretch-slim | |
RUN apt-get update && \ | |
DEBIAN_FRONTEND=noninteractive apt-get install -y git wget curl ca-certificates apt-transport-https gnupg1 sudo | |
RUN wget -q https://packages.sury.org/php/apt.gpg -O- | apt-key add - && \ | |
echo "deb https://packages.sury.org/php/ stretch main" | tee /etc/apt/sources.list.d/php.list && \ | |
apt-get update && \ | |
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ | |
php7.2 php7.2-cli php7.2-common php7.2-opcache php7.2-curl php7.2-mbstring php7.2-mysql php7.2-zip php7.2-xml |
<?php | |
namespace MyApp; | |
use PHPPM\Bootstraps\ApplicationEnvironmentAwareInterface; | |
use Psr\Http\Message\ServerRequestInterface; | |
use RingCentral\Psr7\Response; | |
class MyHandler implements ApplicationEnvironmentAwareInterface { | |
public function __construct() { |
Host * | |
ControlPath ~/.ssh/control/%C | |
ControlMaster auto |
Based on my experiments with https://github.com/martincameron/micromod
To compile mt
files:
java -jar micromod-20160326.jar songs/Origin.mt
To compile the micromod-c mod player (this is what worked on my Mac anyway):
#!/usr/bin/env sh | |
brew install php56 --with-imap | |
brew install php56-apcu php56-igbinary php56-imagick php56-memcache php56-memcached php56-tidy php56-zmq php56-mcrypt php56-event php56-libevent php56-mcrypt php56-intl php56-opcache |
#!/usr/bin/env bash | |
# | |
# Both find commands will output the file name without prefix as well as the file size | |
# `diff -u` outputs a diff format compatible with gist files with the .diff extension | |
# -printf does not work with OSX find unfortunately | |
# | |
diff -u <(find $1 -type f -printf '%s %P\n') <(find $2 -type f -printf '%s %P\n') |
# | |
# Run `make ENVIRONMENT=machinename` to override the default | |
# | |
ENVIRONMENT=default | |
TLS_VERIFY=$(shell docker-machine env $(ENVIRONMENT) | grep 'DOCKER_TLS_VERIFY=".*"' | cut -d\" -f2) | |
HOST=$(shell docker-machine env $(ENVIRONMENT) | grep 'DOCKER_HOST=".*"' | cut -d\" -f2) | |
CERT_PATH=$(shell docker-machine env $(ENVIRONMENT) | grep 'DOCKER_CERT_PATH=".*"' | cut -d\" -f2) | |
MACHINE_NAME=$(shell docker-machine env $(ENVIRONMENT) | grep 'DOCKER_MACHINE_NAME=".*"' | cut -d\" -f2) | |
export DOCKER_MACHINE_NAME=$(MACHINE_NAME) |
// Select by matching id with a regex | |
// eg: $('select:regex("box.*-layout")') | |
jQuery.expr[':'].regex = function(elem, index, args) { | |
var regex = new RegExp(args[3], 'i'); | |
return elem.id.match(regex); | |
} |
ffmpeg -i input.mp4 -acodec aac -ac 2 -strict experimental -ab 160k -s hd720 -vcodec libx264 -preset slow -profile:v baseline -level 30 -maxrate 10000000 -bufsize 10000000 -b:v 1200k -f mp4 -threads 0 output.mp4 |