Skip to content

Instantly share code, notes, and snippets.

@brianlamb
brianlamb / git-recommends.md
Created October 4, 2021 19:56
Git recommendations / style guide

Git Commit message (<50char)

A good rule of thumb is that a git commit message can be appended to the statement "If applied, this commit will …."

Git subject

chore docs style feat

@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.
brew ddrescue
diskutil unmount[|unmountDisk] /dev/<dvd drive disk>
ddrescue -n -b2048 /dev/<dvd drive disk> diskimagename.[iso|disk] mapfile
ddrescue -d -r1 -b2048 /dev/cdrom cdimage mapfile
brew -- dvdbackup
$ cd /dir/where/you/save/the/dvd
@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 / .Hackintosh-Aorus390ProWifi-RX580
Last active August 26, 2021 21:10
Hackintosh setup - Overview and System specific steps
PCPartPicker Part List: https://pcpartpicker.com/list/CkfJZf
CPU: Intel Core i5-9600K 3.7 GHz 6-Core Processor ($198.99 @ Amazon)
Motherboard: Gigabyte Z390 AORUS PRO WIFI ATX LGA1151 Motherboard ($199.99 @ Newegg)
Memory: Corsair Vengeance LPX 16 GB (2 x 8 GB) DDR4-3200 Memory ($74.98 @ Amazon)
Video Card: Sapphire Radeon RX 580 8 GB PULSE Video Card ($183.98 @ Newegg)
Power Supply: Thermaltake Smart 500 W 80+ Certified ATX Power Supply ($49.99 @ Amazon)
CPU Cooler: Thermaltake Slim X3 Low Profile CPU Fan for Intel LGA775/LGA1156 (CLP0534) $23.72
Case: NZXT H510 - CA-H510B-W1 - Compact ATX Mid-Tower White $69.99
Total~~~~~~~: $730
@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.
@brianlamb
brianlamb / gist:8555ec4167b5a4dd08b4523fd6d54e4f
Created November 30, 2019 21:03
Update a forked repository in GitHub (use local download and git CLI)
https://stackoverflow.com/questions/48765859/github-this-branch-is-n-commits-behind
Don't try it with the github site (it's possible but a bad idea). Instead use the "clean" way and do this from inside the dir with your git-repo:
Tell your repository about the original one:
git remote add upstream git://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git
Get the original branches: git fetch upstream
Pull in the original data in to your branch: git pull upstream master
Push this to your github repository: git push
@brianlamb
brianlamb / mindbody_roster_by_first_name.user.js
Last active October 16, 2018 17:23
tries to load sign in sheet in MB with Sort Order - First Name
// ==UserScript==
// Referenced from https://resources.oreilly.com/examples/9780596101657/
// @name Load Class Sign-in as First Name
// @namespace http://www.blambstudio.com/mindbody
// @description Fores loading of class list by "First Name" sorting
// @include https://clients.mindbodyonline.com/*
// ==/UserScript==
window.location.href = window.location.href.replace(/&ob=?&/, '&ob=2'); // &ob=2&
@brianlamb
brianlamb / setting_up_ssl
Created December 13, 2013 20:14
setting up ssl
1. Get an S/MIME client certificate
This is used to identify YOU as an individual via email(/personal information) verification and will be installed into the browser you use to interact with your CA(Certificate Authority)
2.