Skip to content

Instantly share code, notes, and snippets.

View tansaku's full-sized avatar

Sam Joseph tansaku

View GitHub Profile
@tansaku
tansaku / gist:d4f62519f8a2117ebffedd45bef1d64d
Created January 18, 2019 16:41
staging paypal log for error
2019-01-18T16:40:05.554315+00:00 app[web.1]: I, [2019-01-18T16:40:05.553443 #27] INFO -- : [af132748-f7e2-4c5e-b7ee-ef82e1e30984] Parameters: {"item_number"=>"not sponsored", "item_name"=>"Premium", "payer_email"=>"tansaku@gmail.com"}
2019-01-18T16:40:05.949802+00:00 app[web.1]: I, [2019-01-18T16:40:05.949715 #27] INFO -- : [af132748-f7e2-4c5e-b7ee-ef82e1e30984] Rendering mailer/send_premium_payment_complete.html.erb within layouts/mailer
2019-01-18T16:40:05.950921+00:00 app[web.1]: I, [2019-01-18T16:40:05.950858 #27] INFO -- : [af132748-f7e2-4c5e-b7ee-ef82e1e30984] Rendered mailer/send_premium_payment_complete.html.erb within layouts/mailer (1.0ms)
2019-01-18T16:40:07.396672+00:00 heroku[web.1]: source=web.1 dyno=heroku.21665970.f4078d15-a18b-4dcf-b27b-90593bf44cff sample#load_avg_1m=0.00 sample#load_avg_5m=0.00 sample#load_avg_15m=0.00
2019-01-18T16:40:07.396768+00:00 heroku[web.1]: source=web.1 dyno=heroku.21665970.f4078d15-a18b-4dcf-b27b-90593bf44cff sample#memory_total=503.71MB sample#memory_rss
@tansaku
tansaku / gist:9c45b410f8146f906f8ee901eb7229c6
Created October 31, 2018 09:12
output from ssh -t dokku@agileventures.eastus.cloudapp.azure.com run metplus-pets-staging VERBOSE=true bundle exec rake db:migrate --trace
+ export DOKKU_DISTRO
++ . /etc/os-release
++ echo ubuntu
+ DOKKU_DISTRO=ubuntu
+ export DOKKU_IMAGE=gliderlabs/herokuish
+ DOKKU_IMAGE=gliderlabs/herokuish
+ export DOKKU_LIB_ROOT=/var/lib/dokku
+ DOKKU_LIB_ROOT=/var/lib/dokku
+ export PLUGIN_PATH=/var/lib/dokku/plugins
+ PLUGIN_PATH=/var/lib/dokku/plugins
@tansaku
tansaku / gist:24699ff58901c974b0c8ce48901170f1
Created October 30, 2018 19:22
deploy output from metplus
OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014
debug1: Reading configuration data /home/runner/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to agileventures.eastus.cloudapp.azure.com [40.71.255.113] port 22.
@tansaku
tansaku / gist:bc7c6034e033f4273f9b10f56e592c31
Created October 12, 2018 10:21
intermittent fail on localsupport builds
/home/travis/.rvm/rubies/ruby-2.5.1/bin/ruby -S bundle exec cucumber --profile second_try
Deprecated: Found tags option '~@wip'. Support for '~@tag' will be removed from the next release of Cucumber. Please use 'not @tag' instead.
Using the second_try profile...
@vcr @billy
Feature: Event Location
As a super Admin
So that others can see events location
I would like to add an event address field to the system
Background: Data has been added to the database # features/admin/events/event_location.feature:7
Given the following organisations exist: # features/step_definitions/factory_steps.rb:78
@tansaku
tansaku / technical-review.txt
Created September 19, 2018 12:47
Harrow Women's Center Technical issues
Harrow Women's Centre Technical Issues
--------------------------------------
Four windows 10 machines - all linked to a server. The situation with each machine is as follows
1) R's or volunteer machine - 2 user accounts, both passwords missing
2) D's machine (admin, counselling and volunteer) admin works here
3) 5 accounts including (Admin, Counselling, Finance, Training, Trustees)
4) A's machine (logs in as advice and volunteering) has problems with resetting sometimes and going funny
@tansaku
tansaku / hw-ruby-intro.sh
Created September 6, 2018 12:05
first attempt at codio autograding script
#!/bin/bash
cd /home/codio/workspace/hw-ruby-intro
sudo apt-add-repository -y ppa:rael-gc/rvm
sudo apt-get update
sudo apt-get install rvm
source /usr/share/rvm/scripts/rvm
rvm use 2.4.0
@tansaku
tansaku / gist:30e2c77605d35a0b6f694a084ca42c3e
Created August 29, 2018 11:50
stack trace from weird headless chrome issue
["/Users/tansaku/.rvm/gems/ruby-2.5.1/gems/childprocess-0.9.0/lib/childprocess/unix/io.rb:8:in `check_type'", "/Users/tansaku/.rvm/gems/ruby-2.5.1/gems/childprocess-0.9.0/lib/childprocess/abstract_io.rb:11:in `stderr='", "/Users/tansaku/.rvm/gems/ruby-2.5.1/gems/selenium-webdriver-3.14.0/lib/selenium/webdriver/common/service.rb:94:in `build_process'", "/Users/tansaku/.rvm/gems/ruby-2.5.1/gems/selenium-webdriver-3.14.0/lib/selenium/webdriver/chrome/service.rb:37:in `start_process'", "/Users/tansaku/.rvm/gems/ruby-2.5.1/gems/selenium-webdriver-3.14.0/lib/selenium/webdriver/common/service.rb:71:in `block in start'", "/Users/tansaku/.rvm/gems/ruby-2.5.1/gems/selenium-webdriver-3.14.0/lib/selenium/webdriver/common/socket_lock.rb:39:in `locked'", "/Users/tansaku/.rvm/gems/ruby-2.5.1/gems/selenium-webdriver-3.14.0/lib/selenium/webdriver/common/service.rb:69:in `start'", "/Users/tansaku/.rvm/gems/ruby-2.5.1/gems/selenium-webdriver-3.14.0/lib/selenium/webdriver/chrome/driver.rb:43:in `initialize'", "/Users/tansaku/.rv
@tansaku
tansaku / gist:6db6c80ae00bab4d1e937af23f021a05
Created August 24, 2018 03:34
failures of language job on AV production
heroku run rake fetch_github_languages -r production
Running rake fetch_github_languages on ⬢ websiteone-production... up, run.3569 (Standard-1X)
/app/vendor/bundle/ruby/2.5.0/gems/business_time-0.7.6/lib/business_time/core_ext/fixnum.rb:6: warning: constant ::Fixnum is deprecated
/app/vendor/bundle/ruby/2.5.0/gems/faraday-0.9.2/lib/faraday/request/retry.rb:30: warning: constant ::Fixnum is deprecated
Updating the languages for https://github.com/edx may have caused the issue!
undefined method `[]' for nil:NilClass
/app/app/models/project.rb:84:in `github_repo_name'
/app/app/jobs/github_languages_job.rb:17:in `block in run'
/app/vendor/bundle/ruby/2.5.0/gems/activerecord-5.1.6/lib/active_record/relation/delegation.rb:39:in `each'
/app/vendor/bundle/ruby/2.5.0/gems/activerecord-5.1.6/lib/active_record/relation/delegation.rb:39:in `each'
@tansaku
tansaku / gist:4a78573b586d95ed99b135f3aa0301de
Created August 24, 2018 02:40
failures from running project language fetch on staging
heroku run rake fetch_github_languages -r staging
Running rake fetch_github_languages on ⬢ websiteone-staging... up, run.9584 (Hobby)
/app/vendor/bundle/ruby/2.5.0/gems/business_time-0.7.6/lib/business_time/core_ext/fixnum.rb:6: warning: constant ::Fixnum is deprecated
/app/vendor/bundle/ruby/2.5.0/gems/faraday-0.9.2/lib/faraday/request/retry.rb:30: warning: constant ::Fixnum is deprecated
Updating the languages for https://github.com/edx may have caused the issue!
undefined method `[]' for nil:NilClass
/app/app/models/project.rb:84:in `github_repo_name'
/app/app/jobs/github_languages_job.rb:17:in `block in run'
/app/vendor/bundle/ruby/2.5.0/gems/activerecord-5.1.6/lib/active_record/relation/delegation.rb:39:in `each'
/app/vendor/bundle/ruby/2.5.0/gems/activerecord-5.1.6/lib/active_record/relation/delegation.rb:39:in `each'
@tansaku
tansaku / gist:1fdfbed11b1b63a9eee8346df7c547e9
Created August 24, 2018 02:19
failing localsupport test
be cucumber features/admin/events/event_location.feature:38
Deprecated: Found tags option '~@wip'. Support for '~@tag' will be removed from the next release of Cucumber. Please use 'not @tag' instead.
Using the default profile...
@vcr @billy
Feature: Event Location
As a super Admin
So that others can see events location
I would like to add an event address field to the system
Background: Data has been added to the database # features/admin/events/event_location.feature:7