Skip to content

Instantly share code, notes, and snippets.


Levi Olson leothelocust

View GitHub Profile
leothelocust / Makefile
Created Jan 20, 2021
An example Makefile with dynamic "help" command
View Makefile
COMMAND_COLOR = \033[36m
DESC_COLOR = \033[32m
CLEAR_COLOR = \033[0m
.PHONY: help
help: ## prints this message ## (and puts this on line 2)
@echo ""; \
echo "Usage: make <command>"; \
echo ""; \
echo "where <command> is one of the following:"; \
leothelocust / pragmatapro-font-lock-symbols-v2.el
Last active Aug 29, 2019 — forked from DeLaGuardo/pragmatapro-font-lock-symbols-v2.el
Snippet for support ligatures from PragmataPro font in Emacs
View pragmatapro-font-lock-symbols-v2.el
;; Enable ligatures without prettify-symbols (updated to latest codes)
(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)
leothelocust /
Last active Jun 13, 2018
Levi's Personal GPG Key
leothelocust / Config.ini
Last active Apr 2, 2018
Developer Boxstarter - with emacs
View Config.ini
; bug.n - tiling window management
; @version 9.0.1
leothelocust / vscode_backup.json
Last active Jul 14, 2017
VSCode Settings Backup
View vscode_backup.json
"workbench.iconTheme": "material-icon-theme",
"vim.disableAnnoyingNeovimMessage": true,
"sync.gist": "708eb7543b40f79cbf3359f946aa21dd",
"sync.autoUpload": true,
"vim.useSystemClipboard": true,
"vim.otherModesKeyBindings": [],
"vim.otherModesKeyBindingsNonRecursive": [
"before": ["y"],
leothelocust / sp
Last active Oct 19, 2016 — forked from wandernauta/sp
sp is a command-line client for Spotify's dbus interface. Play, pause, skip and search tracks from the comfort of your command line.
View sp
# This is sp, the command-line Spotify controller. It talks to a running
# instance of the Spotify Linux client over dbus, providing an interface not
# unlike mpc.
# Put differently, it allows you to control Spotify without leaving the comfort
# of your command line, and without a custom client or Premium subscription.
leothelocust / HashMap.js
Last active Sep 2, 2016
JavaScript HashMap for the win!
View HashMap.js
var Map = function() { this.keys = []; this.items = new Object() }
// PUT
Map.prototype.put = function(key, value) { if (!(key in this.items)) { this.keys.push(key) } this.items[key] = value; }
Map.prototype.putAll = function(obj) { for(item in obj) { this.put(item, obj[item]) } }
// GET
Map.prototype.get = function(key) { return this.items[key] }
Map.prototype.getItems = function() { return this.items }
Map.prototype.getKeys = function() { return this.keys }
View .tmux.conf
# List of plugins
# Supports `github_username/repo` or full git repo URLs
set -g @tpm_plugins ' \
tmux-plugins/tpm \
tmux-plugins/tmux-sensible \
tmux-plugins/tmux-resurrect \
tmux-plugins/tmux-continuum \
tmux-plugins/tmux-battery \
tmux-plugins/tmux-copycat \
tmux-plugins/tmux-yank \
leothelocust /
Created Nov 4, 2015 — forked from kevinelliott/
Mac OS X 10.11 El Capitan Setup

Mac OS X 10.11 El Capitan

Custom recipe to get OS X 10.11 El Capitan running from scratch, setup applications and developer environment. This is very similar (and currently mostly the same) as my 10.10 Yosemite setup recipe (as found on this gist Note that I expect this to change significantly as I install El Capitan several times.

I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.

This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.

You are encouraged to fork this and modify it to your heart's content to match your own needs.

leothelocust / windows_startup
Last active Aug 29, 2015
Map Network Drives on Startup
View windows_startup
REM Windows Startup Program to remove and remap mapped network
REM drives on startup/login to Windows
REM ============================================================
REM Change "xxxxx" to user's username
REM (same as EideExcelerate)
REM Change "*****" to user's password
REM (same as EideExcelerate)
REM ============================================================
@echo off
set user=verneide\xxxxx