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
| // quick and dirty | |
| highlightJSX(stringToEvaluate, searchTerm) { | |
| const regex = new RegExp(searchTerm, 'gi'); | |
| const resultText = stringToEvaluate.replace(regex, `<mark class="highlight">$&</mark>`); | |
| return <span dangerouslySetInnerHTML={{ __html: resultText }} />; | |
| } | |
| // highlightJSX('this is a string to search and to evaluate', 'to') | |
| // expected output | |
| // <>this is a string <mark class="highlight">to</mark> search and <mark class="highlight">to</mark> evaluate<> | |
| var _ = require('underscore'), | |
| util = require('util'); | |
| // intercept stdout, passes thru callback | |
| // also pass console.error thru stdout so it goes to callback too | |
| // (stdout.write and stderr.write are both refs to the same stream.write function) | |
| // returns an unhook() function, call when done intercepting | |
| module.exports = function interceptStdout(callback) { | |
| var old_stdout_write = process.stdout.write, | |
| old_console_error = console.error; |
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
| /* | |
| * add-profile.c ... paste an ICC profile into a JPG file, without | |
| * decompress/recompress. | |
| * | |
| * Adapted from wrjpgcom.c | |
| * | |
| * compile with: | |
| * | |
| * gcc -g -Wall add-profile.c `pkg-config glib-2.0 --cflags --libs` | |
| */ |
| #!/bin/bash | |
| # | |
| # Copy data from a Time Machine volume mounted on a Linux box. | |
| # | |
| # Usage: copy-from-time-machine.sh <source> <target> | |
| # | |
| # source: the source directory inside a time machine backup | |
| # target: the target directory in which to copy the reconstructed | |
| # directory trees. Created if it does not exists. | |
| # |
| <# | |
| .SYNOPSIS | |
| Script to Initialize my custom powershell setup. | |
| .DESCRIPTION | |
| Script uses scoop | |
| .NOTES | |
| **NOTE** Will configure the Execution Policy for the "CurrentUser" to Unrestricted. | |
| Author: Mike Pruett | |
| Date: October 18th, 2018 |
| to be executed: node entry.js deepzoom | |
| vips_init: starting | |
| vips_init: done | |
| vips_init: starting | |
| vips_init: starting | |
| vips_init: starting | |
| vips_init: starting | |
| vips_init: starting | |
| vips_init: starting | |
| vips_init: starting |
| I've tried several times and also with both 8.4 and 8.5 libvips versions. The below output is from an attempt to build the 8.4 version: | |
| root@voyager:/opt/nodejs/build-win64# ./build.sh 8.4 | |
| xenial: Pulling from library/ubuntu | |
| Digest: sha256:34471448724419596ca4e890496d375801de21b0e67b81a77fd6155ce001edad | |
| Status: Image is up to date for ubuntu:xenial | |
| Sending build context to Docker daemon 2.56 kB | |
| Step 1 : FROM ubuntu:xenial | |
| ---> ccc7a11d65b1 | |
| Step 2 : MAINTAINER Lovell Fuller <npm@lovell.info> |
| #!/bin/bash | |
| # | |
| # git-mv-with-history -- move/rename file or folder, with history. | |
| # | |
| # Moving a file in git doesn't track history, so the purpose of this | |
| # utility is best explained from the kernel wiki: | |
| # | |
| # Git has a rename command git mv, but that is just for convenience. | |
| # The effect is indistinguishable from removing the file and adding another | |
| # with different name and the same content. |