Apache Configuration:
<VirtualHost *:80>
ServerName blah.com
DirectoryIndex index.html index.php
ProxyRequests On
ProxyPreserveHost On
ProxyVia full
Eval { | |
Jit = true | |
JitASize = 67108864 | |
JitAStubsSize = 67108864 | |
JitGlobalDataSize = 22554432 | |
} |
$ wget http://www.hop5.in/yum/el6/hop5.repo | |
$ yum install hhvm | |
// libwarf が無いよって怒られる | |
$ yum install libdwarf --enablerepo=epel | |
$ yum install hhvm | |
$ hhvm | |
// liblcms2.so.2が無いよって怒られる |
# ~/.tmux.conf | |
# | |
# See the following files: | |
# | |
# /opt/local/share/doc/tmux/t-williams.conf | |
# /opt/local/share/doc/tmux/screen-keys.conf | |
# /opt/local/share/doc/tmux/vim-keys.conf | |
# | |
# URLs to read: | |
# |
#!/bin/bash | |
# | |
# hhvm Startup script for the HipHop Server | |
# | |
# chkconfig: - 85 15 | |
# description: HHVM is an open-source virtual machine designed for executing programs written in Hack and PHP | |
# processname: hhvm | |
# config: /etc/php.ini | |
# config: /etc/hhvm/server.ini | |
# pidfile: /var/run/hhvm/hhvm.pid |
Apache Configuration:
<VirtualHost *:80>
ServerName blah.com
DirectoryIndex index.html index.php
ProxyRequests On
ProxyPreserveHost On
ProxyVia full
#!/bin/bash | |
# Install Splunk 6.2 on CentOS 7 as a non-root user service that runs on boot with | |
# systemd. This script also opens the firewall to allow syslog on UDP port 514. Since | |
# we're running Splunk as non-root, this port is then forwarded to 5514. Configuring a | |
# syslog input in slunk on UDP 514 will gather this data. Must be run as root | |
# Create Account | |
useradd splunk | |
groupadd splunk |
/** | |
* @file | |
* Simulating user actions with CasperJS. This script explores the ability to | |
* use Casper for navigation just like a user would: clicking the page and | |
* entering text to submit a form. This script accompanies a blog post from | |
* Four Kitchens: | |
* | |
* @see http://fourword.fourkitchens.com/article/simulate-user-actions-casperjs | |
*/ |
<?php | |
/* | |
* class.couchdb.php - A class for easy use of CouchDB databases in PHP | |
* | |
* Copyright (C) 2012 Patrick "p2k" Schneider <patrick.p2k.schneider@gmail.com> | |
* | |
* This is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or |
package main | |
import ( | |
"log" | |
"math" | |
) | |
func Round(val float64, roundOn float64, places int ) (newVal float64) { | |
var round float64 | |
pow := math.Pow(10, float64(places)) |