Skip to content

Instantly share code, notes, and snippets.

View tansaku's full-sized avatar

Sam Joseph tansaku

View GitHub Profile
@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
jscodeshift -t react-codemod/transforms/pure-render-mixin.js app/assets/javascripts/views/components/**/*
Processing 51 files... 
Spawning 7 workers...
Sending 8 files to free worker...
Sending 8 files to free worker...
Sending 8 files to free worker...
Sending 8 files to free worker...
Sending 8 files to free worker...
Sending 8 files to free worker...
@tansaku
tansaku / log.0.txt
Created June 28, 2018 10:41
AV Jibri Logs
sam@AVJitsyServer:~$ sudo tail /var/log/jitsi/jibri/log.0.txt
2018-06-28 10:25:05.967 INFO: [1] org.jitsi.jibri.Main.main() Using config file /etc/jitsi/jibri/config.json
2018-06-28 10:25:10.129 INFO: [1] org.jitsi.jibri.Main.loadConfig() Parsed config:
JibriConfig(recordingDirectory=/tmp/recordings, enabledStatsD=true, finalizeRecordingScriptPath=/path/to/finalize_recording.sh, xmppEnvironments=[XmppEnvironmentConfig(name=prod environment, xmppServerHosts=[prod.www.jitsi.agileventures.org], xmppDomain=www.jitsi.agileventures.org, controlLogin=XmppCredentials(domain=auth.www.jitsi.agileventures.org, username=username, password=password), controlMuc=XmppMuc(domain=internal.auth.www.jitsi.agileventures.org, roomName=JibriBrewery, nickname=jibri-nickname), sipControlMuc=null, callLogin=XmppCredentials(domain=recorder.www.jitsi.agileventures.org, username=username, password=password), stripFromRoomDomain=conference., usageTimeoutMins=0, trustAllXmppCerts=true)])
2018-06-28 10:25:11.968 WARNING: [1] org.glassfish.
@tansaku
tansaku / config.json
Created June 28, 2018 10:41
AV Jibri Config
{
// NOTE: this is a *SAMPLE* config file, it will need to be configured with
// values from your environment
// Where recording files should be temporarily stored
"recording_directory":"/tmp/recordings",
// The path to the script which will be run on completed recordings
"finalize_recording_script_path": "/path/to/finalize_recording.sh",
"xmpp_environments": [
{
@tansaku
tansaku / history.txt
Created June 6, 2018 16:19
from our dokku mediawiki experiments
Last login: Fri Jun 1 17:43:46 2018
ubuntu@DokkuVM:~$ history
1 sudo find . deploy_dokku.sh
2 sudo find . -name "deploy_dokku.sh"
3 sudo find -r . -name "deploy_dokku.sh"
4 sudo find / -name "deploy_dokku.sh"
5 sudo nano /etc/hosts
6 /var/lib/waagent/custom-script/download/0/deploy_dokku.sh 0.10.3
7 sudo chmod u+x /var/lib/waagent/custom-script/download/0/deploy_dokku.sh
8 sudo /var/lib/waagent/custom-script/download/0/deploy_dokku.sh 0.10.3
/* eslint-disable no-unused-vars, no-var */
var config = {
// Configuration
//
// Alternative location for the configuration.
// configLocation: './config.json',
// Custom function which given the URL path should return a room name.
@tansaku
tansaku / single-fail.txt
Created January 25, 2018 11:29
single cuke fail from metplus
[tansaku@Samuels-MBP:~/Documents/Github/AgileVentures/MetPlus_PETS (694_google_analytics)]$
→ be cucumber features/event_management.feature:35
Using the default profile...
Feature: manage notifications upon specific system events
As a user of PETS
I want to be notified of specific events appropriate to my role
And receive realtime as well as email notifications
Background: seed data # features/event_management.feature:7