Skip to content

Instantly share code, notes, and snippets.

View jonathonbyrdziak's full-sized avatar
🔥
Scaling Businesses with Marketing Technology

Jonathon Byrdziak jonathonbyrdziak

🔥
Scaling Businesses with Marketing Technology
View GitHub Profile
<?php
/*
In my situation I wanted to be able to declare a modal popup from the controller
and have that popup be pushed into the scripts section of my template.
So I began working on a helper function that would do this for me.
Each of these methods I commented out, definitely work to render a livewire component. The problem I'm struggling with
is that each of these methods also reset the app('view') object
<?php
// Step 1 - We catch the IID forwarded to us.
$IID = $_GET['IID']; // the users Individual ID
$HEM = $_GET['HEM']; // the users hashed email
$site_id = $_GET['site_id']; // our pixel id
$client_os = $_GET['client_os'];
$client_user_agent = $_GET['client_user_agent'];
$client_device = $_GET['client_device'];

Change SSH Port on Amazon EC2 Instance

1. Launch and connect to EC2 instance running Amazon Linux 2.
2. Promote to root and edit /etc/ssh/sshd_config 
## sudo vi /etc/ssh/sshd_config
3. Edit line 17 (usually 17) #PORT 22. You'll need to un-comment the line and change the port to whatever you like. 
## PORT 9222
4. Save changes and exit
## :wq

Jonathon Byrdziak

Senior Software Engineer & Manager

Mobile: (206) 356-4014 jonathon@byrdziak.com 9169 W State St 701 Garden City, Idaho, 83714

Brief Summary

@jonathonbyrdziak
jonathonbyrdziak / ListWalker.js
Last active October 11, 2021 21:11
Quick Edits in Google Sheets
function LISTWALKER(columnsRange) {
var columnArray = [];
var rowArray = [];
for (var i = 0; i <= columnsRange - 1; i++) {
columnArray = columnsRange[i];
for (var j = 0; j <= columnArray - 1; j++) {
rowArray = columnArray[i];
}
@jonathonbyrdziak
jonathonbyrdziak / event-success-page-clickfunnels.js
Created May 29, 2020 15:40
Conversion Event Pixel for Clickfunnels
<script>
var eventTotal = 0;
jQuery('.elOrderProductOptinPrice').each(function(k,v){
v = jQuery(v);
var _str = v.text().replace('$','');
var _num = parseFloat(_str,2);
eventTotal += _num;
});
fbq('track', 'Purchase', {
@jonathonbyrdziak
jonathonbyrdziak / gist:827607410d126bd277c2150e05e340de
Created January 8, 2020 19:24
coeur dalene resort airbnb New modern family home
This home is perfect for your family with kids and pets. One King bed, One Queen bed and two twins make up this fully furnished 3 bedroom 2 full bath home. *AMENITIES* - Deck - Dishwasher Machine - Fridge / Freezer - Electric Range / Oven - Coffee Pot - Kitchen Aid Mixer - Wood Fireplace - Smart TV - Iron / Ironing Table - Two Person Shower off the Master - Unlimited Tankless Hot Water - Heating - Blow Dryer - Alarm Clock - Vacuum /mop /broom /cleaning supplies *GREAT FOR KIDS* - Changing table - Bouncer - Two twin beds - Game console - Board Games - Close to multiple parks - Accessed from a quiet street *PETS ARE ALLOWED* - We have a fully fenced back yard that was newly sodded. - A large dog door for Fido to come and go as he pleases. - Large Kennel stored under the king bed. - Dog bed for two large dogs. - Commercial rigid core flooring to prevent scratches. - Food and water bowls and including a few pet supplies are provided. Owner pays electric, gas, water, sewer, garbage, internet. Pets allowed. NO smok
@jonathonbyrdziak
jonathonbyrdziak / Gemfile
Created July 12, 2019 15:49 — forked from rccursach/Gemfile
redis_pubsub_demo.rb
source "https://rubygems.org"
gem 'eventmachine'
gem 'sinatra'
gem 'yajl-ruby', require: 'yajl'
gem 'thin'
gem 'em-websocket'
#!/usr/bin/php
<?php
/**
* Copyright © 2015 Magento. All rights reserved.
* See https://github.com/magento/magento2/blob/develop/COPYING.txt for license details.
*/
/**
* validate_m2_package.php - a script that checks a given M2 zip package to ensure
* it is structured correctly and has all the required files.
@jonathonbyrdziak
jonathonbyrdziak / phpunit-recurring-order-sample-code.php
Last active October 18, 2017 19:25
Sample code showing my work with phpunit
<?php
/**
* Mage Plugins, LLC
*
* NOTICE OF LICENSE
*
* This source file is subject to the Mage Plugins Commercial License (MPCL 1.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://mageplugins.net/commercial-license/