Skip to content

Instantly share code, notes, and snippets.

Geoffrey Hoffman phpguru

Block or report user

Report or block phpguru

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
gubatron /
Last active Nov 1, 2019
How to configure multiple deploy keys for different private github repositories on the same computer without using ssh-agent

Let's say alice is a user, with 2 or more private repositories repoN. For this example we'll work with just two repositories named repo1 and repo2

You need to be to pull from these repositories without entering a passwords probably on a server, or on multiple servers. You want to perform git pull origin master for example, and you want this to happen without asking for a password.

mnapoli / optional singleton pattern.php
Last active Dec 15, 2015
"Optional singleton" pattern
View optional singleton pattern.php
// See also
class MyService
private static $singletonInstance = null;
* Keep the constructor public
josiahcarlson /
Created Jun 24, 2011
A way of implementing a poll-based chat inside Redis
Written June 24, 2011 by Josiah Carlson
Released under the GNU GPL v2
Other licenses may be available upon request.
You can’t perform that action at this time.