Skip to content

Instantly share code, notes, and snippets.

@erik-stephens
erik-stephens / sVim.css
Created October 23, 2018 17:45
sVim CSS
@-webkit-keyframes fadein {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
#sVim-command {
@erik-stephens
erik-stephens / sVim.rc
Created October 23, 2018 17:41
sVim configuration
unmap "x"
@erik-stephens
erik-stephens / dd-smart.py
Created September 1, 2017 18:29
SMART collection script for DataDog
#! /usr/bin/env python
# coding: utf8
"""
Publish metrics from `smartctl` output:
* temp.DISK = celsius
*
Also publish these events when they occur:
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'
#!/bin/sh
# Just copy and paste the lines below (all at once, it won't work line by line!)
# MAKE SURE YOU ARE HAPPY WITH WHAT IT DOES FIRST! THERE IS NO WARRANTY!
function abort {
echo "$1"
exit 1
}
set -e
@erik-stephens
erik-stephens / kibana-tests.json
Created September 26, 2014 19:32
Kibana dashboard for selenium test results
{
"title": "Test Results",
"services": {
"query": {
"list": {
"0": {
"query": "_type:metric",
"alias": "Metric",
"color": "#0A50A1",
"id": 0,
@erik-stephens
erik-stephens / docopt.py
Last active August 29, 2015 14:06
Simple DocOpt Install for Python & Bash
"""Pythonic command-line interface parser that will make you smile.
* http://docopt.org
* Repository and issue-tracker: https://github.com/docopt/docopt
* Licensed under terms of MIT license (see LICENSE-MIT)
* Copyright (c) 2013 Vladimir Keleshev, vladimir@keleshev.com
Modified by Erik Stephens to provide curl-installable docopt for both
python & bash usage (python -m docopt ...)
"""
@erik-stephens
erik-stephens / python-logging.ipynb
Last active December 9, 2016 02:59
IPython Notebook for "Python Logging for Web Applications"
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@erik-stephens
erik-stephens / WebRequests.json
Created July 23, 2014 23:06
Kibana dashboard for web app access logs
{
"title": "Web Requests",
"services": {
"query": {
"idQueue": [],
"list": {
"0": {
"id": 0,
"color": "#7EB26D",
"alias": "SUCCESS",