Skip to content

Instantly share code, notes, and snippets.

@eberfreitas
eberfreitas / Caddyfile
Created March 11, 2016 06:33
Caddy configuration for CakePHP 3 (and probably 2 as well) - Use this file on your project root
localhost:80
root webroot
fastcgi / 127.0.0.1:9000 php
rewrite {
to {path} {path}/ /index.php?{path}&{query}
}
@AbraaoAlves
AbraaoAlves / contains-IgnoreAceents
Created October 7, 2011 15:24
Custom jQuery Selector to tag that contains text(ignore accents). It works equals :contains selector, but select all tags inpedendent of accents
(function($) {
var accent_map = {
'á':'a',
'à':'a',
'â':'a',
'å':'a',
'ä':'a',
@jakebellacera
jakebellacera / ICS.php
Last active June 2, 2024 02:20
A convenient script to generate iCalendar (.ics) files on the fly in PHP.
<?php
/**
* This is free and unencumbered software released into the public domain.
*
* Anyone is free to copy, modify, publish, use, compile, sell, or
* distribute this software, either in source code form or as a compiled
* binary, for any purpose, commercial or non-commercial, and by any
* means.
*