Skip to content

Instantly share code, notes, and snippets.

View leedavis81's full-sized avatar

Lee Davis leedavis81

View GitHub Profile
@leedavis81
leedavis81 / elephpants_charity_sale.asciidoc
Last active January 31, 2021 15:42
PHP Elephpant Charity Sale

PHP Elephpant Charity Sale

Table of Contents

What’s this?

October 19th
------------
08:30 - 10:00 Keynote
10:15 - 11:15 Create PHPantastic packages - Matthew Weier O'Phinney
11:30 - 12:30 Building tools people love to use - Taylor Otwell
13:30 - 14:30 Keynote
14:45 - 15:45 Asynchronous programming in PHP - Adam Englander
16:00 - 17:00 Kicking off with Zend Expressive and Doctrine ORM - James Titcumb
17:15 - 18:15 PHP internal architecture - Elizabeth Smith
tag_release=$(curl -s https://{user}:{key}@api.github.com/repos/{org}/{repo}/releases/latest | grep -Po '"tag_name":.*?[^\\]",' | perl -pe 's/"tag_name"://; s/"//; s/",$//' | xargs)
have_an_update() {
if [ ! -f "$version_file" ]
then
return 0
fi
Verifying that +leedavis81 is my blockchain ID. https://onename.com/leedavis81
First thing it asks you to do to get started, is globally install their CLI tool. I don't want to, I like my stuff contained!
... trys to get the laravel installer contained within a directory ..
I give in and install it globally, then use the larval install method to create a project, then...
composer bombs out with a github throttling issues due to the vast amounts of dependencies that come down. So it needs a key, I give it one.
I paste in, but don't see the Token (Hidden) text and assume my paste didn't work. I copy again, paste, copy, paste realise what i've done, try and clear the hidden field. Then, meh, hit enter. Do the process again, succeeds. Until this handy error occurs....
@leedavis81
leedavis81 / gist:fa4989440dfa8aa20eb6
Last active August 29, 2015 14:23
.basrc shell prompt (PS1)
if [ $(id -u) -eq 0 ];
then
PS1="\[$bold\]\[$dk_blue\]\@\[$black\] \[$red\]\u\[$yellow\]@\[$green\]\h\[$pink\]:\w\[$reset\] $ "
else
PS1="\[$bold\]\[$dk_blue\]\@\[$black\] \[$green\]\u\[$yellow\]@\[$green\]\h\[$pink\]:\w\[$reset\] $ "
fi
Hi Lee,
It was a cold day, Gustav arrived for his first day at work clutching his laptop and some books on the Zend framework. His past nights had been disturbed by the 'Tetris effect', lines of pure code produced by his unconscious mind in his sleep, dropping down, one atop the other, leaving him in somewhat of a half awake, half asleep state throughout the nights. His world view was formed through code, indeed giving him great insight, yet leaving him somewhat distant from those around him.
He was starting to question his sanity. A formidable PHP Zend coder, instead of taking rest in its conventional sense, his mind would be occupied with thoughts on RESTful services, instead of using soap in the bath, he would be comparing SOAP with RESTful services. He took a single bite on a pear, the only food he had eaten in two weeks, and instantly started thinkng of PEAR and PECL extensions. Instead of eating, he would usually be coding, his natural hunger instinct shut off from the deep levels of focus that
<?php
function retry($retries, callable $fn)
{
while (true)
{
try {
return $fn();
} catch (\Exception $e) {
if (!$retries) {
throw new \Exception('', 0, $e);
<?php
function igorRetry($retries, callable $fn)
{
beginning:
try {
return $fn();
} catch (\Exception $e) {
if (!$retries) {
throw new \Exception('', 0, $e);
}
; Sample supervisor config file.
;
; For more information on the config file, please see:
; http://supervisord.org/configuration.html
;
; Note: shell expansion ("~" or "$HOME") is not supported. Environment
; variables can be expanded using this syntax: "%(ENV_HOME)s".
[unix_http_server]
file=/tmp/supervisor.sock ; (the path to the socket file)