Skip to content

Instantly share code, notes, and snippets.

View lazypower's full-sized avatar
💭
Bring back independent blogs, rss feeds, and the small web.

Charles "Chuck" Butler lazypower

💭
Bring back independent blogs, rss feeds, and the small web.
View GitHub Profile
[hekad]
maxprocs = 4
# Heka dashboard for internal metrics and time series graphs
[Dashboard]
type = "DashboardOutput"
address = "ec2-54-215-139-238.us-west-1.compute.amazonaws.com:4352"
ticker_interval = 15
[tcp_carbon]
@technolo-g
technolo-g / gist:bdac8229829c07d4aedd
Created November 4, 2014 19:47
Consul/HAProxy vs VulcanD/EtcD

HAProxy + Consul vs VulcanD + EtcD

HAProxy/Consul

  • Pro: Both are production ready
  • Pro: Can handle any throughput we will see
  • Pro: More feature rich
    1. Healthchecks
    2. DNS and HTTP API available to map endpoints
    3. Lots of service discovery built in
  • Pro: Solution could be used in more than one place (bld/prod/etc..)
@jeroenjanssens
jeroenjanssens / case-citibikes.sh
Last active August 29, 2015 14:07
Data Science at the Command Line Strata Tutorial
# make sure that you have the R package `ggmap` installed
curl -s http://api.citybik.es/citi-bike-nyc.json > citibikes.json
< citibikes.json jq -r '.[] | [.lat/1000000,.lng/1000000,.bikes] | @csv' | header -a lat,lng,bikes > citibikes.csv
< citibikes.csv Rio -vge 'require(ggmap); qmap("NYC", zoom=14) + geom_point(data=df, aes(x=lng, y=lat, size=bikes))' > citibikes.png
@tvansteenburgh
tvansteenburgh / errors.yaml
Last active August 29, 2015 14:07
charmguardian-report filters
returncode: content != 0
test: content not in ('charm-proof', 'make lint')
output: not content.startswith('bundletester failed')
@niedbalski
niedbalski / remote-pdb.md
Last active August 29, 2015 14:06
Using rpdb charmhelpers

Usage

On your charms code, put a trace exception

from charmhelpers.contrib.python import pdb

@hooks.hook()
def install():
   pdb.set_trace()
 ...
@dragonai
dragonai / README.md
Last active July 15, 2019 18:48
GitHub Organization Open Pull Requests

##Preview

Description

Simple Dashing widget that displays all currently open pull requests across a GitHub organization.

##Usage

@kapilt
kapilt / update-address
Last active September 15, 2020 20:29
Workaround for juju bug http://pad.lv/1215579
#!/usr/bin/python
"""
Juju fails to update addresses in relations when those addresses
change. This script can be used to propagate address changes on a
unit to all of its relations and related units.
This is a workaround for http://pad.lv/1215579
You need to transfer this file to all the units with changed addresses
@soarez
soarez / ca.md
Last active April 24, 2025 12:51
How to setup your own CA with OpenSSL

How to setup your own CA with OpenSSL

For educational reasons I've decided to create my own CA. Here is what I learned.

First things first

Lets get some context first.

@Ribesg
Ribesg / bash_aliases.sh
Last active December 31, 2015 12:09
Here's my server's Starbound related config files and scripts.
alias sb_start="sudo start starbound"
alias sb_stop="sudo stop starbound"
alias sb_restart="sb_stop;sb_start"
alias sb_update="sudo /home/ribesg/sb_update"
alias sb_online="netstat -nt | grep -c 21025"
alias sb_status="sudo status starbound"
@marcoceppi
marcoceppi / juju-prettyprint
Last active December 27, 2015 00:39
prettyprint in juju
#!/usr/bin/python
import os
import sys
import yaml
import subprocess
status_raw = subprocess.check_output(['juju', 'status'])