Skip to content

Instantly share code, notes, and snippets.

Austin Klenk austinklenk

Block or report user

Report or block austinklenk

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 dymo.js
// Vertical Print RGA LABEL
///////////////////////////
(function()
{
// called when the document completly loaded
function onload()
{
var textVendorName = document.getElementById('textVendorName');
var textPoNumber = document.getElementById('textPoNumber');
var textRmaNumber = document.getElementById('textRmaNumber');
View key_label.js
(function()
{
// called when the document completly loaded
function onload()
{
var firstName = document.getElementById('keyTextFirst');
var lastName = document.getElementById('keyTextLast');
var make = document.getElementById('keyTextMake');
var model = document.getElementById('keyTextModel');
var printButton = document.getElementById('KeyPrintButton');
View print_label.js
(function()
{
// called when the document completly loaded
function onload()
{
var textTextArea = document.getElementById('textTextArea');
var printButton = document.getElementById('printButton');
// prints the label
printButton.onclick = function()
View redis-sentinel.log
-----> Connecting to green-silence-7642 (173.15.54.177) as root
Uploaded .hatch/action-78693.sh
Executing 'set -euxo pipefail; bash .hatch/action-78693.sh 2>&1 | tee -a .hatch/action-78693.log'
-----> Disabling password authentication for SSH
-----> Installing initial dependencies
Setting up redis-sentinel (5:4.0.11-1chl1~bionic1) ...
View controller.rb
def index
@albums = Album.all.with_attached_images
end
def show
authorize! :show, @album
@album = Album.friendly.find(params[:id])
end
def new
View byebug
<ActionController::Parameters {"utf8"=>"✓", "authenticity_token"=>"ITpx6Dma1Vy42mOOKRpAX/0k24VASMKobMo/GgFRqJob1BYZCtJ+faK6i+x9W3TL8ehFA/dpidV+vzmiod4w/Q==", "service_customer"=>{"title"=>"Mr", "first_name"=>"AUSTIN", "middle_name"=>"Charles", "last_name"=>"kle", "company_name"=>"m", "primary_email"=>"austin.klenk@rocketmail.com", "secondary_email"=>"hr@mastertechrv.com", "primary_phone"=>"5743200158", "secondary_phone"=>"5743200158", "fax_phone"=>""}, "commit"=>"Save / Update", "controller"=>"service/customers", "action"=>"create"} permitted: false>
View _form.html.erb
<%= bootstrap_form_for(@customer) do |f| %>
<%= f.alert_message "Please fix the errors below." %>
<%= f.text_field :title %>
<%= f.text_field :first_name %>
<%= f.text_field :middle_name %>
<%= f.text_field :last_name %>
<%= f.text_field :company_name %>
<%= f.text_field :primary_email %>
<%= f.text_field :secondary_email %>
<%= f.text_field :primary_phone, label: "Cell Phone" %>
View customers_controller.rb
module Service
class CustomersController < BaseController
before_action :set_customer, only: [:show, :edit, :update, :destroy]
# Listing out all customers from table
def index
@customers = Service::Customer.all
end
# Viewing customer
View Stacktrace
D, [2017-11-18T11:45:01.354343 #4097] DEBUG -- : [aef12839-9b47-49de-a0b8-08642b9cf820] FriendlyId::Slug Load (0.8ms) SELECT "friendly_id_slugs".* FROM "friendly_id_slugs" WHERE "friendly_id_slugs"."deleted_at" IS NULL AND "friendly_id_slugs"."sluggable_id" = $1 AND "friendly_id_slugs"."sluggable_type" = $2 ORDER BY "friendly_id_slugs".id DESC LIMIT $3 [["sluggable_id", 2], ["sluggable_type", "Spree::Taxon"], ["LIMIT", 1]]
D, [2017-11-18T11:45:01.356923 #4097] DEBUG -- : [aef12839-9b47-49de-a0b8-08642b9cf820] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]]
D, [2017-11-18T11:45:01.360068 #4097] DEBUG -- : [aef12839-9b47-49de-a0b8-08642b9cf820] SQL (1.4ms) UPDATE "spree_taxons" SET "depth" = 0 WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2 ORDER BY "spree_taxons"."lft")
D, [2017-11-18T11:45:01.362942 #4097] DEBUG -- : [aef12839-9b47-49de-a0b8-08642b9cf8
View Gemfile.lock
GEM
remote: https://rubygems.org/
specs:
actioncable (5.1.4)
actionpack (= 5.1.4)
nio4r (~> 2.0)
websocket-driver (~> 0.6.1)
actionmailer (5.1.4)
actionpack (= 5.1.4)
actionview (= 5.1.4)
You can’t perform that action at this time.