Skip to content

Instantly share code, notes, and snippets.

View shivaas's full-sized avatar
💭
lets build

Shivaas Gulati shivaas

💭
lets build
View GitHub Profile
@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
PidFile = /var/run/hhvm/pid
Server {
Port = 80
SourceRoot = /var/www/html/
DefaultDocument = index.php
}
Log {
Level = Error

Recommend spinning up a c3.8xlarge instance that gives you 32 cores and 60gigs of memory to compile the libraries. Once you are done installing, you can downsize the box and continue using HHVM.

Note: Replace 32 with the number of cores you have available on the machine.


Dependencies

<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
/**
* Exif data
*
* Library for extracting exif data from photos
*
* @package Exif_data
* @author Jonas Edemalm (http://www.retype.se)
@shivaas
shivaas / Seattle Belly
Created February 28, 2013 23:01
Good places to Eat in Seattle
Luke
Rover
Tilth
Spinase
@shivaas
shivaas / US Bank holidays (up to 2020)
Last active February 27, 2023 04:16
CSV for all US bank holidays till 2020. First row is the header. Dates are MYSQL format.
1,2012-01-02,New Year Day
2,2012-01-16,Martin Luther King Jr. Day
3,2012-02-20,Presidents Day (Washingtons Birthday)
4,2012-05-28,Memorial Day
5,2012-07-04,Independence Day
6,2012-09-03,Labor Day
7,2012-10-08,Columbus Day
8,2012-11-12,Veterans Day
9,2012-11-22,Thanksgiving Day
10,2012-12-25,Christmas Day