Skip to content

Instantly share code, notes, and snippets.

@dergachev
dergachev / GIF-Screencast-OSX.md
Last active June 5, 2024 22:16
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@J-Cake
J-Cake / Track Download Progress in node.js
Created July 9, 2019 13:14
This script records progress made over download without using the `pipe` function and is incredibly memory efficient.
const http = require('http');
const fs = require('fs');
const path = require('path');
const fileLocation = path.join(__dirname, 'video.mp4');
fs.writeFileSync(fileLocation, '');
const file = fs.createWriteStream(fileLocation);
function printSize(bytes) {