Skip to content

Instantly share code, notes, and snippets.

@felixfyi
felixfyi / pingdom.sh
Created June 5, 2013 08:22
This script is inteneded to fetch the whois of all Pingdom probe servers in order to check from which ISPs they check
#!/bin/bash
# This script is inteneded to fetch the whois of all Pingdom probe servers in order to check from which ISPs they check
# https://support.pingdom.com/Knowledgebase/Article/View/16/0/where-can-i-find-a-list-of-ip-addresses-for-your-probe-servers
#set -x
for ip in `wget --quiet -O- https://www.pingdom.com/rss/probe_servers.xml | perl -nle 'print $1 if /IP: (([01]?\d\d?|2[0-4]\d|25[0-5])\.([01]?\d\d?|2[0-4]\d|25[0-5])\.([01]?\d\d?|2[0-4]\d|25[0-5])\.([01]?\d\d?|2[0-4]\d|25[0-5]));/'`
do whois $ip >> whois.txt
#do echo $ip
done
# Public: Install Evernote to /Applications.
#
# Examples
#
# include evernote
class evernote {
package { 'evernote':
source => 'http://cdn1.evernote.com/mac/release/Evernote_400995.dmg',
provider => appdmg,
@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
@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 / 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 / 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_csr.sh
Created August 1, 2012 16:25
Check CSR
#!/bin/bash
openssl req -in ${1} -noout -text
@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