Skip to content

Instantly share code, notes, and snippets.

View allenhurff's full-sized avatar

Allen Hurff allenhurff

View GitHub Profile
@allenhurff
allenhurff / gist:5087147
Created March 5, 2013 00:58
Sublime Text 3 - Useful Shortcuts Source Gist: https://gist.github.com/nuxlli/1207014
# Sublime Text 3 - Useful Shortcuts
*Tested in Mac OS X: super == command*
Open/Goto
_________
- super+t: go to file
- super+ctrl+p: go to project
- super+r: go to methods
- super+shift+p: command prompt

Retinafy Your Site / Device

By Nijiko Yonskai

=====

I made a book, its one page.

Table Of Contents

@allenhurff
allenhurff / friendbuy_shopify_widget.json
Last active December 14, 2015 17:28
FriendBuy Shopify App Widget - Result Set
{
"site": "site-00000000-host",
"order": {
"id": "1014",
"amount": "200.54"
},
"products": [
{
"sku": "OMW-1001",
"price": "27.99",
@allenhurff
allenhurff / friendbuy_shopify_widget.html
Created March 9, 2013 01:48
FriendBuy Shopify App Widget - HTML & Javascript including the line items (sku, price, quantity).
<div id="friendbuy_widget"></div>
<script type="text/javascript">
var _frnd = {
site: "site-00000000-host",
order: {
id: "{{ order_number }}",
amount: "{{ total_price | money_without_currency }}"
},
products: [
{% for line in line_items %}
#!/usr/bin/env ruby
require 'net/http'
require 'json'
# this job will track some metrics of a facebook page
# Config
# ------
# the fb id or username of the page you’re planning to track
facebook_graph_username = ENV['FACEBOOK_GRAPH_USERNAME'] || 'foobugs'
@allenhurff
allenhurff / 0_reuse_code.js
Created October 9, 2013 13:38
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@allenhurff
allenhurff / ghost.conf
Created September 3, 2014 09:47
Ghost Upstart Script (lives in /etc/init.d/)
# ghost
# description "An Upstart task to make sure that my Ghost server is always running"
# author "@allenhurff"
start on startup
script
cd /var/www/ghost/
npm start --production
@allenhurff
allenhurff / .gitignore
Created August 14, 2015 06:12
.gitignore with common exclusions for my environment
# Created by https://www.gitignore.io/api/ebstorm,cloud9,osx,sublimetext,textmate,vagrant,bower,node,yeoman,phpstorm,laravel,tower,xcode,composer,sass,grunt,archives
### Cloud9 ###
# Cloud9 IDE - http://c9.io
.c9revisions
.c9
### OSX ###
.DS_Store
@allenhurff
allenhurff / gist:e1a651a7a37ae491ccbc
Created November 30, 2015 06:17
crateful.la wp-config docker-compose
<?php
/**
* The base configuration for WordPress
*
* The wp-config.php creation script uses this file during the
* installation. You don't have to use the web site, you can
* copy this file to "wp-config.php" and fill in the values.
*
* This file contains the following configurations:
*
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
width: 960px;
height: 500px;
position: relative;
}