Skip to content

Instantly share code, notes, and snippets.

@brianlamb
brianlamb / sync-history.sh
Created March 3, 2021 00:02 — forked from jan-warchol/sync-history.sh
Synchronize history across bash sessions
# Synchronize history between bash sessions
#
# Make history from other terminals available to the current one. However,
# don't mix all histories together - make sure that *all* commands from the
# current session are on top of its history, so that pressing up arrow will
# give you most recent command from this session, not from any session.
#
# Since history is saved on each prompt, this additionally protects it from
# terminal crashes.
@brianlamb
brianlamb / vimeo-vod.md
Created October 15, 2020 14:05 — forked from mmathys/vimeo-vod.md
Download Vimeo VOD (video on demand)

How to download vimeo VOD for offline usage

Step 1

Login to Vimeo and get the cookies.txt file using this Chrome plugin

Step 2

Use youtube-dl to download the video. Example:

@brianlamb
brianlamb / Brewfile
Created May 13, 2020 22:39 — forked from ryanhanwu/Brewfile
New Mac Setup Script 2019
# Taps
tap 'caskroom/cask'
tap 'homebrew/cask-fonts'
tap 'homebrew/cask-versions'
tap 'homebrew/bundle'
tap 'heroku/brew'
# Install CLI Tools
## Shell Utilities
brew 'coreutils'
@brianlamb
brianlamb / encode.sh
Created April 27, 2020 17:46 — forked from lisamelton/encode.sh
This is the shell script I use to drive HandBrakeCLI to re-encode video files in a format suitable for playback on Apple TV, Roku 3, iOS, OS X, etc.
#!/bin/bash
# encode.sh
#
# Copyright (c) 2013 Don Melton
#
# This version published on June 7, 2013.
#
# Re-encode video files in a format suitable for playback on Apple TV, Roku 3,
# iOS, OS X, etc.