Skip to content

Instantly share code, notes, and snippets.

Sam Joseph tansaku

Block or report user

Report or block tansaku

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
View gist:d4f62519f8a2117ebffedd45bef1d64d
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 Oct 31, 2018
output from ssh -t dokku@agileventures.eastus.cloudapp.azure.com run metplus-pets-staging VERBOSE=true bundle exec rake db:migrate --trace
View gist:9c45b410f8146f906f8ee901eb7229c6
+ 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
View gist:24699ff58901c974b0c8ce48901170f1
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 Oct 12, 2018
intermittent fail on localsupport builds
View gist:bc7c6034e033f4273f9b10f56e592c31
/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 Sep 19, 2018
Harrow Women's Center Technical issues
View technical-review.txt
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 Sep 6, 2018
first attempt at codio autograding script
View hw-ruby-intro.sh
#!/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 Aug 29, 2018
stack trace from weird headless chrome issue
View gist:30e2c77605d35a0b6f694a084ca42c3e
["/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 Aug 24, 2018
failures of language job on AV production
View gist:6db6c80ae00bab4d1e937af23f021a05
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 Aug 24, 2018
failures from running project language fetch on staging
View gist:4a78573b586d95ed99b135f3aa0301de
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'
View gist:1fdfbed11b1b63a9eee8346df7c547e9
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
You can’t perform that action at this time.