Skip to content

Instantly share code, notes, and snippets.

View hsleewis's full-sized avatar
🔥

Harold hsleewis

🔥
View GitHub Profile

Screen Quick Reference

Basic

Description Command
Start a new session with session name screen -S <session_name>
List running sessions / screens screen -ls
Attach to a running session screen -x
Attach to a running session with name screen -r
@hsleewis
hsleewis / global.js
Last active July 27, 2022 08:27 — forked from PaulvdDool/global.js
Line item properties in Dawn theme for Bundles app
// in class VariantSelects
// in onVariantChange() method add the call the following method
this.updateBundleVariant();
// right after onVariantChange() define the method
updateBundleVariant() {
// remove old line item properties from DOM
[ ...document.querySelectorAll( '.bundles_lineItemProperty' ) ].forEach( lineItemProperty => {
lineItemProperty.parentNode.removeChild( lineItemProperty );
} );

Setting up a SSL Cert from Comodo

These are the steps I went through to set up an SSL cert.

Purchase the cert

Prior to purchasing a cert, you need to generate a private key, and a CSR file (Certificate Signing Request). You'll be asked for the content of the CSR file

@hsleewis
hsleewis / gist:3374699
Created August 17, 2012 00:07 — forked from carolineschnapp/gist:1083007
Linked options helper methods for Shopify. See this: http://wiki.shopify.com/Linked_Options
<script>
// (c) Copyright 2011 Caroline Schnapp. All Rights Reserved. Contact: mllegeorgesand@gmail.com
// See http://wiki.shopify.com/Linked_Options
var Shopify = Shopify || {};
Shopify.optionsMap = {};
Shopify.updateOptionsInSelector = function(selectorIndex) {