Skip to content

Instantly share code, notes, and snippets.

{% layout none %}
{% capture results %}
{% for item in search.results %}
{% assign product = item %}
{
"title" : {{ product.title | json }},
"url" : {{ product.url | within: product.collections.last | json }},
"thumbnail": {{ product.featured_image.src | product_img_url: 'thumb' | json }}
}
{% unless forloop.last %},{% endunless %}
{% comment %} Width of results box {% endcomment %}
{% assign results_box_width = '242px' %}
{% comment %} Background color of results box {% endcomment %}
{% assign results_box_background_color = '#ffffff' %}
{% comment %} Border color of results box {% endcomment %}
{% assign results_box_border_color = '#d4d4d4' %}
<script>
$(function() {
// Current Ajax request.
@infernalsirius
infernalsirius / boxstarter.txt
Last active July 8, 2016 21:36
Boxstarter provision script for windows server
#The Boxstarter Killer Feature: Handling Reboots!!!
# Enable Big-Kid Mode
#Disables UAC. Note that Windows 8 and 8.1 can not launch Windows Store applications with UAC disabled.
Disable-UAC
Update-ExecutionPolicy -Policy Unrestricted
# Disable Password Expiration
Write-BoxstarterMessage "Disabing password expiration..."
wmic useraccount where "name='$([Environment]::UserName)'" set PasswordExpires=FALSE