Skip to content

Instantly share code, notes, and snippets.

@bxmas13
bxmas13 / newvhost.sh
Last active June 11, 2019 19:09 — forked from mattmezza/vhost.sh
bash script to create virtual host vhost with apache httpd and CentOs 7
#!/bin/bash
# This script is used for create virtual hosts on CentOs.
# Created by alexnogard from http://alexnogard.com
# Improved by mattmezza from http://you.canmakethat.com
# Further Improved by bxmas13 from https://brianchristmas.com
# Feel free to modify it
# PARAMETERS
#
# $usr - User
# $dir - directory of web files
@bxmas13
bxmas13 / gist:4a23f34d219dd542bb8ded480fa5ea25
Created August 22, 2018 22:00
Shopify Slate Windows 10 Install - WSL Ubuntu
Found that the command 'yarn create slate-theme my-new-theme' does not work 100% with Windows Command Prompt or Powershell
Ubuntu Bash in Windows makes Slate setup easy.
Run the following commands:
1. npm i -g @shopify/slate@latest
2. slate t YOUR-ThemeName
3. slate s (*inside YOUR-ThemeName directory*)
@bxmas13
bxmas13 / getparam.js
Last active February 14, 2017 20:47 — forked from varemenos/getparam.js
JQuery - GET URL Parameter value
// Given a query string "?to=email&why=because&first=John&Last=smith"
// getUrlVar("to") will return "email"
// getUrlVar("last") will return "smith"
// Slightly more concise and improved version based on http://www.jquery4u.com/snippets/url-parameters-jquery/
function getUrlVar(key){
var result = new RegExp(key + "=([^&]*)", "i").exec(window.location.search);
return result && decodeURI(result[1]) || "";
}
@bxmas13
bxmas13 / checkout.liquid
Created January 17, 2017 20:09
Shopify Plus Checkout.liquid template. Can be used with Timber
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="{{ locale }}" dir="{{ direction }}" class="{{ checkout_html_classes }}">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, height=device-height, minimum-scale=1.0, user-scalable=0">
<title>{{ shop.name }} - {{ page_title }}</title>
{{ content_for_header }}

Keybase proof

I hereby claim:

  • I am bxmas13 on github.
  • I am brianchristmas (https://keybase.io/brianchristmas) on keybase.
  • I have a public key whose fingerprint is 0BD3 1103 37A1 E1E9 CBC9 7267 6543 9DAF F911 62E7

To claim this, I am signing this object: