Skip to content

Instantly share code, notes, and snippets.

View everycopy's full-sized avatar
🍃
Yahaha! You found me!

James Goode everycopy

🍃
Yahaha! You found me!
View GitHub Profile
# Gulp variables.
gulp = require("gulp")
plugins = require("gulp-load-plugins")()
browser = require("browser-sync")
del = require("del")
# Project directories.
paths =
# Local

Keybase proof

I hereby claim:

  • I am everycopy on github.
  • I am everycopy (https://keybase.io/everycopy) on keybase.
  • I have a public key whose fingerprint is FB6A 65BE 17FB 9A89 D693 2052 8515 AF60 51BE 681A

To claim this, I am signing this object:

@everycopy
everycopy / nginx.conf
Last active August 29, 2015 13:56
Put a directory behind a password using Nginx
printf "openssl passwd -apr1 123456" >> /home/domains/www/sodapopandco.com/staging/.htpasswd
location ^~ /staging/ {
auth_basic "Staging";
auth_basic_user_file staging/.htpasswd;
}
@everycopy
everycopy / Default.tmTheme
Created May 16, 2013 10:18
Template for making TextMate and Sublime Text themes.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>author</key>
<string>James Goode</string>
<key>colorSpaceName</key>
<string>sRGB</string>
<key>name</key>
<string>Default</string>
[mysqld]
# bind-address=127.0.0.1
skip-networking
skip-thread-priority
$ sudo visudo # sudoers can only be opened with this command
$ o # to open a line
# Then add this under “Defaults” section:
# Require the root user to authenticate
Defaults:rootpw
# This writes sudo commands to 'secure.log' rather than 'system.log' which can be viewed by anyone who is an admin
Defaults:ALL !syslog
Defaults:ALL logfile=/var/log/secure.log
0 Reset all attributes
1 Bright
2 Dim
4 Underscore
5 Blink
7 Reverse
8 Hidden
Foreground Colours
------------------
@everycopy
everycopy / gist:1064675
Created July 5, 2011 11:28
Shopify products by type in a collection
{% assign collection = collections.future-empire %}
<h1>Products</h1>
{% for product_type in collection.all_types %}
<section class="group">
<h2>{{ product_type }}</h2>
{% for product in collection.products %}
{% if product.type == product_type | handleize %}
<a href="{{ product.url }}" title="{{ product.title }}">
<figure>
<img src="{{ product.featured_image | product_img_url: 'medium' }}" alt="{{ product.title }}">