Skip to content

Instantly share code, notes, and snippets.

# Getting started
# 1. Install homebrew: https://brew.sh/
# 2. Install nvm: https://github.com/nvm-sh/nvm
# 3. Install other stuff:
# brew install bash-completion
# brew install git
# brew install lolcat
# brew install bash (then folllow instructions here: https://apple.stackexchange.com/a/292760)
# 4. Run: echo "source ./.bashrc" > ~/.bash_profile
# 5. Open a new iterm window
@badsyntax
badsyntax / launch.json
Created June 19, 2019 19:38
Debuggin react-scripts tests
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug CRA Tests",
"type": "node",
"request": "launch",
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/react-scripts",
"args": [
"test",
@badsyntax
badsyntax / epub-to-pdf.sh
Last active June 17, 2019 21:04
epub-to-pdf.sh
pandoc -V geometry:margin=0.5in -t latex book.epub -o out.pdf && \
pdfjam out.pdf --nup 2x1 --landscape --outfile combined.pdf
@badsyntax
badsyntax / INSTRUCTIONS.md
Last active May 2, 2019 12:13
Getting started with Go development on macOS
{
"window.zoomLevel": 1,
"eslint.autoFixOnSave": true,
"workbench.colorCustomizations": {
"statusBar.background": "#000000",
"statusBar.noFolderBackground": "#000000"
},
"files.trimTrailingWhitespace": true,
"editor.renderWhitespace": "all"
}
@badsyntax
badsyntax / INSTRUCTIONS.md
Last active December 3, 2024 16:09
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
@badsyntax
badsyntax / cli.js
Last active December 20, 2018 08:28
#!/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 => {
_yargs
@badsyntax
badsyntax / .bashrc
Last active November 6, 2018 19:03
latest .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
{
"extends": [
"skyscanner",
"prettier",
"prettier/react"
],
"env": {
"browser": true,
"jest": true
},
@badsyntax
badsyntax / checklist.md
Last active February 9, 2018 17:52
Montserrat
  • Headlamp
  • Mandarins (3)
  • Bananas (2)
  • Snicker bars (3)
  • Trekking sticks
  • Jacket
  • Light jacket
  • Thermal underwear (cold start)
  • Trekking shoes
  • Trekking pants