Skip to content

Instantly share code, notes, and snippets.

Richard Willis badsyntax

Block or report user

Report or block badsyntax

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View .bashrc
nvm() {
echo "Lazy loading nvm..."
[ -s "$NVM_DIR/" ] && \. "$NVM_DIR/" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
function setup-prompt() {
if [ -f "$(brew --prefix)/etc/bash_completion" ]; then
. $(brew --prefix)/etc/bash_completion
badsyntax / iterm2-colors.itermcolors
Created Jun 20, 2019
View iterm2-colors.itermcolors
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
<key>Ansi 0 Color</key>
<key>Alpha Component</key>
<key>Blue Component</key>
View .bashrc
# Getting started
# 1. Install homebrew:
# 2. Install nvm:
# 3. Install other stuff:
# brew install bash-completion
# brew install git
# brew install lolcat
# brew install bash (then folllow instructions here:
# 4. Run: echo "source ./.bashrc" > ~/.bash_profile
# 5. Open a new iterm window
badsyntax / launch.json
Created Jun 19, 2019
Debuggin react-scripts tests
View launch.json
"version": "0.2.0",
"configurations": [
"name": "Debug CRA Tests",
"type": "node",
"request": "launch",
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/react-scripts",
"args": [
badsyntax /
Last active Jun 17, 2019
pandoc -V geometry:margin=0.5in -t latex book.epub -o out.pdf && \
pdfjam out.pdf --nup 2x1 --landscape --outfile combined.pdf
badsyntax /
Last active May 2, 2019
Getting started with Go development on macOS
View basic_settings.json
"window.zoomLevel": 1,
"eslint.autoFixOnSave": true,
"workbench.colorCustomizations": {
"statusBar.background": "#000000",
"statusBar.noFolderBackground": "#000000"
"files.trimTrailingWhitespace": true,
"editor.renderWhitespace": "all"
badsyntax /
Last active Jun 6, 2019
Getting started with Java development on macOS

Getting started with Java development on macOS

Install multiple Java versions

To start, list current installed Java versions:

/usr/libexec/java_home -verbose
View cli.js
#!/usr/bin/env node
const fs = require('fs');
const path = require('path');
const walk = require('walk');
const yargs = require('yargs');
const getOwnersForFile = require('./get-owners-for-file');
const argv = yargs.command('$0 [options] <path>', false, _yargs => {
badsyntax / .bashrc
Last active Nov 6, 2018
latest .bashrc
View .bashrc
shopt -s autocd
shopt -s cdspell
shopt -s direxpand
shopt -s dirspell
alias ls="ls -G"
export GREP_OPTIONS='--color=always'
if [ -f "$(brew --prefix)/etc/bash_completion" ]; then
. $(brew --prefix)/etc/bash_completion
You can’t perform that action at this time.