Skip to content

Instantly share code, notes, and snippets.

View mustmodify's full-sized avatar

Johnathon E Wright mustmodify

View GitHub Profile
@mustmodify
mustmodify / stripes.html
Created February 23, 2024 13:54
This code will generate some stripes on an HTML page simulating what I saw on a Jackbox game background. Very cool.
<!DOCTYPE html>
<html>
<head>
<title>Animated Canvas Diagonal Stripes</title>
<style>
body {
margin: 0;
overflow: hidden;
}
<HTML>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css"/>
<script>
$(function(){
var TABLE = $("table");
jw@arkenstone:/projects/client/castle$ bundle exec rake db:migrate
/home/jw/.gem/ruby/2.3.8/gems/puma-2.3.2/lib/puma/puma_http11.so: [BUG] Segmentation fault at 0x0000000000000000
ruby 2.3.8p459 (2018-10-18 revision 65136) [x86_64-linux]
-- Control frame information -----------------------------------------------
c:0043 p:-11844969364246 s:0171 e:000170 TOP [FINISH]
c:0042 p:---- s:0169 e:000168 CFUNC :require
c:0041 p:0125 s:0165 e:000164 TOP /home/jw/.gem/ruby/2.3.8/gems/puma-2.3.2/lib/puma/server.rb:16 [FINISH]
c:0040 p:---- s:0163 e:000162 CFUNC :require
c:0039 p:0089 s:0159 e:000158 TOP /home/jw/.gem/ruby/2.3.8/gems/puma-2.3.2/lib/puma.rb:14 [FINISH]
production@biotic:~$ /bin/bash -i -l -c 'cd /home/production/aperture/releases/20200207215149 && chruby'
running ~/.default_ruby
rbx-2.5.7
rbx-2.5.8
rubinius-2.5.8
ruby-2.1.6
ruby-2.2.2
ruby-2.3.8
* ruby-2.5.6
@mustmodify
mustmodify / 1 config.yaml
Last active August 25, 2023 06:55
Refined Rails configuration used for a blog post
application:
auto_call_queue_size: 18
customer_service_number: '(202) 456-1111'
customer_service_email: "service@domain.com"
deliver_emails: yes
enable_employment_application: yes
enable_survey_request_emails: yes
enable_zone_maps: yes
sandbox_environment: no
yearweek_strategy: 1
# Note, test works fine without 'js: true' -- so headless mode.
describe 'substance abuse professional signup', type: :feature, js: :true do
fixtures(:pages)
it "walks an anonymous user through signup" do
visit '/'
expect(page).to have_content 'Fillory'
end
end
Failures:
1) SAP signup walks an anonymous user through signup
Got 0 failures and 2 other errors:
1.1) Failure/Error: visit '/'
Net::ReadTimeout:
Net::ReadTimeout
# /home/jw/.gem/ruby/2.1.6/gems/selenium-webdriver-3.141.0/lib/selenium/webdriver/remote/http/default.rb:121:in `response_for'
# PostgreSQL Client Authentication Configuration File
# ===================================================
#
# Refer to the "Client Authentication" section in the PostgreSQL
# documentation for a complete description of this file. A short
# synopsis follows.
#
# This file controls: which hosts are allowed to connect, how clients
# are authenticated, which PostgreSQL user names they can use, which
# databases they can access. Records take one of these forms:
jw@logopolis:/projects/open/quadlods/build$ cmake ..
-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
@mustmodify
mustmodify / dt
Last active October 14, 2019 17:08
#!/usr/bin/env ruby
def last_line
`wc -l db/schema.rb`.to_i
end
table_lines = `grep create_table db/schema.rb -n`.split("\n").map{|l| l.gsub(/\:.*/, '').to_i}
term = ARGV[0]
table_starts = `grep "create_table.*#{term}" db/schema.rb -n`.split("\n")