Skip to content

Instantly share code, notes, and snippets.

@odan
odan / openssl_encrypt_decrypt.md
Last active Mar 22, 2019
Replace mcrypt_encrypt with openssl_encrypt
@rap2hpoutre
rap2hpoutre / circle.yml
Created May 19, 2016
Circle CI example for Laravel
View circle.yml
machine:
timezone:
Europe/Paris
php:
version: 7.0.3
environment:
ENVIRONMENT: testing
DB_URL: 127.0.0.1
@pjdietz
pjdietz / AbstractFoo.php
Created Apr 30, 2015
Testing Protected Method of Abstract Class with PHPUnit
View AbstractFoo.php
<?php
namespace Minitest;
abstract class AbstractFoo
{
protected function bar()
{
return $this->baz();
}
@danmackinlay
danmackinlay / supervisord.sh
Created Aug 27, 2009
an init.d script for supervisord
View supervisord.sh
#! /bin/sh
### BEGIN INIT INFO
# Provides: supervisord
# Required-Start: $remote_fs
# Required-Stop: $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Example initscript
# Description: This file should be used to construct scripts to be
# placed in /etc/init.d.
You can’t perform that action at this time.