Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.
brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aac --with-opus| package main | |
| import ( | |
| "encoding/json" | |
| "os" | |
| "reflect" | |
| "text/template" | |
| ) |
| <?php | |
| namespace Vendor\Library; | |
| use function bin2hex; | |
| use function hex2bin; | |
| use function openssl_decrypt; | |
| use function openssl_encrypt; | |
| use function random_bytes; |
| #!/bin/bash | |
| # Перекодирует рекурсивно в текущем каталоге имена | |
| # файлов и каталогов в транслит. | |
| # | |
| # Источник: http://www.ubuntu.sumy.ua/2011/03/translit.html | |
| shopt -s nullglob | |
| for NAME in * ; do | |
| TRS=`echo $NAME | sed "y/абвгдезийклмнопрстуфхцы/abvgdezijklmnoprstufxcy/"` | |
| TRS=`echo $TRS | sed "y/АБВГДЕЗИЙКЛМНОПРСТУФХЦЫ/ABVGDEZIJKLMNOPRSTUFXCY/"` |
| #!/bin/bash | |
| # btrfs-undelete | |
| # Copyright (C) 2013 Jörg Walter <info@syntax-k.de> | |
| # This program is free software; you can redistribute it and/or modify it under | |
| # the term of the GNU General Public License as published by the Free Software | |
| # Foundation; either version 2 of the License, or any later version. | |
| if [ ! -b "$1" -o -z "$2" -o -z "$3" ]; then | |
| echo "Usage: $0 <dev> <file/dir> <dest>" 1>&2 | |
| echo |
| # Solution 1 | |
| # Use only codes greater than 418, do not use common status codes 404, 402, 403, etc | |
| location /location1 { | |
| error_page 463 = @app; return 463; | |
| } | |
| # Solution 2 (drawbacks unknown) | |
| location /location2 { | |
| try_files /dev/null @app; | |
| } |
| /** | |
| * @author | |
| * David Rivera (jherax) | |
| * https://github.com/jherax | |
| */ | |
| /* eslint-disable no-bitwise */ | |
| /** @private */ | |
| const toString = Object.prototype.toString; |
| ; (function (global, define) { define('module-name', function (require, exports, module) { | |
| // CommonJS style code here | |
| /*! | |
| * UMD/AMD/Global context Module Loader wrapper | |
| * based off https://gist.github.com/tejacques/202a8f2d198ddd54a409 | |
| * | |
| * This wrapper will try to use a module loader with the | |
| * following priority: | |
| * |
| NOTE: This document is OLD - and most of the tips here are probably outdated, since newer versions of Javascript have been | |
| released over the years - with newer optimizations and more emphasis on optimizing newly supported syntax. | |
| // Array literal (= []) is faster than Array constructor (new Array()) | |
| // http://jsperf.com/new-array-vs-literal/15 | |
| var array = []; | |
| // Object literal (={}) is faster than Object constructor (new Object()) | |
| // http://jsperf.com/new-array-vs-literal/26 |
| /** | |
| * 4-10 times faster .each replacement | |
| * use it carefully, as it overrides jQuery context of element on each iteration | |
| * | |
| * function clb(DOM, idx, $DOM, DOM) {}; | |
| * $DOM == $(DOM), is the same object throughout iteration | |
| * | |
| */ | |
| ;(function (global) { |