Skip to content

Instantly share code, notes, and snippets.

@felixfyi
felixfyi / check_memcache.rb
Created November 9, 2012 17:48 — forked from denniskong/check_memcache.rb
Nagios plugin to check memcached written in ruby
#!/usr/bin/env ruby
# check_memcached.rb ko.de.r.de@googlemail.com 20091101 v0.1
# Copyright 2009, Dennis Kong
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@felixfyi
felixfyi / ideal ops.md
Created June 26, 2012 14:55 — forked from bhenerey/ideal ops.md
ideal ops checklist

In a perfect world, where things are done well, not just quickly, I would expect to find the following when joining the company:

Documentation

  • Accurate / up-to-date systems architecture diagram

  • Accurate / up-to-date network diagram

  • Out-of-hours support plan

  • Incident management plan

how to install ZeroMQ php binding?

see also http://www.zeromq.org/bindings:php

wget http://www.zeromq.org/local--files/area:download/zeromq-2.0.9.tar.gz
tar zxf zeromq-2.0.9.tar.gz
cd zeromq-2.0.9
./configure
make && make install

cd ..

@felixfyi
felixfyi / 0mq_install.sh
Created June 26, 2012 14:55 — forked from gblmarquez/0mq_install.sh
centos | debian zeromq install (from source)
#!/bin/bash
# doesn't remove packages. just beginning/sharing script for the install.
if [ -e /etc/redhat-release ]; then
yum install -y gcc gcc-c++ make autoconf automake e2fsprogs-devel glibc-devel libuuid-devel
elif [ -e /etc/debian_version ]; then
apt-get install -y build-essential uuid-dev
else
echo "sorry, this script only installs on RedHat/CentOS or Debian/Ubuntu boxes"
exit 2