Skip to content

Instantly share code, notes, and snippets.

View theironsamurai's full-sized avatar

Nick Horton theironsamurai

View GitHub Profile
var gulp = require('gulp'),
gutil = require('gulp-util'),
sass = require('gulp-sass'),
rubysass = require('gulp-ruby-sass'),
fileinclude = require('gulp-file-include'),
rename = require('gulp-rename'),
notify = require('gulp-notify'),
livereload = require('gulp-livereload'),
lr = require('tiny-lr'),
connect = require('gulp-connect'),
.highlight { background-color: #49483e }
.c { color: #75715e } /* Comment */
.err { color: #960050; background-color: #1e0010 } /* Error */
.k { color: #66d9ef } /* Keyword */
.l { color: #ae81ff } /* Literal */
.n { color: #f8f8f2 } /* Name */
.o { color: #f92672 } /* Operator */
.p { color: #f8f8f2 } /* Punctuation */
.cm { color: #75715e } /* Comment.Multiline */
.cp { color: #75715e } /* Comment.Preproc */
/* Solarized Dark
For use with Jekyll and Pygments
http://ethanschoonover.com/solarized
SOLARIZED HEX ROLE
--------- -------- ------------------------------------------
base03 #002b36 background
base01 #586e75 comments / secondary content
@theironsamurai
theironsamurai / liquid-tags.html
Created June 5, 2014 20:38
Tags for Jekyll with Liquid
{% capture tags %}
{% for tag in site.tags %}
{{ tag[0] }}
{% endfor %}
{% endcapture %}
{% assign sortedtags = tags | split:' ' | sort %}
{% for tag in sortedtags %}
<h3 id="{{ tag }}">{{ tag }}</h3>
<ul>
module Jekyll
class TagCloudTag < Liquid::Tag
safe = true
def initialize(tag_name, text, tokens)
super
end
def render(context)
html = ""

Note: this was forked from Balupton, because it's awesome. :-)

Use DocPad, GitHub and Prose as a Wiki

This guide will walk you through how you can use a GitHub repository to house your wiki content, have DocPad render it, and automatically update on changes. It's also really nice as we get to benefit from the github project workflow for our wiki, that is issues, pull requests, etc.

We use this workflow heavily by linking the DocPad Website and the DocPad Documentation repositories allowing us to have users edit and submit pull requests for improvements to our documentation, and once merged, the website regenerates automatically.

1. Highlighting the Jekyll way.

This method uses Liquid tags and works when published to Github Pages. It doesn't work in Github's viewer when browsing the repo.

{{ "{% highlight html linenos "}}%}
<div>this is some preformatted code</div>
{{ "{% endhighlight "}}%}

2. Highlighting the Markdown way

# change [description] to whatever you want your key to be described as
cat /path/to/public_key | ssh root@yourdokkuinstance.com "sudo sshcommand acl-add dokku [description]"
@theironsamurai
theironsamurai / .bashrc
Last active October 30, 2018 17:59
My Bash config - added to bottom of distro defaults
####################################################
########### My Bash Extras ########################
####################################################
##### Add to the bottom of the .bashrc
BROWSER=/usr/bin/firefox
EDITOR=/usr/bin/vim
export PATH="$PATH:$HOME/.local/bin"
@theironsamurai
theironsamurai / Manjaro-pacman-keys
Created May 15, 2014 19:29
Manjaro Pacman Keys: If you're getting errors updating, try this.
sudo pacman-key -r CB6CDD17
sudo pacman-key --lsign-key CB6CDD17