Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
| import ast | |
| from cStringIO import StringIO | |
| import sys | |
| INFSTR = '1e308' | |
| def interleave(inter, f, seq): | |
| seq = iter(seq) | |
| try: | |
| f(next(seq)) |
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta http-equiv="Content-Type" | |
| content="text/html; charset=utf-8" /> | |
| <script src="jquery-1.7.2.min.js" ></script> | |
| <script src="handlebars-1.0.0.beta.6.js" ></script> | |
| <script src="underscore-min.js" ></script> | |
| <script src="backbone-min.js" ></script> |

Author: Josef Jezek
| <?php | |
| /** | |
| * This script allows to redirect mail sent via the php mail function | |
| * to a dedicated mailbox | |
| * | |
| * @date 2013-06-20 | |
| * @author Sébastien MALOT / Actualys | |
| * | |
| * ---------------------------------- |
| # this forces dpkg not to call sync() after package extraction and speeds up install | |
| RUN echo "force-unsafe-io" > /etc/dpkg/dpkg.cfg.d/02apt-speedup | |
| # we don't need and apt cache in a container | |
| RUN echo "Acquire::http {No-Cache=True;};" > /etc/apt/apt.conf.d/no-cache |
| <?php | |
| /** | |
| * @file | |
| * Class PdfParser | |
| * | |
| * @author : Sebastien MALOT <[email protected]> | |
| * @date : 2013-08-08 | |
| * | |
| * References : |
Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
| <?php | |
| //Using composer to get the Sabre lib | |
| require dirname ( __FILE__ ) . '/../vendor/autoload.php'; | |
| use Sabre\VObject\Component\VCalendar; | |
| // Create a message | |
| $message = Swift_Message::newInstance ( 'Message Title' ) | |
| ->setFrom ( array( '[email protected] ' => 'John Doe' ) ) | |
| ->setTo ( array( $email ) ) | |
| ->setSubject ( "Cool message subject" ) |
| #!/bin/bash | |
| ### BEGIN INIT INFO | |
| # Provides: redmine | |
| # Required-Start: $all | |
| # Required-Stop: $all | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: redmine webrick | |
| # Description: redmine webrick server autostart-script | |
| ### END INIT INFO |