Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
ror, scala, jetty, erlang, thrift, mongrel, comet server, my-sql, memchached, varnish, kestrel(mq), starling, gizzard, cassandra, hadoop, vertica, munin, nagios, awstats
# Basically the nginx configuration I use at konklone.com. | |
# I check it using https://www.ssllabs.com/ssltest/analyze.html?d=konklone.com | |
# | |
# To provide feedback, please tweet at @konklone or email eric@konklone.com. | |
# Comments on gists don't notify the author. | |
# | |
# Thanks to WubTheCaptain (https://wubthecaptain.eu) for his help and ciphersuites. | |
# Thanks to Ilya Grigorik (https://www.igvita.com) for constant inspiration. | |
server { |
# install git | |
sudo apt-get install g++ curl libssl-dev apache2-utils | |
sudo apt-get install git-core | |
# download the Node source, compile and install it | |
git clone https://github.com/joyent/node.git | |
cd node | |
./configure | |
make | |
sudo make install | |
# install the Node package manager for later use |
### ADD RPM Forge repository | |
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm | |
rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt | |
rpm -K rpmforge-release-0.5.2-2.el6.rf.*.rpm # Verifies the package | |
rpm -i rpmforge-release-0.5.2-2.el6.rf.*.rpm | |
### APACHE | |
# Dependencies |
#!/bin/bash | |
# ================================================================= | |
# Install a full scientific python stack from source, for Ubuntu, with | |
# python 2.7.3 (tested on a totally fresh Ubuntu12.04-amd64). Requires | |
# sudo for apt-getting dependencies like libatlas, Tk, etc | |
# ================================================================= | |
# packages pulled from PyPI are currently | |
# scipy 0.10.1 |
SBB / CFF API mobile | |
xmlfahrplan.sbb.ch 194.150.245.139 | |
Apparently this is the same crapy API than Deutsche Bahn. | |
### Client: POST xmlfahrplan.sbb.ch/bin/extxml.exe | |
<?xml version="1.0" encoding="iso-8859-1"?> |
<?php | |
if($enable_graphite) | |
{ | |
$fp = @fsockopen('127.0.0.1', 2003, $errno, $errstr, 1); | |
if($fp) | |
{ | |
$out = array(); |