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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 ); | |
} ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
THIS DOES NOT WORK FOR ALL THEMES | |
==== | |
STEP 1: add this right above the </body> tag of your product template: | |
==== | |
<div id="bundles_child_products" style="display:none;"> | |
{% for variant in product.variants %} | |
{% if variant.metafields.bundles_app.content.size > 0 %} | |
<span id="bundle_{{variant.id}}" data-json='{{ variant.metafields.bundles_app.content | json}}'> | |
{% endif %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name ^(?<realservername>pre.+\.domain\.tld)$; | |
return 301 https://$realservername$request_uri; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying that +hsl is my openname (Bitcoin username). https://onename.io/hsl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var run = require('gulp-run'); | |
var upload_to_shopify = function( file ){ | |
var splitPath = file.path.split('theme/').pop(); | |
run('theme upload ' + splitPath, { cwd: 'theme' }).exec(); | |
}; | |
gulp.task( 'watch', function( evnt ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd $HOME | |
git clone --bare url-to-base-repo repo | |
cd repo | |
git push --mirror url-to-new-repo | |
cd .. | |
rm -rf repo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// example1: ACTIVE AND HOVER STATE | |
a.error { | |
border: 1px solid #c6c6c6; | |
color: white; | |
&:hover { | |
background: #FA4549; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% unless shop.enabled_payment_types == empty %} | |
<h4 class="text-center">Accepted Payments</h4> | |
<ul class="inline-list payment-icons text-center"> | |
{% for type in shop.enabled_payment_types %} | |
<li> | |
<span class="icon-fallback-text"> | |
<span class="icon icon-{{type}}" aria-hidden="true"></span> | |
<span class="fallback-text">{{type | replace: '_',' '}}</span> | |
</span> | |
</li> |
NewerOlder