Skip to content

Instantly share code, notes, and snippets.

View jashank's full-sized avatar

Jashank Jeremy jashank

View GitHub Profile
@jashank
jashank / sitemap.xml
Created December 31, 2013 06:19
jekyll sitemap.xml
---
layout: nil
---
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
{% for page in site.pages %}
<url>
<loc>{{ site.location }}{{ page.url }}</loc>
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
</url>
@jashank
jashank / jekyll-kramtoc.rb
Created February 12, 2014 03:25
Kramdown TOC->HTML wrapped in Jekyll
require 'kramdown'
module Jekyll
module Converters
class Markdown
class KramdownParser
attr_accessor :kramdown
DISPATCHER = Hash.new {|h,k| h[k] = "convert_#{k}"}
@jashank
jashank / README.md
Last active March 20, 2019 19:31
RFC 1345 compose keys

RFC 1345 Compose Keys

The notion of Compose keys are brilliant. I really like the notion of pressing a key, typing a sequence of characters, and out pops a pretty Unicode character. However, the default sequences in X are immensely silly, and in any case, there's already an RFC for this.

RFC 1345 exists to specify a simple way of entering Unicode characters, and it's a crying shame that Compose keys don't use it,

### grub configuration for alyzon
#
# I run FreeBSD/amd64 with root-on-ZFS on a Lenovo ThinkCentre M83,
# which has UEFI. At the moment, this configuration is basically
# unsupported (although it's coming soon), but I want to be able to
# use my system. I've had prior experience with Lenovo UEFI boxes
# before (Arch on my ThinkPad T440), and I hate autogenerated GRUB
# configs, so I appropriated my hand-written GRUB config, and extended
# it.
#