Skip to content

Instantly share code, notes, and snippets.

View sVim.css
@-webkit-keyframes fadein {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
#sVim-command {
@erik-stephens
erik-stephens / sVim.rc
Created Oct 23, 2018
sVim configuration
View sVim.rc
unmap "x"
@erik-stephens
erik-stephens / dd-smart.py
Created Sep 1, 2017
SMART collection script for DataDog
View dd-smart.py
#! /usr/bin/env python
# coding: utf8
"""
Publish metrics from `smartctl` output:
* temp.DISK = celsius
*
Also publish these events when they occur:
View osx-for-hackers.sh
#!/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'
View uninstall_homebrew.sh
#!/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 Sep 26, 2014
Kibana dashboard for selenium test results
View kibana-tests.json
{
"title": "Test Results",
"services": {
"query": {
"list": {
"0": {
"query": "_type:metric",
"alias": "Metric",
"color": "#0A50A1",
"id": 0,
@erik-stephens
erik-stephens / docopt.py
Last active Aug 29, 2015
Simple DocOpt Install for Python & Bash
View docopt.py
"""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 Dec 9, 2016
IPython Notebook for "Python Logging for Web Applications"
View python-logging.ipynb
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 Jul 23, 2014
Kibana dashboard for web app access logs
View WebRequests.json
{
"title": "Web Requests",
"services": {
"query": {
"idQueue": [],
"list": {
"0": {
"id": 0,
"color": "#7EB26D",
"alias": "SUCCESS",