Instantly share code, notes, and snippets.

View k8s.yml
---
apiVersion: v1
kind: Service
metadata:
name: users
spec:
ports:
- port: 80
targetPort: 80
protocol: TCP
View battery-status
#!/bin/bash
#
# battery-status
#
# A quick little indicator for battery status on your Mac laptop, suitable for
# display in your prompt.
battery=$(upower -e | grep BAT)
state=$(upower -i $battery | grep state | tail -1 |awk -F":" '{print $2}' |sed -e 's/\s*//')
time_left=$(upower -i $battery |grep "time to empty" |tail -1 |awk -F":" '{print $2}' | sed -e 's/\s*//')
View oauth.go
package app
// Routes to handle validating user login against the auth app.
// Currently doesn't do anything because the Auth app isn't up yet. Need to get
// that deployed so this can be fleshed out.
import (
"fmt"
"github.com/KloudKtrl/internal/database"
"github.com/dgrijalva/jwt-go"
View email-customize.el
;; mu4e stuff
(require 'mu4e)
;; tell message-mode how to send mail
(setq message-send-mail-function 'smtpmail-send-it)
;; if our mail server lives at smtp.example.org; if you have a local
;; mail-server, simply use 'localhost' here.
(setq smtpmail-smtp-server "localhost")
(setq mu4e-view-prefer-html t)
View imap-passwords.py
#!/usr/bin/python
#import gtk
import gnomekeyring as gkey
import getpass
class Keyring(object):
def __init__(self, name, server, protocol):
self._name = name
self._server = server
View imap-passwords.py
#!/usr/bin/python
#import gtk
import gnomekeyring as gkey
import getpass
class Keyring(object):
def __init__(self, name, server, protocol):
self._name = name
self._server = server
View .offlineimap.py
#!/usr/bin/python
import sys
#import gtk
import gnomekeyring as gkey
class Keyring(object):
def __init__(self, name, server, protocol):
self._name = name
self._server = server
View Xorg.failsafe.log
[827006.380]
X.Org X Server 1.17.1
Release Date: 2015-02-10
[827006.380] X Protocol Version 11, Revision 0
[827006.380] Build Operating System: Linux 3.2.0-61-generic x86_64 Ubuntu
[827006.381] Current Operating System: Linux TheBlackTower 3.16.0-44-generic #59-Ubuntu SMP Tue Jul 7 02:07:39 UTC 2015 x86_64
[827006.381] Kernel command line: BOOT_IMAGE=/vmlinuz-3.16.0-44-generic root=UUID=4d660831-94d3-4c99-828c-1e360d6d6358 ro quiet splash vt.handoff=7
[827006.381] Build Date: 19 March 2015 09:26:59AM
[827006.381] xorg-server 2:1.17.1-0ubuntu3 (For technical support please see http://www.ubuntu.com/support)
[827006.381] Current version of pixman: 0.32.6
View gist:75e9d5e18534e21c514b
### Keybase proof
I hereby claim:
* I am seanhagen on github.
* I am seanhagen (https://keybase.io/seanhagen) on keybase.
* I have a public key whose fingerprint is A1C5 3473 CFD5 F587 B83C 0B39 78FD 721B AAD2 F03A
To claim this, I am signing this object:
View 69-yubikey.rules
ACTION!="add|change", GOTO="yubico_end"
# Udev rules for letting the console user access the Yubikey USB
# device node, needed for challenge/response to work correctly.
# Yubico Yubikey II
ATTRS{idVendor}=="1050", ATTRS{idProduct}=="0010|0110|0111|0116", \
ENV{ID_SECURITY_TOKEN}="1"
LABEL="yubico_end"