A list of useful commands for the FFmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
| --------------------------- MODULE MemoryTracking --------------------------- | |
| (* A memory allocator which tracks usage by "phase" *) | |
| CONSTANTS Phase, (* A set of phases *) | |
| Thread, (* A set of threads *) | |
| Address (* A set of addresses *) | |
| VARIABLES memory, (* All in-use allocations *) | |
| memoryByPhase, (* A mapping from phases to sets of allocated items *) | |
| memoryByThread (* A mapping from threads to an allocated record *) |
| If you've got something like this: | |
| file was built for arm64 which is not the architecture being linked (x86_64): | |
| Than this gist is for you. | |
| Let's say you have already developed the framework itself and just want to build the binary | |
| and distribute it through the Cocoapods. | |
| 1. Make sure your framework "Deployment Target" is equal to all the dependencies from your podspec file. |
| // NOTE: ignore the .cpp extension on the filename - this is VEX | |
| // but I couldn't find a gist-friendly way to syntax-hilight it | |
| // ¯\_(ツ)_/¯ | |
| // | |
| // h's magic adaptive point resizer for optimal | |
| // rendering of tiny points/particles/wires | |
| // | |
| // 1/2/2018 [email protected] | |
| // CC-0 - use and abuse |
| -- Redis script to implement a leaky bucket | |
| -- see https://medium.com/callr-techblog/rate-limiting-for-distributed-systems-with-redis-and-lua-eeea745cb260 | |
| -- (c) Florent CHAUVEAU <[email protected]> | |
| local ts = tonumber(ARGV[1]) | |
| local cps = tonumber(ARGV[2]) | |
| local key = KEYS[1] | |
| -- remove tokens < min (older than now() -1s) | |
| local min = ts -1 |
| -- Redis script to get the size of a token bucket | |
| -- see https://medium.com/callr-techblog/rate-limiting-for-distributed-systems-with-redis-and-lua-eeea745cb260 | |
| -- (c) Florent CHAUVEAU <[email protected]> | |
| local ts = tonumber(ARGV[1]) | |
| local key = KEYS[1] | |
| -- remove tokens < min (older than now() -1s) | |
| local min = ts -1 |
| -- Redis script to add an event to a token bucket | |
| -- see https://medium.com/callr-techblog/rate-limiting-for-distributed-systems-with-redis-and-lua-eeea745cb260 | |
| -- (c) Florent CHAUVEAU <[email protected]> | |
| local ts = tonumber(ARGV[1]) | |
| -- set the token bucket to 1 second (rolling) | |
| local min = ts -1 | |
| -- iterate overs keys |
| ;; # EMULATING DATOMIC EXCISION VIA MANUAL DATA MIGRATION | |
| ;; ************************************* | |
| ;; ## Introduction | |
| ;; ************************************* | |
| ;; This Gist demonstrates a generic way to migrate an entire Datomic database | |
| ;; from an existing 'Origin Connection' to a clean 'Destination Connection', | |
| ;; while getting rid of some undesirable data and otherwise preserving history. |
| global | |
| log 127.0.0.1 local0 notice | |
| maxconn 4096 | |
| user haproxy | |
| group haproxy | |
| ssl-server-verify none | |
| defaults | |
| log global | |
| mode http |
A list of useful commands for the FFmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html