Skip to content

Instantly share code, notes, and snippets.

Avatar

Levi Olson leothelocust

View GitHub Profile
@leothelocust
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
leothelocust / lolson.pub
Last active Jun 13, 2018
Levi's Personal GPG Key
View lolson.pub
-----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 Apr 2, 2018
Developer Boxstarter - with emacs
View Config.ini
; 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 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
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
#!/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 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 }
// OTHER
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
leothelocust / osx-10.11-setup.md
Created Nov 4, 2015 — forked from kevinelliott/osx-10.11-setup.md
Mac OS X 10.11 El Capitan Setup
View osx-10.11-setup.md

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 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
You can’t perform that action at this time.