Skip to content

Instantly share code, notes, and snippets.

View kingdonb's full-sized avatar
🚀

Kingdon Barrett kingdonb

🚀
View GitHub Profile
@kingdonb
kingdonb / test_output.txt
Created February 15, 2020 19:02
ActiveRecord 5.2.4.1 with the latest composite_primary_keys gem, test output on Oracle 18.4.0 (XE)
Finished in 9.115729s, 20.8431 runs/s, 53.3144 assertions/s.
1) Error:
TestDelete#test_delete_all_with_join:
ActiveRecord::StatementInvalid: OCIError: ORA-00904: "DEPARTMENTS"."[:department_id, :location_id]": invalid identifier: DELETE FROM "DEPARTMENTS" WHERE (departments.department_id, departments.location_id) IN (SELECT departments.department_id, departments.location_id FROM "DEPARTMENTS" INNER JOIN "EMPLOYEES" ON "EMPLOYEES"."[:department_id, :location_id]" = "DEPARTMENTS"."[:department_id, :location_id]" WHERE (departments.department_id = 1) AND (departments.location_id = 1))
stmt.c:267:in oci8lib_260.bundle
/Users/kbarret8/.rvm/gems/ruby-2.2.10/gems/ruby-oci8-2.2.8/lib/oci8/cursor.rb:137:in `exec'
/Users/kbarret8/.rvm/gems/ruby-2.2.10/gems/activerecord-oracle_enhanced-adapter-5.2.8/lib/active_record/connection_adapters/oracle_enhanced/oci_connection.rb:144:in `exec_update'
/Users/kbarret8/.rvm/gems/ruby-2.2.10/gems/activerecord-oracle_enhanced-adapter-5.2.8/lib/active_record/connecti
@kingdonb
kingdonb / test_output.txt
Created February 15, 2020 19:00
ActiveRecord 5.2.3 with the latest composite_primary_keys gem, test output on Oracle 18.4.0 (XE)
Finished in 9.062635s, 20.9652 runs/s, 54.2888 assertions/s.
1) Failure:
TestAssociations#test_limitable_reflections [/Users/kbarret8/Desktop/devel/ruby/composite_primary_keys/test/test_associations.rb:336]:
Expected: [1, 1]
Actual: [3, 2]
2) Failure:
TestAssociations#test_has_one_association_primary_key_and_foreign_key_are_present [/Users/kbarret8/Desktop/devel/ruby/composite_primary_keys/test/test_associations.rb:109]:
Expected: 1
kbarret8@kbarret8-mbp:~/Desktop/devel/ruby/composite_primary_keys (compat-5-2-4)$ rake oracle:test
Warning: NLS_LANG is not set. fallback to US7ASCII.
/Users/kbarret8/.rvm/gems/ruby-2.6.5/gems/activesupport-5.2.4.1/lib/active_support/dependencies.rb:291: warning: /Users/kbarret8/.rvm/gems/ruby-2.6.5/gems/activesupport-5.2.4.1/lib/active_support/dependencies.rb:291: warning: loading in progress, circular require considered harmful - /Users/kbarret8/.rvm/gems/ruby-2.6.5/gems/activerecord-5.2.4.1/lib/active_record/relation/predicate_builder/association_query_value.rb
from /Users/kbarret8/.rvm/gems/ruby-2.6.5/gems/rake-13.0.1/lib/rake/rake_test_loader.rb:5:in `<main>'
from /Users/kbarret8/.rvm/gems/ruby-2.6.5/gems/rake-13.0.1/lib/rake/rake_test_loader.rb:5:in `select'
from /Users/kbarret8/.rvm/gems/ruby-2.6.5/gems/rake-13.0.1/lib/rake/rake_test_loader.rb:17:in `block in <main>'
from /Users/kbarret8/.rvm/rubies/ruby-2.6.5/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /U
(compat-5-2-4)$ rvm use 2.6.5
Using /Users/kbarret8/.rvm/gems/ruby-2.6.5
kbarret8@kbarret8-mbp:~/Desktop/devel/ruby/composite_primary_keys (compat-5-2-4)$ bundle
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32`.
Fetching gem metadata from https://rubygems.org/.......
Fetching rake 13.0.1
Installing rake 13.0.1
Fetching concurrent-ruby 1.1.6
Installing concurrent-ruby 1.1.6
Fetching i18n 1.8.2
@kingdonb
kingdonb / helm-init
Created January 27, 2020 00:01
Ancient relic of Helm v2
#!/usr/bin/env bash
kubectl -n kube-system create sa tiller
kubectl create clusterrolebinding tiller --clusterrole cluster-admin --serviceaccount=kube-system:tiller
helm init --service-account tiller
10:01 -!- yebyen [[email protected]] has joined #honkctl-jan
10:01 -!- Topic for #honkctl-jan: https://gist.githubusercontent.com/jeefy/ee705f2838f237d46d2c8fd756abb395/raw/a866e3b207cd6d07bf2b145399a2ce85a30dd139/honkctl-jan
10:01 -!- Topic set by jeefy [uid114104@gateway/web/irccloud.com/x-zgoztgdtahgzdpfo] [Fri Jan 17 20:05:37 2020]
10:01 [Users #honkctl-jan]
10:01 [@jeefy ] [ bdimcheff] [ fronkchie ] [ yebyen]
10:01 [@mrbobbytables] [ fraq ] [ randohacker]
10:01 -!- Irssi: #honkctl-jan: Total of 7 nicks [2 ops, 0 halfops, 0 voices, 5 normal]
10:01 -!- Channel #honkctl-jan created Thu Jan 16 23:17:40 2020
10:01 -!- Irssi: Join to #honkctl-jan was synced in 0 secs
10:01 -!- xmudrii [[email protected]] has joined #honkctl-jan
apiVersion: v1
kind: Pod
metadata:
name: beer
spec:
containers:
- name: beer
image: tutum/curl
command:
- sh
21:06 -!- yebyen [[email protected]] has joined #honkctl-jan
21:06 -!- Topic for #honkctl-jan: https://gist.githubusercontent.com/jeefy/ee705f2838f237d46d2c8fd756abb395/raw/a866e3b207cd6d07bf2b145399a2ce85a30dd139/honkctl-jan
21:06 -!- Topic set by jeefy [uid114104@gateway/web/irccloud.com/x-zgoztgdtahgzdpfo] [Fri Jan 17 20:05:37 2020]
21:06 [Users #honkctl-jan]
21:06 [@jeefy ] [ brrrr ] [ honkctl ] [ swiggity_swooty] [ yebyen]
21:06 [@mrbobbytables] [ cprivite ] [ nyarison ] [ t168286 ]
21:06 [ bdimcheff[m] ] [ fronkchie] [ randohacker] [ TabSab ]
21:06 -!- Irssi: #honkctl-jan: Total of 13 nicks [2 ops, 0 halfops, 0 voices, 11 normal]
21:06 -!- Channel #honkctl-jan created Thu Jan 16 23:17:40 2020
21:06 -!- Irssi: Join to #honkctl-jan was synced in 0 secs
{
"Policy": {
"PolicyName": "boundary-delegated-iam",
"PolicyId": "ANPAJK7TA6Q6CLUXZOC2E",
"Arn": "arn:aws:iam::209773529123:policy/boundary-delegated-iam",
"Path": "/",
"DefaultVersionId": "v5",
"AttachmentCount": 1,
"PermissionsBoundaryUsageCount": 128,
"IsAttachable": true,
[
{
"uri":"features/add_job_hourly_ultratime.feature",
"id":"add-job-hourly-(ultratime)",
"keyword":"Feature",
"name":"Add Job Hourly (Ultratime)",
"description":"",
"line":1,
"elements":[
{