Skip to content

Instantly share code, notes, and snippets.

Bart Lantz underhilllabs

Block or report user

Report or block underhilllabs

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
@underhilllabs
underhilllabs / seamuscon2.md
Last active Mar 14, 2019
Seamus Con 2 (2019)
View seamuscon2.md

Thursday 3/28

Friday Night 3/29

Saturday 3/30

Sunday 3/31

View Nightmare-objects.md

Tell me about a Recurring Nightmare that includes..

  • a hovering balloon
  • a whistling teapot
  • broken sunglasses
  • a mirror
  • waking up on a train
  • a basset hound
  • a Clown
  • a Raven/Owl
  • a hole in the ground
View games-bcon-2018.md

Game List for B-Con

whoop whoop!

Root Tea

Me

  • Root
  • Troyes
@underhilllabs
underhilllabs / Monthly-games.md
Last active Aug 4, 2018
Games to play at least once a month
View Monthly-games.md

once s month games

  • Concordia
  • Hansa Teutonica
  • Gloomhaven
  • Heaven and Ale
  • Yokohama
  • Inis
  • Anachrony
  • Gaia Project
  • Clans of Caledonia
View lg-deployment-notes.md

AWS Stuff

Rails Stuff

Foreman

created a Procfile, Procfile.ec2

web: rails s -p 3000
@underhilllabs
underhilllabs / apache.conf
Created Apr 27, 2018
Set up basic http auth to block bots from dev server
View apache.conf
<VirtualHost *>
<Directory /var/www/devsite/>
AuthType Basic
AuthName "Restricted Content"
AuthUserFile /etc/apache2/.htpasswd
Require valid-user
</Directory>
</Virtualost>
@underhilllabs
underhilllabs / something.sql
Created Apr 5, 2018
find 10 largest tables in a Mysql database
View something.sql
SELECT CONCAT(table_schema, '.', table_name),
CONCAT(ROUND(table_rows / 1000000, 2), 'M') rows,
CONCAT(ROUND(data_length / ( 1024 * 1024 * 1024 ), 2), 'G') DATA,
CONCAT(ROUND(index_length / ( 1024 * 1024 * 1024 ), 2), 'G') idx,
CONCAT(ROUND(( data_length + index_length ) / ( 1024 * 1024 * 1024 ), 2), 'G') total_size,
ROUND(index_length / data_length, 2) idxfrac
FROM information_schema.TABLES
ORDER BY data_length + index_length DESC
LIMIT 10;
View fizzbuzz.rb
1.upto(100).each do |n|
print "fizz" if n % 3 == 0
print "buzz" if n % 5 == 0
print n if (n % 3 != 0 && n % 5 != 0)
end
@underhilllabs
underhilllabs / Capybara.md
Created Jan 9, 2018 — forked from tomas-stefano/Capybara.md
Capybara cheatsheet
View Capybara.md

Capybara Actions

# Anchor
click_link 'Save'

# Button
click_button 'awesome'

# Both above
@underhilllabs
underhilllabs / headers.go
Created Dec 11, 2017
a simple go program to print the headers from a URL
View headers.go
package main
import (
"fmt"
"net/http"
"os"
)
func main() {
if len(os.Args) < 2 {
You can’t perform that action at this time.