Skip to content

Instantly share code, notes, and snippets.

View mattwr18's full-sized avatar

Matthew Rider mattwr18

View GitHub Profile
require 'pry'
def fear_not_letter(str)
arr = str.upcase.each_char.map { |i| i.ord }.sort
miss_arr = []
x = 0
next_num = arr[0].next
arr.each do |curr_num|
@mattwr18
mattwr18 / out.text
Created September 7, 2018 15:00
Error grade scriptt
Autograde script execution error
Execution error: .guides/scripts/hw-ruby-intro.sh: line 3: /usr/share/rvm/scripts/rvm: No such file or directory .guides/scripts/hw-ruby-intro.sh: line 7: rvm: command not found ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /var/lib/gems/2.2.0 directory. Warning: the running version of Bundler is older than the version that created the lockfile. We suggest you upgrade to the latest version of Bundler by running `gem install bundler`. Your Ruby version is 2.2.9, but your Gemfile specified 2.4.0 <h1>you suck</h1> URL: https://apollo.codio.com/autograde?token=446f607d-b109-49c2-b246-71c4ddae07aa ENV: {"class":{"id":"5b51f69e679b494162dd0bca","project":"04752543-470a-4efd-ac33-0b3a00b5972b","unit":{"id":"Q8glWnKM29MK","start":null,"end":null}},"completedDate":"2018-09-07T14:57:59.597Z","assessments":{"stats":{"correct":0,"total":0,"points":0,"totalPoints":0,"answered":0},"info":[]}} % Total % Received % Xferd Average Speed Time
node bin/server.js
{"name":"parsoid","hostname":"907b756da5de","pid":88,"level":30,"levelPath":"info/service-runner","msg":"master(88) initializing 4 workers","time":"2018-10-24T16:41:52.663Z","v":0}
{"name":"parsoid","hostname":"907b756da5de","pid":98,"level":60,"err":{"message":"Cannot find module '/node_modules/parsoid/src/lib/index.js'","name":"Error","stack":"Error: Cannot find module '/node_modules/parsoid/src/lib/index.js'\n at Function.Module._resolveFilename (module.js:548:15)\n at Function.Module._load (module.js:475:25)\n at Module.require (module.js:597:17)\n at require (internal/module.js:11:18)\n at Worker._requireModule (/node_modules/parsoid/node_modules/service-runner/lib/base_service.js:349:30)\n at Worker._requireModule (/node_modules/parsoid/node_modules/service-runner/lib/base_service.js:369:29)\n at Worker._requireModule (/node_modules/parsoid/node_modules/service-runner/lib/base_service.js:369:29)\n at P.map (/node_modules/parsoid/node_modules/service-runner/lib/
@mattwr18
mattwr18 / nasty-frontend-error
Created October 24, 2018 19:37
Nasty frontend error
WARNING: Async Request leaks detected. Add a breakpoint here and set `store.generateStackTracesForTrackedRequests = true;`to inspect traces for leak origins:
- DS: Handle Adapter#queryRecord of summarized-statistic
[object Object]
at logWarning (/tmp/broccoli-26145wbFk7VZepiLZ/out-519-broccoli_persistent_filter_replace_filter/assets/@ember/debug/lib/warn.js:47:1)
at HANDLERS.(anonymous function) (/tmp/broccoli-26145wbFk7VZepiLZ/out-519-broccoli_persistent_filter_replace_filter/assets/@ember/debug/lib/handlers.js:11:1)
at invoke (/tmp/broccoli-26145wbFk7VZepiLZ/out-519-broccoli_persistent_filter_replace_filter/assets/@ember/debug/lib/handlers.js:20:1)
at Object.warn (/tmp/broccoli-26145wbFk7VZepiLZ/out-519-broccoli_persistent_filter_replace_filter/assets/@ember/debug/lib/warn.js:93:1)
at Class.willDestroy (/tmp/broccoli-26145wbFk7VZepiLZ/out-519-broccoli_persistent_filter_replace_filter/assets/addon-tree-output/ember-data/-private.js:12682:1)
at Class.superWrapper [as willDestroy] (/t
@mattwr18
mattwr18 / semantic-mediawiki-composer-install-output.txt
Last active October 28, 2018 19:44
output-from-composer-install-dependencies
docker run -it 25418949d3b1 /bin/bash 13:16:11
"DATABASE_URL is not set.. have you linked the database?" && exit -1
Trying custom entrypoint script...
Executing main entrypoint script...
MEDIAWIKI_DB_TYPE:
MEDIAWIKI_DB_HOST:
MEDIAWIKI_DB_PORT:
MEDIAWIKI_DB_USER:
MEDIAWIKI_DB_PORT:
MEDIAWIKI_DB_NAME:
@mattwr18
mattwr18 / bundle-errors-after-upgrade.txt
Created October 31, 2018 12:50
bundle-errors-after-upgrade
```
Bundler could not find compatible versions for gem "actionmailer":
In Gemfile:
devise_invitable (~> 1.5.2) was resolved to 1.5.5, which depends on
actionmailer (< 5, >= 3.2.6)
mailgun_rails was resolved to 0.9.0, which depends on
actionmailer (>= 3.2.13)
rails (= 5.0) was resolved to 5.0.0, which depends on
```
Failing Scenarios:
cucumber features/accept_job_application.feature:46 # Scenario: company contact accept a job application
cucumber features/accept_job_application.feature:62 # Scenario: company admin accept a job application
cucumber features/accept_job_application.feature:79 # Scenario: job developer accept notification when job application accepted
cucumber features/agency_admin.feature:211 # Scenario: assign job seeker to agency person
cucumber features/agency_admin.feature:250 # Scenario: manage job properties
cucumber features/agency_person.feature:45 # Scenario: Case Manager actions
cucumber features/agency_person.feature:115 # Scenario: Job Developer actions
cucumber features/agency_person.feature:149 # Scenario: Agency Admin actions
@mattwr18
mattwr18 / output-from-bundle-error-rack-cors
Last active December 3, 2018 12:49
output-from-bundle-error-rack-cors
root@24b296fd52ed:/WebsiteOne# cat /usr/local/bundle/extensions/x86_64-linux/2.5.0/nokogiri-1.8.5/gem_make.out
current directory: /usr/local/bundle/gems/nokogiri-1.8.5/ext/nokogiri
/usr/local/bin/ruby -r ./siteconf20181129-6-tdjarj.rb extconf.rb
checking if the C compiler accepts ... yes
Building nokogiri using packaged libraries.
Using mini_portile version 2.3.0
checking for gzdopen() in -lz... yes
checking for iconv... yes
************************************************************************
IMPORTANT NOTICE:
JSON::ParserError (765: unexpected token at '<!DOCTYPE html>)
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Action Controller: Exception caught</title>
<style>
body {
background-color: #FAFAFA;
color: #333;
margin: 0px;
```
staging
Agent pid 20895
Identity added: ./deploy_key (./deploy_key)
# agileventures-playground.westeurope.cloudapp.azure.com SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.6
# agileventures-playground.westeurope.cloudapp.azure.com SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.6
Warning: Permanently added the ECDSA host key for IP address '104.40.243.49' to the list of known hosts.
remote: remote: herokuish...
remote: Unable to find image 'gliderlabs/herokuish:latest' locally
remote: latest: Pulling from gliderlabs/herokuish