Skip to content

Instantly share code, notes, and snippets.

View Fredegaard's full-sized avatar

Christian Fredegaard Fredegaard

View GitHub Profile
@donniebrandt
donniebrandt / timezones.sql
Last active November 2, 2018 23:32
MySQL: Timezones.
CREATE TABLE `options` (
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`group` enum('Timezones') COLLATE utf8_unicode_ci NOT NULL,
`order` tinyint(4) NOT NULL DEFAULT '0',
PRIMARY KEY (`name`,`group`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
INSERT INTO `options` (`name`, `group`, `order`)
VALUES
("Africa/Abidjan", 'Timezones', 0),
@plentz
plentz / nginx.conf
Last active July 23, 2026 11:59
Best nginx configuration for improved security(and performance)
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@kenjis
kenjis / _autocomplete.php
Created April 12, 2012 02:13
FuelPHP 1.2 helperfile for IDE code completion
<?php
class Asset_Instance extends Fuel\Core\Asset_Instance {}
class Cache_Handler_Json extends Fuel\Core\Cache_Handler_Json {}
class Cache_Handler_Serialized extends Fuel\Core\Cache_Handler_Serialized {}
class Cache_Handler_String extends Fuel\Core\Cache_Handler_String {}
class Cache_Storage_Apc extends Fuel\Core\Cache_Storage_Apc {}
abstract class Cache_Storage_Driver extends Fuel\Core\Cache_Storage_Driver {}
class Cache_Storage_File extends Fuel\Core\Cache_Storage_File {}
class Cache_Storage_Memcached extends Fuel\Core\Cache_Storage_Memcached {}