I thought I would document my setup, since it's somewhat non-standard but working quite well for me.
- Install major Ruby versions at their latest patch release
- Allow to switch between them seamlessly
- Use chruby
- Encourage bundler usage
| https://www.youtube.com/watch?v=hIqEHc9_Bwo | |
| https://www.youtube.com/watch?v=PwedoZZHadY | |
| https://www.youtube.com/watch?v=tM_HRwqKzFk | |
| https://www.youtube.com/watch?v=zufLcLT8fmI | |
| https://www.youtube.com/watch?v=hdNHKUCbNmE | |
| https://www.youtube.com/watch?v=4Ge2h8Apgd8 | |
| https://www.youtube.com/watch?v=wBkvzbw5cDM | |
| https://www.youtube.com/watch?v=-8KmEO0hrz0 | |
| https://www.youtube.com/watch?v=gBLalqndgYQ | |
| https://www.youtube.com/watch?v=QgmTsvIMD-k |
heka.counter-output: Generated by CounterFilter. Usually picked up by a LogOutput for writing to stdout.
heka.plugin-report: Used inside the reporting infrastructure for plugins to provide report data to the dashboard, typically not injected into the router at all.
heka.input-report: Used inside the reporting infrastructure for the input recycle chan to provide report data to the dashboard, typically not injected into the router at all.
heka.inject-report: Used inside the reporting infrastructure for the inject recycle chan to provide report data to the dashboard, typically not injected into the router at all.
heka.router-report: Used inside the reporting infrastructure for the router to provide report data to the dashboard, typically not injected into the router at all.
| Hi, | |
| I've managed to cobble together an openldap plugin to monitor the various | |
| counters from an openldap server. This is based mainly off of the apache and | |
| mysql plugins. I am not a c programmer so apologies if the code is horrible. | |
| Two things I need help on are: | |
| 1) Initializing the global ldap options. I don't know where this would go. |
| #!/usr/bin/env bash | |
| set -e | |
| [ -n "$DEBUG" ] && set -x | |
| banner() { printf -- "-----> $*\n"; } | |
| banner "Restarting VMware networking" | |
| banner "Stoping networking" | |
| sudo /Applications/VMware\ Fusion.app/Contents/Library/vmnet-cli --stop |
| # Seems you have 2 solutions left: | |
| # - either you trash the whole index and reindex. Good luck, have fun | |
| # - or you manually reallocate the whole thing | |
| # | |
| # Guess what I'll pick up | |
| curl -XPOST 'localhost:9200/_cluster/reroute' -d '{ | |
| "commands": [ | |
| { | |
| "allocate": { |
This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.
The script is here:
#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"
| { | |
| "template" : "logstash-*", | |
| "settings" : { | |
| "index.refresh_interval" : "5s", | |
| "analysis" : { | |
| "analyzer" : { | |
| "default" : { | |
| "type" : "standard", | |
| "stopwords" : "_none_" | |
| } |
| #!/bin/sh | |
| # linux firewall/forwarding | |
| modprobe iptable_nat | |
| echo 1 | tee /proc/sys/net/ipv4/ip_forward | |
| iptables -t nat -A POSTROUTING -s 10.10.10.1/2 -o eth0 -j MASQUERADE | |
| # install openvpn | |
| apt-get update && apt-get install -y openvpn | |
| cd /etc/openvpn/ | |
| INSTANCE=$(curl http://169.254.169.254/latest/meta-data/public-hostname) | |
| openvpn --genkey --secret ${INSTANCE}.key |