Skip to content

Instantly share code, notes, and snippets.

@mxw39
mxw39 / jira-behing-nginx-ssl
Created October 23, 2015 09:29 — forked from alertor/jira-behing-nginx-ssl
Atlassian JIRA behind nginx + SSL
# force HTTP to HTTPS - /etc/nginx/conf.d/nonssl.conf
server {
listen 80;
server_name jira.example.com;
access_log off;
return 301 https://$server_name$request_uri;
}
# /etc/nginx/conf.d/jira.conf
server {
@mxw39
mxw39 / excerpt-usage.html
Last active August 29, 2015 14:15
Jekyll Better Excerpt without Plugin
---
layout: post
title: "Some Title"
---
This line I do not want to appear in the excerpt.
<!--begin-->
This paragraph is the one that I want to be in the excerpt.
@mxw39
mxw39 / excerpt-installation.html
Last active August 29, 2015 14:15
Jekyll Better Excerpt without Plugin Installation
<p>
{% if post.content contains "<!--begin-->" or post.content contains "<!--end-->" %}
{{ post.content | split: "<!--end-->" | first | split: "<!--begin-->" | last | remove: '<p>' | remove: '</p>' }}
{% endif %}
</p>
@mxw39
mxw39 / solarized-dark.css
Last active May 16, 2018 00:49 — forked from qguv/solarized-dark.css
Solarized-dark and Solarized-light Code Highlight CSS Stylesheet
/* Solarized Dark
For use with Jekyll and Pygments
http://ethanschoonover.com/solarized
SOLARIZED HEX ROLE
--------- -------- ------------------------------------------
base03 #002b36 background
base01 #586e75 comments / secondary content