Skip to content

Instantly share code, notes, and snippets.

@sloria
sloria / bobp-python.md
Last active June 26, 2024 15:54
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens
@nodesocket
nodesocket / bootstrap.flatten.css
Last active April 1, 2021 23:37
Below are simple styles to "flatten" bootstrap. I didn't go through every control and widget that bootstrap offers, only what was required for https://commando.io, so your milage may vary.
/* Flatten das boostrap */
.well, .navbar-inner, .popover, .btn, .tooltip, input, select, textarea, pre, .progress, .modal, .add-on, .alert, .table-bordered, .nav>.active>a, .dropdown-menu, .tooltip-inner, .badge, .label, .img-polaroid {
-moz-box-shadow: none !important;
-webkit-box-shadow: none !important;
box-shadow: none !important;
-webkit-border-radius: 0px !important;
-moz-border-radius: 0px !important;
border-radius: 0px !important;
border-collapse: collapse !important;
background-image: none !important;
@jordansissel
jordansissel / elasticsearch.yml.erb
Created November 30, 2012 23:28
logstash at dreamhost
# This file is generated by Chef in the elasticsearch cookbook.
node.name: <%= node.nodes.self %>
path.data: /home/elasticsearch/data
path.logs: /home/elasticsearch/logs
# Cluster name
cluster.name: <%= node.nodes.site %>
# The list of neighbors
discovery.zen.ping.unicast.hosts: <%= node.nodes.neighbors.join(",") %>