Skip to content

Instantly share code, notes, and snippets.

View leothelocust's full-sized avatar

Levi Olson leothelocust

View GitHub Profile
@leothelocust
leothelocust / Makefile
Created January 20, 2021 19:18
An example Makefile with dynamic "help" command
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
leothelocust / pragmatapro-font-lock-symbols-v2.el
Last active August 29, 2019 21:55 — forked from DeLaGuardo/pragmatapro-font-lock-symbols-v2.el
Snippet for support ligatures from PragmataPro font in Emacs
;; 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
leothelocust / lolson.pub
Last active June 13, 2018 21:36
Levi's Personal GPG Key
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBFse5UIBEACnsfJ828paBEi9rZkCDcpUvTpXSzNBQcn1tl03PzGKSLxuB0Gw
iolN33l9IwzwAq2g68J4L/29jMt87194GLiIuMisTz4VdFXmIh4zqFhXdyq6qu28
ntU9iwPeIZF8MAhMHerZXmlQD5jGvrxqWyLMbL55xduLIFYh2LctLv9L4s5OvIsc
KoPEjVYKD9fH3Fby3SaN2BMYgupyPNrs2wYru5cpL//Y0uNnga15HoZrHU1rekku
YygoH+AnGDs4vEIUd9cceWly9e7It60Rms4WJm9qN7XEsHGZANHZwjNOFr8bohWA
hvsNVnWEFa6pN+eguxDuY1RnOz8yQ9DfB4OyG1qP/cZVMio3kfPtcQjHBFuAm1Vu
SAkly9xu1b1zkKEaILYtv3S0gh/gW6k4txqwYJLEECjUA+7cqOlQVyaIc6uAah6s
cHNW3QzWhZq1PUk7YEs5jMpirDFcf65ia3yXjt2CvfpJC9f460B/LzjMj4zz9rIJ
@leothelocust
leothelocust / Config.ini
Last active April 2, 2018 19:54
Developer Boxstarter - with emacs
; bug.n - tiling window management
; @version 9.0.1
Monitor_#1_aView_#2=2
View_#1_#1_layout_#1=2
View_#1_#1_layout_#2=3
Config_rule_#1=Wox;.*;;1;0;0;1;1;0;
@leothelocust
leothelocust / vscode_backup.json
Last active July 14, 2017 00:03
VSCode Settings Backup
{
"workbench.iconTheme": "material-icon-theme",
"vim.disableAnnoyingNeovimMessage": true,
"sync.gist": "708eb7543b40f79cbf3359f946aa21dd",
"sync.autoUpload": true,
"vim.useSystemClipboard": true,
"vim.otherModesKeyBindings": [],
"vim.otherModesKeyBindingsNonRecursive": [
{
"before": ["y"],
@leothelocust
leothelocust / sp
Last active October 19, 2016 21:33 — 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.
#!/bin/bash
#
# 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
leothelocust / HashMap.js
Last active September 2, 2016 15:17
JavaScript HashMap for the win!
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 }
// OTHER
# 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
leothelocust / osx-10.11-setup.md
Created November 4, 2015 21:11 — forked from kevinelliott/osx-10.11-setup.md
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 https://gist.github.com/kevinelliott/0726211d17020a6abc1f). 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
leothelocust / windows_startup
Last active August 29, 2015 14:13
Map Network Drives on 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