Skip to content

Instantly share code, notes, and snippets.

View austinklenk's full-sized avatar

Austin Klenk austinklenk

  • Master Tech RV
  • Elkhart, Indiana
View GitHub Profile
@austinklenk
austinklenk / gist:cfc78cc57a5c89e81f2c31fb1f818c5e
Created March 7, 2020 14:50 — forked from pitch-gist/gist:2999707
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>
// 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');
(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');
(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()
-----> 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) ...
def index
@albums = Album.all.with_attached_images
end
def show
authorize! :show, @album
@album = Album.friendly.find(params[:id])
end
def new
<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>
<%= 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" %>
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
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