Skip to content

Instantly share code, notes, and snippets.

View dblandin's full-sized avatar

devon blandin dblandin

View GitHub Profile
@dblandin
dblandin / error1.txt
Created November 7, 2019 15:09
Auction/Routes/Register console errors
Warning: Failed prop type: Invalid prop `elements[0]` of type `function` supplied to `ElementsRenderer`, expected `object`.
in ElementsRenderer (created by render)
in render
in ScrollManager
in StaticContainer (created by BaseRouter)
in BaseRouter (created by ConnectedRouter)
in ConnectedRouter (created by FarceRouter)
in Provider (created by FarceRouter)
in FarceRouter (created by _ClientApp)
in div (created by Context.Consumer)
@dblandin
dblandin / arch.conf
Last active May 22, 2019 19:35
systemd-boot config
title Arch Linux
linux /vmlinuz-linux
initrd /initramfs-linux.img
options cryptdevice=UUID=c064a135-4764-4ca8-9144-460d0395fd98:archlvm root=/dev/mapper/archvg-root quiet rw resume=/dev/mapper/archvg-swap
@dblandin
dblandin / pacman-pkg.backup
Created May 22, 2019 19:24
pacman packages backup
ack
acpi
alsa-utils
amd-ucode
arandr
autoconf
automake
autorandr
aws-cli
bash
@dblandin
dblandin / buildkite-build-bootstrap.sh
Created November 30, 2017 22:32
buildkite docker build EC2 instance setup
#!/usr/bin/env bash
exec > >(tee /var/log/prepare-instance.log|logger -t prepare-instance -s 2>/dev/console) 2>&1
set -e
AZ=$(curl --show-error --silent http://169.254.169.254/latest/meta-data/placement/availability-zone)
ID=$(curl --show-error --silent http://169.254.169.254/latest/meta-data/instance-id)
REGION=$(printf "%s" "$AZ" | sed 's/.$//')
set_instance_health() {
@dblandin
dblandin / duplication.rb
Last active May 23, 2017 10:59
Code Climate Lunch & Learn Files
require "securerandom"
module DuplicationExample
def identical(message, header: true)
body = []
body << "-- HEADER --" if header
body << "-- MESSAGE --"
body << message
body << "-- FOOTER --"
message = body.join("\n")
@dblandin
dblandin / examples.txt
Created April 14, 2017 17:34
jq examples | Code Climate Lunch & Learn 4.14.2017
codeclimate analyze -f json -e rubocop > issues.json
cat issues.json | jq
cat issues.json | jq '. | length'
cat issues.json | jq '.[0] | keys'
cat issues.json | jq '.[0].fingerprint'
cat issues.json | jq '.[0] | .check_name, .fingerprint'
cat issues.json | jq '.[] | select(.severity == "minor")'
cat issues.json | jq '.[] | { check: .check_name, fingerprint: .fingerprint }'
cat issues.json | jq '.[0].remediation_points | . * 2'
cat issues.json | jq '.[0] | .remediation_points = .remediation_points * 2'
@dblandin
dblandin / README.md
Last active April 3, 2017 01:44
Code Climate's Harness (bootstrapping a local dev environment)

Harness

Run and manage a complete local instance of Example.

Getting Started

  1. Have all projects cloned as sibling directories:
~/code/example/
AllCops:
TargetRubyVersion: 2.3
Exclude:
- 'angular/**/*'
- 'bin/*'
- 'db/migrate/*'
- 'db/schema.rb'
- 'db/seeds/*'
- 'db/seed*'
- 'app/models/ability.rb'
@dblandin
dblandin / mongo-world-2016-notes.md
Created June 30, 2016 15:26
MongoDB World 2016 Notes

MongoDB 🌎 2016 Notes

Tuesday, June 28th

Morning Keynote Session

Eliot Horowitz, CTO, MongoDB

Exciting features in MongoDB 3.4

@dblandin
dblandin / Gemfile
Created May 25, 2014 21:42
Example RubyMotion app using the Routable gem with a Rails-like routes.rb file.
# Gemfile
source 'https://rubygems.org'
gem 'rake'
gem 'routable'