Skip to content

Instantly share code, notes, and snippets.

@brianlamb
brianlamb / Brewfile
Created May 13, 2020 — forked from ryanhanwu/Brewfile
New Mac Setup Script 2019
View Brewfile
# 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 May 13, 2020
Hackintosh setup - Overview and System specific steps
View .Hackintosh-Aorus390ProWifi-RX580
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 Apr 27, 2020 — forked from donmelton/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.
View encode.sh
#!/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 Nov 30, 2019
Update a forked repository in GitHub (use local download and git CLI)
View gist:8555ec4167b5a4dd08b4523fd6d54e4f
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 Oct 16, 2018
tries to load sign in sheet in MB with Sort Order - First Name
View mindbody_roster_by_first_name.user.js
// ==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&
View 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.
@brianlamb
brianlamb / gist:7682256
Last active Dec 29, 2015
Ruby 1.8.7 CSV example
View gist:7682256
#pre-fastercsv examples to import CSV data in Ruby 1.8.7
require 'csv'
CSV::Reader.parse(File.open('./db/sample_tasks.dat'), fs = 9) do |row|
next if row[0] == 'name'
Task.create!(
:name => row[0],
:description => row[1],
:duration => row[2],
:due_date => row[3],
You can’t perform that action at this time.