Skip to content

Instantly share code, notes, and snippets.

View integrii's full-sized avatar
🇺🇸
Remember that LED stop lights failed because they didn't melt snow.

Eric Greer integrii

🇺🇸
Remember that LED stop lights failed because they didn't melt snow.
View GitHub Profile
@sushat4692
sushat4692 / config.hdf
Created May 15, 2014 12:00
HHVM for Amazon EC2 t1.micro
Eval {
Jit = true
JitASize = 67108864
JitAStubsSize = 67108864
JitGlobalDataSize = 22554432
}
@sushat4692
sushat4692 / HHVMinstall.sh
Created May 15, 2014 11:52
Install HHVM to CentOS
$ 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が無いよって怒られる
@integrii
integrii / .tmux.conf
Last active September 18, 2015 18:21 — forked from shinzui/tmux.conf
tmux.conf
# ~/.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:
#
@gerard-kanters
gerard-kanters / hhvm
Last active January 26, 2017 12:26
HHVM init script
#!/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
@shivaas
shivaas / codeigniter-apache-hhvm.md
Last active March 13, 2018 16:08
CodeIgniter with Apache & HHVM as FastCGI

Apache Configuration:

<VirtualHost *:80>
  ServerName blah.com

  DirectoryIndex index.html index.php
  ProxyRequests On
  ProxyPreserveHost On
  ProxyVia full
@stamler
stamler / install_splunk.sh
Created December 10, 2014 21:17
Install Splunk Enterprise 6.2 on CentOS 7 Minimal as a non-root user systemd service and enable syslog on port 514 and http on port 80
#!/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
@rupl
rupl / user-actions.js
Last active May 11, 2018 22:46
A CasperJS script to demonstrate simple user navigation actions on a website. This sample accompanies a blog post about CasperJS found at http://fourword.fourkitchens.com/article/simulate-user-actions-casperjs
/**
* @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
*/
@p2k
p2k / class.couchdb.php
Created August 21, 2012 11:31
PHP class for easy use of CouchDB databases
<?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
@maxivak
maxivak / 00.md
Last active May 1, 2021 13:54
Teamcity install on Centos

Teamcity install on Centos

@DavidVaini
DavidVaini / round.go
Created April 9, 2014 19:58
Arggh Golang does not include a round function in the standard math package. So I wrote a quick one.
package main
import (
"log"
"math"
)
func Round(val float64, roundOn float64, places int ) (newVal float64) {
var round float64
pow := math.Pow(10, float64(places))