Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
sudo apt-get -y update
sudo apt-get -y install nodejs npm git vim
#For GOLANG
#export PATH=$PATH:/usr/local/go/bin
#Enable Scroll_Lock for keyboards that uses the key for turning on the lights
xmodmap -e "add mod3 = Scroll_Lock"
Variable not set
{% if someVar.size %}
@hsiehjack
hsiehjack / shopify-collection-product.liquid
Last active March 8, 2021 13:08
Shopify - Getting minimum and maximum price for variants in product. Found out product already has attribute for min and max. This can be used for custom function.
{% comment %}
{% assign price_min = 0 %}
{% assign price_max = 0 %}
{% for variant in product.variants %}
{% if price_min == 0 or price_max == 0 %}
{% assign price_min = variant.price %}
{% assign price_max = variant.price %}
{% endif %}
{% if price_min > variant.price %}
{% assign price_min = variant.price %}
@hsiehjack
hsiehjack / bluez-5_40-install.sh
Created July 18, 2016 00:40
Install bluez 5.40 for ubuntu
#!/bin/bash
if [ `bluetoothd -v` == 5.40 ]
then
echo "This script installs bluez version 5.40 and you already have it installed"
exit 0
fi
sudo apt-get update
sudo apt-get -y install libglib2.0-dev libdbus-glib-1-dev libudev-dev libical-dev libreadline-dev