Skip to content

Instantly share code, notes, and snippets.

@bbarrows
bbarrows / SlackBlackTheme.css
Last active July 1, 2019 06:47
Slack Custom Black Theme Mods
/*
To inspect Slack elements using Chrome Dev tools:
export SLACK_DEVELOPER_MENU=true
open /Applications/Slack.app
@bbarrows
bbarrows / configMac.sh
Last active February 24, 2019 15:53
Setup a new Mac, configure defaults
# Just goto System Prefernces keyboard and drag key repeat until and delay all the way to the right
#defaults write -g InitialKeyRepeat -int 15 # default minimum is 15 (225 ms)
#defaults write -g KeyRepeat -int 3 # default minimum is 2 (30 ms)
#defaults write NSGlobalDomain KeyRepeat -int 1
echo "Show Path bar in Finder"
defaults write com.apple.finder ShowPathbar -bool true
@bbarrows
bbarrows / Preferences.sublime-settings
Created December 31, 2018 03:23
My Sublime Text 3 Configuration
{
"match_brackets_angle": true,
"always_prompt_for_file_reload": true,
"auto_complete": true,
"auto_complete_commit_on_tab": true,
"auto_complete_cycle": true,
"auto_complete_delay": 30,
"auto_complete_with_fields": true,
"auto_find_in_selection": true,
"binary_file_patterns":
@bbarrows
bbarrows / pythonAnacondaLinuxInstall.sh
Created December 31, 2018 01:50
Anaconda Python Linux Install
#!/bin/bash
# Download from
# https://www.anaconda.com/download/
curl -O https://repo.continuum.io/archive/Anaconda3-2018.12-Linux-x86_64.sh
bash Anaconda3-2018.12-Linux-x86_64.sh
~/anaconda3/bin/conda create -n py35 python=3.5 tensorflow ipython
# Then just hit enter through the install add the following to ur zshrc
#
# export PATH=$HOME/anaconda3/bin/:$PATH
# source $HOME/anaconda3/etc/profile.d/conda.sh
@bbarrows
bbarrows / setupQRCodeGen.sh
Created December 31, 2018 01:46
Create QR Codes from cmd line
#!/bin/bash
# sudo apt-get install nodejs npm
sudo npm install -g qrcode-terminal
# Then qrcode-terminal with whatever args will be used for the QR Code data
@bbarrows
bbarrows / installSublimeTextInLinux.sh
Created December 31, 2018 01:26
Install Sublime Text 3 on Linux with Desktop link
#!/bin/bash
# Installing sublime text 3
# From https://www.sublimetext.com/3
# Be sure to just extract and copy it into the /opt folder
#
#
# sudo ln -s /opt/sublime_text_3/sublime_text /usr/local/bin/subl
# sudo ln -s /opt/sublime_text_3/sublime_text /usr/local/bin/sublime
#
@bbarrows
bbarrows / verifySDCardWBBlocks.sh
Created December 31, 2018 00:47
Using badblocks tools to verify if an SD Card is broken or not
#/bin/bash
# The -w is using a DESTRUCTIVE WRITE TEST
sudo badblocks -v -s -w /dev/mmcblk0
# Reference:
https://www.cloudgear.net/blog/2015/5-minutes-kubernetes-setup/
# install homebrew and cask
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# install virtualbox
brew cask install virtualbox
# install dockertoolbox
@bbarrows
bbarrows / 1-macOS-10.13-high-sierra-setup.md
Created July 2, 2018 14:59 — forked from kevinelliott/1-macOS-10.13-high-sierra-setup.md
macOS 10.13 High Sierra Mostly-Automated Setup

macOS 10.13 High Sierra Mostly-Automated Setup

An easy to refer to document for regularly setting up macOS 10.13 High Siera, in flavor of my previous macOS/OSX setup gists:

I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. I generally reinstall each computer from scratch every 6 months, and I do not perform upgrades between releases.

@bbarrows
bbarrows / osx_preferences.md
Created January 12, 2018 10:18 — forked from rafaelstz/osx_preferences.md
OS X Preferences

OS X Preferences


most of these require logout/restart to take effect

# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false

# Set a shorter Delay until key repeat