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
@badsyntax
badsyntax / INSTRUCTIONS.md
Last active May 2, 2019
Getting started with Go development on macOS
View INSTRUCTIONS.md
View basic_settings.json
{
"workbench.colorCustomizations": {
"statusBar.background": "#000000",
"statusBar.noFolderBackground": "#000000"
},
"files.trimTrailingWhitespace": true,
"editor.renderWhitespace": "all"
}
@badsyntax
badsyntax / INSTRUCTIONS.md
Last active Jun 6, 2019
Getting started with Java development on macOS
View INSTRUCTIONS.md

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 => {
_yargs
@badsyntax
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
View .eslintrc
{
"extends": [
"skyscanner",
"prettier",
"prettier/react"
],
"env": {
"browser": true,
"jest": true
},
View checklist.md
  • Headlamp
  • Mandarins (3)
  • Bananas (2)
  • Snicker bars (3)
  • Trekking sticks
  • Jacket
  • Light jacket
  • Thermal underwear (cold start)
  • Trekking shoes
  • Trekking pants
@badsyntax
badsyntax / add.png
Last active Feb 24, 2018
Adding Namecheap glue and nameserver records for a mailinabox server
@badsyntax
badsyntax / crontab
Created Feb 29, 2016
pflogsumm rocks
View crontab
@daily /usr/sbin/pflogsumm -d yesterday --problems /var/log/mail.log | mail -s "Mail Server: Yesterday's mail activity" email@example.com
@badsyntax
badsyntax / example.sh
Created Dec 18, 2015
Install and Enable the LXD REST API in Ubuntu 14.04
View example.sh
sudo apt-get install -y software-properties-common
sudo add-apt-repository -y ppa:ubuntu-lxc/lxd-stable
sudo apt-get update
sudo apt-get install -y lxd
sudo newgrp lxd
sudo lxc config set core.https_address 127.0.0.1
sudo lxc config trust add $HOME/.config/lxc/client.crt
You can’t perform that action at this time.