Skip to content

Instantly share code, notes, and snippets.

View theironsamurai's full-sized avatar

Nick Horton theironsamurai

View GitHub Profile
@theironsamurai
theironsamurai / gentoo-bash-colors
Last active July 10, 2020 07:02
Gentoo Bash Colors
# /etc/bash.bashrc
#
# NOTE: If on Arch Linux, you can check out the following package
# in the AUR: https://aur.archlinux.org/packages/gentoo-bashrc/
#
# This file is sourced by all *interactive* bash shells on startup,
# including some apparently interactive shells such as scp and rcp
# that can't tolerate any output. So make sure this doesn't display
# anything or bad things will happen !
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
xhost +local:root > /dev/null 2>&1
@theironsamurai
theironsamurai / manjaro-netrunner-blueshell-repo
Created May 5, 2014 11:36
Add Blueshell repo to Manjaro KDE (Netrunner-style)
# Add the following under the other repo's in
# in your /etc/pacman.config file
[blueshell]
SigLevel = Optional TrustAll
Server = http://arch.netrunner-os.com/$arch
@theironsamurai
theironsamurai / .bashrc
Last active August 29, 2015 14:01
My .bashrc file - color prompts and a bit for emacs
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=
@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
@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"
# 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]"

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

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.

module Jekyll
class TagCloudTag < Liquid::Tag
safe = true
def initialize(tag_name, text, tokens)
super
end
def render(context)
html = ""