Skip to content

Instantly share code, notes, and snippets.

View hreeder's full-sized avatar

Harry Reeder hreeder

View GitHub Profile
View git aliases
g=git
ga='git add'
gaa='git add --all'
gap='git apply'
gapa='git add --patch'
gau='git add --update'
gav='git add --verbose'
gb='git branch'
gbD='git branch -D'
gba='git branch -a'
View xmonad.hs
-- AngusP's XMonad Config
import System.IO
import System.Exit
import XMonad
import XMonad.Actions.CycleWS
import XMonad.Actions.CopyWindow
import XMonad.Actions.MouseGestures
import XMonad.Actions.SpawnOn
import XMonad.Hooks.DynamicLog
@hreeder
hreeder / -
Created February 20, 2017 14:52
View -
g=git
ga='git add'
gaa='git add --all'
gapa='git add --patch'
gau='git add --update'
gb='git branch'
gba='git branch -a'
gbd='git branch -d'
gbda='git branch --no-color --merged | command grep -vE "^(\*|\s*(master|develop|dev)\s*$)" | command xargs -n 1 git branch -d'
gbl='git blame -b -w'
@hreeder
hreeder / -
Created February 20, 2017 14:52
View -
git: aliased to hub
View poller.out
LibreNMS Poller
Version info:
Commit SHA: 969b963180ea42272c5b9c40851c683daf1c6337
Commit Date: 1481790205
DB Schema: 152
PHP: 5.6.28-0+deb8u1
MySQL: 10.0.28-MariaDB-0+deb8u1
RRDTool: 1.4.8
SNMP: NET-SNMP 5.7.2.1
DEBUG!
View butts.py
#!/usr/bin/env python
import json
import paho.mqtt.client as mqtt
prog = []
leds = 50
def generate_frame(n, timeout):
frame = [[n, n, n] for _ in range(0, 50)]
return [frame, timeout]
@hreeder
hreeder / Discovery
Created November 11, 2016 13:54
Dell PowerConnect 6024 - LibreNMS Captures
View Discovery
LibreNMS Discovery
Version info:
Commit SHA:
DB Schema: 148
PHP: 7.0.12-1+deb.sury.org~xenial+1
MySQL: 10.1.18-MariaDB-1~jessie
RRDTool: 1.5.5
SNMP: NET-SNMP 5.7.3
DEBUG!
SQL[SELECT version FROM `dbSchema` ORDER BY version DESC LIMIT 1]
View xmonad.hs
-- AngusP's XMonad Config
import System.IO
import System.Exit
import XMonad
import XMonad.Actions.CycleWS
import XMonad.Actions.CopyWindow
import XMonad.Actions.MouseGestures
import XMonad.Actions.SpawnOn
import XMonad.Hooks.DynamicLog
View .spacemacs
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration."
(setq-default
;; List of additional paths where to look for configuration layers.
;; Paths must have a trailing slash (i.e. `~/.mycontribs/')
dotspacemacs-configuration-layer-path '()
@hreeder
hreeder / menu.json
Last active May 8, 2016 13:24
Hoose Menu
View menu.json
{
"mains": [
{
"price": 5.75,
"vegetarian": true,
"vegan": false,
"name": "Crispy Onion Rings"
},
{
"price": 5.75,