Skip to content

Instantly share code, notes, and snippets.

@ralphotowo
ralphotowo / collectd.conf
Created April 16, 2017 21:11 — forked from uffsalot/collectd.conf
sample collectd.conf
FQDNLookup true
Interval 120
LoadPlugin syslog
<Plugin syslog>
LogLevel info
</Plugin>
LoadPlugin disk
@ralphotowo
ralphotowo / etc init.d unicorn-redmine
Created July 6, 2016 01:22 — forked from shrkw/etc init.d unicorn-redmine
init script for unicorn on RHEL, Cent OS, Scientific Linux way
#!/bin/sh
#
# unicorn_redmine Startup script for unicorn for redmine
#
# chkconfig: - 86 14
# processname: unicorn_rails
# pidfile: /opt/redmine/tmp/pids/unicorn.pid
# description: Rails application server for Redmine
#
### BEGIN INIT INFO
@ralphotowo
ralphotowo / Ruby 2.0 on CentOS 6
Created July 5, 2016 22:44 — forked from rtacconi/Ruby 2.0 on CentOS 6
Compile Ruby 2.0 p647 on CentOS 6
#!/usr/bin/env bash
# repository
cd /tmp
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -Uvh epel-release-6-8.noarch.rpm
# system update
yum -y update
yum -y groupinstall "Development Tools"
yum -y install libxslt-devel libyaml-devel libxml2-devel gdbm-devel libffi-devel zlib-devel openssl-devel libyaml-devel readline-devel curl-devel openssl-devel pcre-devel git memcached-devel valgrind-devel mysql-devel ImageMagick-devel ImageMagick
@ralphotowo
ralphotowo / rPi3-ap-setup.sh
Created April 2, 2016 14:59 — forked from Lewiscowles1986/rPi3-ap-setup.sh
Raspberry Pi 3 access-point-setup
#!/bin/bash
if [ "$EUID" -ne 0 ]
then echo "Must be root"
exit
fi
if [[ $# -ne 1 ]];
then echo "You need to pass a password!"
echo "Usage:"
@ralphotowo
ralphotowo / comparer.py
Created March 16, 2016 16:27 — forked from th0ma5w/comparer.py
CSV logging script for stock dump1090
#!/usr/bin/python
#
# CSV logging script for stock dump1090
#
# Uses the Requests library to compare the state of planes in view
# and prints changes to standard out
#
# Start dump1090
# modify this script to point to your dump1090 URL if different
# run the script and pipe the output to a file eg: