This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
'use strict'; | |
// Licensed under a CC0 1.0 Universal (CC0 1.0) Public Domain Dedication | |
// http://creativecommons.org/publicdomain/zero/1.0/ | |
(function() { | |
// Update 'version' if you need to refresh the cache | |
var staticCacheName = 'static'; | |
var version = 'v1::'; |
var contrast = function (foreground, background) { | |
var hexToRgb = function (hex) { | |
// Expand shorthand form (e.g. '03F') to full form (e.g. '0033FF') | |
var shorthandRegex = /^#?([a-f\d])([a-f\d])([a-f\d])$/i; | |
hex = hex.replace(shorthandRegex, function(m, r, g, b) { | |
return r + r + g + g + b + b; |
# DOCKERFILE | |
FROM ubuntu:latest | |
ADD https://github.com/openfaas/faas/releases/download/0.6.9/fwatchdog /usr/bin | |
RUN chmod +x /usr/bin/fwatchdog | |
ENV FFMPEG_VERSION=3.0.2 | |
WORKDIR /tmp/ffmpeg | |
RUN apt-get -y update && apt-get -y dist-upgrade && apt-get -y install software-properties-common | |
RUN add-apt-repository ppa:mc3man/trusty-media -y | |
RUN apt-get -y install ffmpeg |
I wrote this short tutorial because extending my internal storage using my new micro SD card on my Retroid Pocket 2+ failed all the time. Only setting it up as portable/external worked. However, this instructions should work in any Android 5.0+ device.
So, in case you have problems setting up your SD card on your Android device via graphical interface (setting up storage as extended internal memory or portable), and you get a corrupted SD card or any other error, follow these steps to fix it via adb shell
:
Settings > System > About
, touch/click on Build number
until Developer options
are enabled:Settings > System > Developer options
and enable USB debugging.adb shell
const safeJsonParse = <T>(str: string) => { | |
try { | |
const jsonValue: T = JSON.parse(str); | |
return jsonValue; | |
} catch { | |
return undefined; | |
} | |
}; |