Skip to content

Instantly share code, notes, and snippets.

View bscott's full-sized avatar
🏠

Brian Scott bscott

🏠
View GitHub Profile
@bscott
bscott / devshell.nix
Last active May 6, 2024 06:14
Nix Dev Shell Setup
{ pkgs ? import <nixpkgs> {} # here we import the nixpkgs package set
}:
pkgs.mkShell { # mkShell is a helper function
name="dev-environment"; # that requires a name
buildInputs = [ # and a list of packages
pkgs.nodejs
pkgs.python3
pkgs.go
pkgs.rustc
pkgs.wget
sudo du -a /dir/ | sort -n -r | head -n 20
@bscott
bscott / go-install.sh
Created February 24, 2018 21:34
go install
#!/bin/bash
set -e
GVERSION="1.7"
GFILE="go$GVERSION.linux-amd64.tar.gz"
GOPATH="$HOME/go"
GOROOT="/usr/local/go"
if [ -d $GOROOT ]; then
echo "Installation directory already exists $GOROOT"
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch",
"type": "go",
"request": "launch",
"mode": "exec",
"remotePath": "",
@bscott
bscott / launch-pre.json
Last active July 18, 2017 02:10
prevscode-config
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch",
"type": "go",
"request": "launch",
"mode": "debug",
"remotePath": "",
@bscott
bscott / funcs.go
Created July 11, 2017 03:26
errorf
func errorf(format string, args ...interface{}) {
fmt.Fprintf(os.Stderr, format, args...)
}
@bscott
bscott / Dockerfile.buffalobuild
Last active July 8, 2017 18:23
Buffalo multistage
FROM gobuffalo/buffalo:development as builder
ENV BP=$GOPATH/src/github.com/gopherguides/web
RUN mkdir -p $BP
WORKDIR $BP
ADD package.json .
RUN npm install
ADD . .

Keybase proof

I hereby claim:

  • I am bscott on github.
  • I am brianscott (https://keybase.io/brianscott) on keybase.
  • I have a public key ASBivyaVWIonmIXRs2KguWa_ZysI_TWpIS9UmWj5e2AcQgo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am bscott on github.
  • I am brianscott (https://keybase.io/brianscott) on keybase.
  • I have a public key ASBivyaVWIonmIXRs2KguWa_ZysI_TWpIS9UmWj5e2AcQgo

To claim this, I am signing this object:

@bscott
bscott / output.txt
Created June 30, 2017 08:04
Buffalo output
$ buffalo dev
Buffalo version v0.9.0
buffalo: 2017/06/30 01:03:24 === Rebuild on: :start: ===
buffalo: 2017/06/30 01:03:24 === Running: go build -v -i -o tmp/golangflow-build (PID: 1735) ===
github.com/bscott/golangflow/vendor/github.com/mitchellh/go-homedir
github.com/bscott/golangflow/vendor/github.com/fatih/color/vendor/github.com/mattn/go-isatty
github.com/bscott/golangflow/vendor/github.com/fatih/color/vendor/github.com/mattn/go-colorable
github.com/bscott/golangflow/vendor/github.com/go-sql-driver/mysql
github.com/bscott/golangflow/vendor/github.com/jmoiron/sqlx/reflectx