Skip to content

Instantly share code, notes, and snippets.

@ZigZagT
ZigZagT / Backup Restore docker images with Docker for Mac.md
Last active July 26, 2019 11:23
Backup / Restore docker images with Docker for Mac

This script can help you save time from downloading/rebuild docker images when you want to use Factory Reset or Resize Disk Image in Docker for Mac which deletes all local images.

MAKE SURE YOU HAVE ENOUGH DISK SPACE AVAILABLE

If you have Time Machine enabled, You can use this command to free up a significant amount of disk space:

tmutil thinlocalsnapshots / 10000 4

For me, I have around 30 images on my dev machine which takes around 25GB on-disk space to backup.

@ZigZagT
ZigZagT / Plex Playback Speed.user.js
Last active July 6, 2024 01:03
Plex Web Player Playback Speed Control and Keyboard Shortcuts
// ==UserScript==
// @name Plex Playback Speed
// @namespace https://github.com/ZigZagT
// @version 1.3.1
// @downloadURL https://gist.githubusercontent.com/ZigZagT/b992bda82b5f7a2c9d214110273d3f3c/raw/Plex%2520Playback%2520Speed.user.js
// @updateURL https://gist.githubusercontent.com/ZigZagT/b992bda82b5f7a2c9d214110273d3f3c/raw/Plex%2520Playback%2520Speed.user.js
// @description Add playback speed controls to plex web player with keyboard shortcuts
// @author ZigZagT
// @include /^https?://[^/]*plex[^/]*/
// @include /^https?://[^/]*:32400/