Skip to content

Instantly share code, notes, and snippets.

View jeremyfelt's full-sized avatar
🍕
Look at that pizza emoji!

Jeremy Felt jeremyfelt

🍕
Look at that pizza emoji!
View GitHub Profile
# Allow cross domain requests for font files.
location ~* \.(eot|ttf|woff)$ {
add_header Access-Control-Allow-Origin *;
expires 2d;
}
@jeremyfelt
jeremyfelt / cli.ini
Created November 13, 2015 03:07
Let's Encrypt Configuration
# This is an example of the kind of things you can do in a configuration file.
# All flags used by the client can be configured here. Run Let's Encrypt with
# "--help" to learn more about the available options.
# Use a 4096 bit RSA key instead of 2048
rsa-key-size = 4096
# Always use the staging/testing server
# server = https://acme-staging.api.letsencrypt.org/directory
server = https://acme-v01.api.letsencrypt.org/directory
@jeremyfelt
jeremyfelt / fancy-filename.txt
Created November 13, 2015 02:57
Let's Encrypt Installer Dependencies
Installing:
augeas-libs x86_64 1.0.0-10.el6 base 314 k
dialog x86_64 1.1-9.20080819.1.el6 base 197 k
libffi-devel x86_64 3.0.5-3.2.el6 base 18 k
openssl-devel x86_64 1.0.1e-42.el6 base 1.2 M
python-devel x86_64 2.6.6-64.el6 base 172 k
python-libs i686 2.6.6-64.el6 base 5.3 M
replacing python-ordereddict.noarch 1.1-2.el6
python-libs x86_64 2.6.6-64.el6 base 5.3 M
replacing python-ordereddict.noarch 1.1-2.el
# Handle all static assets by serving the file directly. Add directives
# to send expires headers and turn off 404 error logging.
location ~* \.(js|css|png|jpg|jpeg|gif|ico|xls|doc|zip|exe|mp3|mp4|pdf|ai|psd|eps|ppt|dmg|csv|key|numbers|pages)$ {
expires 7d;
log_not_found off;
}

Home Headlines

The basic shortcode to pull information from another post or page into an area of an issue is [home_headline id=1234] where "1234" is the ID of that page or post.

By default, the shortcode will attempt to pull saved information for headline, subtitle, call to action, URL, and background image. Each of these can be overridden with other attributes of the shortcode.

[home_headline id=12345 headline="My custom headline" subtitle="A custom subtitle" cta="Call to Action" background="https://magazine.wsu.edu/an-image.jpg" link="https://wsu.edu"]
@jeremyfelt
jeremyfelt / theme-functions.php
Last active August 29, 2015 14:26
Templates
<?php
class CLASS_NAME {
/**
* @var CLASS_NAME
*/
private static $instance;
/**
* Maintain and return the one instance and initiate hooks when
@jeremyfelt
jeremyfelt / 20150716-1000.md
Last active August 29, 2015 14:25
Memcached Stats

Stats:

/* This will set all anchor elements on the page,
including the Spine to have an underline.*/
a {
text-decoration: underline;
}
/* This will set all anchor elements in the content
area to have an underline, matching intent. */
main a {
text-decoration: underline;
OCSP response:
======================================
OCSP Response Data:
OCSP Response Status: successful (0x0)
Response Type: Basic OCSP Response
Version: 1 (0x0)
Responder Id: 1E05A3778F6C96E25B874BA6B486AC71000CE738
Produced At: May 14 09:32:38 2015 GMT
Responses:
Certificate ID:
@jeremyfelt
jeremyfelt / gist:b5d391099c9a712c147c
Created May 12, 2015 04:32
Multisite tickets of interest, 4.3