Skip to content

Instantly share code, notes, and snippets.

Shopify objects that contain attributes that can be dynamically put on the page. For example, the product object contains an attribute called title that can be used to output the title of a product.
The handle is used to access the attributes of a Liquid object. By default, it is the object’s title in lowercase with any spaces and special characters replaced by hyphens (-). Every object in Liquid (product, collection, blog, menu) has a handle.
Collections & Products
Collection ►
all_types ►
Returns a list of all the product types for a collection
@TruongTuyen
TruongTuyen / tg.sh
Created August 9, 2024 10:57 — forked from HirbodBehnam/tg.sh
A dead simple script to upload files on your server through Telegram bot
#!/bin/bash
# This is a simple script that takes some files as arguments and sends them to a special chat
# Just create a new bot at @BotFather and get your chat ID from @myidbot and enter them here
# You can also make a shortcut in '~/.bashrc' like "alias tg='bash /opt/scripts/tg.sh'"
# After that restart bash and use it like 'tg file1.txt file2.jpg'
# EDIT TOKEN and CHAT_ID:
TOKEN="TOKEN"
CHAT_ID="12341234"
# Make sure curl is installed
for arg in "$@"
@TruongTuyen
TruongTuyen / new-wp.sh
Created January 29, 2024 09:48 — forked from AustinGil/new-wp.sh
Bash script to install and set up WordPress on new cPanel account in WHM
#/bin/bash
# Script for automating new account setups with WordPress installed
echo Lets setup a new WordPress dev site!
# Get user input
# Us RegEx to check for valid domain
read -p 'Enter the domain name: ' domain
result=`echo $domain | grep -P '(?=^.{1,254}$)(^(?>(?!\d+\.)[a-zA-Z0-9_\-]{1,63}\.?)+(?:[a-zA-Z]{2,})$)'`
if [[ -z "$result" ]]
@TruongTuyen
TruongTuyen / wp_make_new_site.sh
Created January 29, 2024 09:47 — forked from romanitalian/wp_make_new_site.sh
BASH script to make new WP site: download and WP, configure and restart NGINX; install/make wordpress site by Bash script; wordpress install; wordpress configuration; wordpress initialisation
#!/bin/bash
# -------------------------------------------------
# Make site directory
# Download WP and install WP to site directory
# Set WP configuration
# Configure NGINX for new domain-name
# -------------------------------------------------
# apt-get update
@TruongTuyen
TruongTuyen / disposable-email-provider-domains
Created September 1, 2022 06:34
List of disposable email provider domains
0815.ru
0wnd.net
0wnd.org
10minutemail.co.za
10minutemail.com
123-m.com
1fsdfdsfsdf.tk
1pad.de
20minutemail.com
21cn.com
{
"orderId":"113-1733968-3548227",
"items":[
{
"lineId":"64898874937970",
"name":"Example Product Name",
"asin":"B08BNJQ2CK",
"sku":"BI-B0Z3-YHDE",
"mockup":"https://images-na.ssl-images-amazon.com/images/I/41B3JWWz68L._SCLZZZZZZZ__SX55_.jpg",
"isPersonalized":true,
{
"items": [
{
"itemId": "v1|184399346596|692096840328",
"title": "Cliff Booth Once Upon A Time In Hollywood Hawaiian Shirt",
"shortDescription": "All-over Printed Hawaiian Shirt. It provides the most stylish and comfortable Shirts which can be worn on all occasions. The color could be slightly different between on the screen and in practice. If you don’t want to wear too tight, generally it will be better to choose that bigger size than your original one.",
"price": {
"value": "33.96",
"currency": "USD"
},
<?xml version="1.0" encoding="UTF-8"?>
<GetNotificationsUsageResponse xmlns="urn:ebay:apis:eBLBaseComponents">
    <Timestamp>2020-08-05T02:15:45.528Z</Timestamp>
    <Ack>Success</Ack>
    <Version>1149</Version>
    <Build>E1149_CORE_APINOTIFY_19146596_R1</Build>
    <HardExpirationWarning>2020-08-05 11:05:42</HardExpirationWarning>
    <StartTime>2020-08-03T15:00:00.000Z</StartTime>
    <EndTime>2020-08-05T02:14:27.294Z</EndTime>
<?xml version="1.0" encoding="utf-8"?>
<GetNotificationsUsageRequest xmlns="urn:ebay:apis:eBLBaseComponents">
    <ItemID>383663871142</ItemID>
    <StartTime>2020-08-03 15:00:00</StartTime>
    <EndTime>2020-08-05 15:00:00</EndTime>
    <WarningLevel>High</WarningLevel>
    <RequesterCredentials>
        <eBayAuthToken>v^1.1#i^1#r^0#I^3#p^3#f^0#t^H4sIAAAAAAAAAOVYe2wURRjnem0tgUKCBLBgPBeRR9273dvdu72FO3t9AA3t9ey1PEq1mdudvS7d2z12Z9teA0mtAQwJEE3BoEFrUmJUQqKCEAN/qVFC8RUhokZN/EMCJppIMNEIzl5f16LQBzGXeP/czrff6/f7vpnZGaq7cOaq3et3/17suC+vr5vqznM46FnUzMKC0jnOvJKCGVSWgqOv+5Hu/B7nlTUmSKopoR6aKV0zoaszqWqmkBEGCcvQBB2YiiloIAlNAYlCLFxbI3jdlJAydKSLukq4qiuDBGT9Ik1DAFh/QOQCMpZqwz4b9CDho/3xeICJi5RIQ5HCr03TgtWaiYCGgoSX8lIkxZMU10B5BYoTWK/b5+ObCNdGaJiKrmEVN0WEMtkKGVsjK9U7ZwpMExoIOyFC1eG1sbpwdWVVpGGNJ8tXaIiGGALIMseOKnQJujYC1YJ3DmNmtIWYJYrQNAlPaDDCWKdCeDiZKaSfYVpiWRjguLhf5GQ/JXvvCZVrdSMJ0J3zsCWKRMoZVQFqSEHpuzGK2YhvgyIaGkWwi+pKl/33hAVURVagESSqysNbGmNV9YQrFo0aersiQclG6qU4jmZ4mgkQIdNKQWO7pahoKMqgqyGOx4Wp0DVJsRkzXREdlUOcMhxLDC1wWcR