Instantly share code, notes, and snippets.

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
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
View apache.conf
<VirtualHost *>
<Directory /var/www/devsite/>
AuthType Basic
AuthName "Restricted Content"
AuthUserFile /etc/apache2/.htpasswd
Require valid-user
</Directory>
</Virtualost>
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
View Capybara.md

Capybara Actions

# Anchor
click_link 'Save'

# Button
click_button 'awesome'

# Both above
View headers.go
package main
import (
"fmt"
"net/http"
"os"
)
func main() {
if len(os.Args) < 2 {
View Solr_bill_search.md

Solr Search Query

Field Query: (fq)

tm_relation_sponsored_by_node$field_last_name:lundberg

Fields to return: (fl)

tm_title, tm_field_bill_number, tm_relation_sponsored_by_node$field_last_name