Skip to content

Instantly share code, notes, and snippets.

@felixfyi
felixfyi / link1.md
Created June 11, 2012 10:52
link collection #1

Vagrant - not really new. But super kiff!

@felixfyi
felixfyi / link2.md
Created June 12, 2012 18:38
link collection #2
@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

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 / 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

@felixfyi
felixfyi / check_csr.sh
Created August 1, 2012 16:25
Check CSR
#!/bin/bash
openssl req -in ${1} -noout -text
@felixfyi
felixfyi / marseille.md
Created August 8, 2012 11:29
Travel diary to Marseille - an experimental trip

Travel diary to Marseille - an experimental trip

So I've planned a short weekly summer trip to Marseille, because when I was the first time in france, the country was just mind-blowing.

Started looking for an appartment on https://www.airbnb.com/ and https://www.wimdu.com/. After searching for a while, I finally found a cheap room on Wimdu in Marseille, which is pretty close to the center.

Day one - arriving in Marseille

Took the airplane from Berlin-Tegel to Frankfurt, after this Frankfurt to Marseille. Both flights with Lufthansa.

@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 [email protected] 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 / nagiosharder.rb
Created January 31, 2013 12:59
nagiosharder icinga
require 'rubygems'
require 'nagiosharder'
site = NagiosHarder::Site.new('https://localhost/icinga/cgi-bin/', 'user', 'pass')
puts site.host_status('myhost')
@felixfyi
felixfyi / puppet-bootstrap-debian-squeeze.sh
Last active December 14, 2015 11:48
Bootstrap Puppet 2.7.19 Debian squeeze
#!/bin/bash
wget http://apt.puppetlabs.com/puppetlabs-release-squeeze.deb
dpkg -i puppetlabs-release-squeeze.deb
apt-get update
apt-get -y install puppet-common=2.7.19-1puppetlabs2 puppet=2.7.19-1puppetlabs2
rm puppetlabs-release-squeeze.deb