Skip to content

Instantly share code, notes, and snippets.

View widefox's full-sized avatar

Johnathon Weare widefox

  • Leamington Spa, England
View GitHub Profile
@widefox
widefox / pragmatapro-font-lock-symbols-v2.el
Created August 9, 2017 01:28 — forked from DeLaGuardo/pragmatapro-font-lock-symbols-v2.el
Snippet for support ligatures from PragmataPro font in Emacs
;; Enable ligatures without prettify-symbols
(provide 'add-pragmatapro-symbol-keywords)
(defconst pragmatapro-fontlock-keywords-alist
(mapcar (lambda (regex-char-pair)
`(,(car regex-char-pair)
(0 (prog1 ()
(compose-region (match-beginning 1)
(match-end 1)
@widefox
widefox / flycheck-rfringe.el
Last active July 31, 2017 13:27
RFringe support for Flycheck (untested, not maintained)
;;; flycheck-rfringe.el --- RFringe for Flycheck -*- lexical-binding: t; -*-
;; Copyright (C) 2015 Sebastian Wiesner <swiesner@lunaryorn.com>
;; Copyright (C) 2017 Johnathon Weare <jrweare@gmail.com>
;; Author: Sebastian Wiesner <swiesner@lunaryorn.com>
;; Johnathon Weare <jrweare@gmail.com>
;; Keywords: convenience, frames, tools
;; Version: 0.2
;; Package-Requires: ((emacs "24") (flycheck "0.23") (rfringe "0.0"))
@widefox
widefox / Ubuntu Kernel Upgrader Script
Created February 17, 2017 02:46 — forked from mmstick/Ubuntu Kernel Upgrader Script
Asks the user whether they want to install the latest RC or stable, then downloads the correct kernel and installs it.
#!/bin/bash
cd /tmp
if ! which lynx > /dev/null; then sudo apt-get install lynx -y; fi
if [ "$(getconf LONG_BIT)" == "64" ]; then arch=amd64; else arch=i386; fi
function download() {
wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | grep "$1" | grep "$2" | grep "$arch" | cut -d ' ' -f 4)
}