Skip to content

Instantly share code, notes, and snippets.

View jeremiahlukus's full-sized avatar

Jeremiah Parrack jeremiahlukus

View GitHub Profile
22:50:25 22:50:25 41) Admin Tools - Auction Location Management auction location management workflow allows to update country
22:50:25 22:50:25 Failure/Error: expect(page).to have_select(:auction_location_country, selected: 'Canada')
22:50:25 22:50:25
22:50:25 22:50:25 ArgumentError:
22:50:25 22:50:25 wrong number of arguments (given 2, expected 0..1)
22:50:25 22:50:25 # /home/jenkins/.tappy-test-bundle-cache/ruby/3.3.0/gems/capybara-3.40.0/lib/capybara/node/matchers.rb:520:in `has_select?'
22:50:25 22:50:25 # /home/jenkins/.tappy-test-bundle-cache/ruby/3.3.0/gems/capybara-3.40.0/lib/capybara/session.rb:774:in `has_select?'
22:50:25 22:50:25 # ./spec/requests/admin_auction_location_spec.rb:90:in `block (4 levels) in <main>'
FROM ruby:3.2
RUN gem install "bundler:~>2" --no-document && \
gem update --system && \
gem cleanup
# NodeJS (https://github.com/nodejs/docker-node/blob/main/14/bullseye/Dockerfile)
ARG NODE_VERSION=18.14.0
RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" \
# Puma can serve each request in a thread from an internal thread pool.
# The `threads` method setting takes two numbers: a minimum and maximum.
# Any libraries that use thread pools should be configured to match
# the maximum value specified for Puma. Default is set to 5 threads for minimum
# and maximum; this matches the default thread size of Active Record.
#
max_threads_count = ENV.fetch("RAILS_MAX_THREADS", 5)
min_threads_count = ENV.fetch("RAILS_MIN_THREADS", max_threads_count)
threads min_threads_count, max_threads_count
@jeremiahlukus
jeremiahlukus / proxy.conf
Created July 28, 2021 14:38
.platform/nginx/conf.d/proxy.conf
client_max_body_size 500M;
server_names_hash_bucket_size 128;
upstream backend {
server unix:///var/run/puma/my_app.sock ;
}
server {
listen 80;
1) Admin manages users Admin views existing users
Got 1 failure and 1 other error:
1.1) Got 2 failures from failure aggregation block "javascript errrors".
# ./spec/rails_helper.rb:101:in `block (2 levels) in <top (required)>'
1.1.1) Failure/Error: expect(error.level).not_to eq('SEVERE'), error.message
http://127.0.0.1:50697/img/logo-xx.png - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
# ./spec/rails_helper.rb:103:in `block (4 levels) in <top (required)>'
# ./spec/rails_helper.rb:102:in `each'
jest config
module.exports = {
moduleFileExtensions: ['ts', 'js'],
resetMocks: true,
restoreMocks: true,
testEnvironment: 'node',
testRegex: '\\.test\\.(ts|tsx)$',
transform: {
'^.+\\.ts?$': 'babel-jest'
public class BofaRunnerNV {
public static void main(String[] args) {
bankAccountNV b1 = new bankAccountNV("Alexander Hamilton", 4287);
bankAccountNV b2 = new bankAccountNV("Elizabeth Skylar", 7849);
bankAccountNV b3 = new bankAccountNV("Aaron Burr", 6427);
bankAccountNV b4 = new bankAccountNV("Angelica Skylar", 2178);
bankAccountNV b5 = new bankAccountNV("Thomas Jefferson", 9872);
System.out.println(b1);
bankAccountNV [] arr = {b1, b2, b3, b4, b5};
BofaNV bf = new BofaNV(arr);
public class BofaRunnerNV {
public static void main(String[] args) {
bankAccountNV b1 = new bankAccountNV("Alexander Hamilton", 4287);
bankAccountNV b2 = new bankAccountNV("Elizabeth Skylar", 7849);
bankAccountNV b3 = new bankAccountNV("Aaron Burr", 6427);
bankAccountNV b4 = new bankAccountNV("Angelica Skylar", 2178);
bankAccountNV b5 = new bankAccountNV("Thomas Jefferson", 9872);
System.out.println(b1);
bankAccountNV [] arr = {b1, b2, b3, b4, b5};
BofaNV bf = new BofaNV(arr);
" Ex: acp "My commit message"
function acp (){
git add -A && git commit -m "$1" && git push
}
"Ex: gco -b my_new_branch
" gco master
alias gco="git checkout"
#!/usr/bin/env bash
SCM_THEME_PROMPT_DIRTY=" ${red}✗"
SCM_THEME_PROMPT_CLEAN=" ${bold_green}✓"
SCM_THEME_PROMPT_PREFIX=" ${green}|"
SCM_THEME_PROMPT_SUFFIX="${green}|"
GIT_THEME_PROMPT_DIRTY=" ${red}✗"
GIT_THEME_PROMPT_CLEAN=" ${bold_green}✓"
GIT_THEME_PROMPT_PREFIX=" ${green}|"