Skip to content

Instantly share code, notes, and snippets.

View braidn's full-sized avatar
🏰
Storming

Braden Douglass braidn

🏰
Storming
View GitHub Profile
@braidn
braidn / build_a_test.rb
Created September 13, 2022 15:39
Minitest for Coderpad
require 'minitest/autorun'
describe('') do
it('') do
_(something).must_equal(1)
end
end
@braidn
braidn / docker.yaml
Created June 23, 2021 02:25
Cloud init for setting up Docker
#cloud-config
groups:
- docker
users:
- default
- name: dockeradm
sudo: ALL=(ALL) NOPASSWD:ALL
groups: users, docker
ssh_authorized_keys:
@braidn
braidn / docker-entrypoint.sh
Created March 23, 2021 01:06
Docker Entrypoint fo Rails
#!/bin/sh
rm -f tmp/pids/server.pid
bin/rails server -b 0.0.0.0 -p $PORT
@braidn
braidn / .vimrc
Created August 11, 2020 12:20
Current vimrc
set nocompatible
call plug#begin('~/.vim/plugged')
set encoding=utf-8
scriptencoding utf-8
set shell=/bin/bash
""Plugs
Plug 'cocopon/iceberg.vim'
@braidn
braidn / docker-compose.yml
Created August 5, 2020 19:46
Docker Compose for Rails Systems Tests
version: '3'
services:
chromedriver:
image: selenium/standalone-chrome-debug
ports:
- 5900:5900
container_name: chrome_driver
environment:
VNC_NO_PASSWORD: 1
networks:
@braidn
braidn / Dockerfile
Last active June 27, 2020 22:08
Crystal Devcontainer
ARG VARIANT="20.04"
FROM mcr.microsoft.com/vscode/devcontainers/base:0-ubuntu${VARIANT}
RUN apt-get update && \
apt-get install -y build-essential curl libevent-dev libssl-dev libxml2-dev libyaml-dev libgmp-dev git && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN curl -sL "https://keybase.io/crystal/pgp_keys.asc" | apt-key add - && \
echo "deb https://dist.crystal-lang.org/apt crystal main" | tee /etc/apt/sources.list.d/crystal.list && \
apt-get update
@braidn
braidn / theme.js
Created February 6, 2020 19:48
Glossier Deck MDX Theme
export default {
fonts: {
body: 'Apercu, sans-serif',
heading: 'Apercu, sans-serif',
monospace: '"Apercu Mono", monospace'
},
colors: {
background: '#f5e3e7',
},
styles: {
@braidn
braidn / js_driver.rb
Created October 26, 2018 13:56
Capybar JS Driver
module JSDriver
def require_js
Capybara.register_driver :selenium_remote do |app|
Capybara::Selenium::Driver.new(
app,
browser: :remote,
url: 'http://chromedriver:4444/wd/hub',
desired_capabilities: Selenium::WebDriver::Remote::Capabilities.chrome
)
end
@braidn
braidn / docker-compose.yml
Last active October 26, 2018 13:34
docker compose file for selenium
version: '3'
services:
chromedriver:
image: selenium/standalone-chrome-debug
ports:
- 5900:5900
environment:
VNC_NO_PASSWORD: 1
web:
build: .
@braidn
braidn / stack_trace.rb
Created March 25, 2018 16:47
JRuby Guess
NameError: uninitialized constant Workers::Subscription
Did you mean? RUBY_DESCRIPTION
const_missing at org/jruby/RubyModule.java:3348
<main> at /src/repo/spec/workers/subscription/cancel_spec.rb:3
require at org/jruby/RubyKernel.java:961
block in -e at -e:1
glob at org/jruby/RubyDir.java:233
<main> at -e:1