Skip to content

Instantly share code, notes, and snippets.

View jeroenmoors's full-sized avatar

Jeroen Moors jeroenmoors

View GitHub Profile
### Keybase proof
I hereby claim:
* I am jeroenmoors on github.
* I am jeroenmoors (https://keybase.io/jeroenmoors) on keybase.
* I have a public key whose fingerprint is 926F 226F 83E0 0E48 C605 BB9C 3B3C 9241 4641 8549
To claim this, I am signing this object:
<?php
include "ring.php";
$username = 'YOUR EMAIL ADDRESS HERE';
$password = 'YOUR RING.COM PASSWORD HERE';
$bell = new Ring();
print "Authenticating...\n";
$bell->authenticate($username, $password);
@jeroenmoors
jeroenmoors / oauth.php
Last active December 30, 2015 11:59
CodeIgniter oAuth example
<?php
/*
Step 1: Initiate the authentication
*/
// Load the library
$this->load->library(array('oauthclient'));
// Set the service: facebook, twitter or linkedin
$this->oauthclient->setService("facebook");
@jeroenmoors
jeroenmoors / phprados_read_data.php
Created December 6, 2013 14:27
phprados: read data from the Ceph cluster.
<?php
// Adapt with your cluster settings
$mon_host = "172.16.0.2";
$key = "__YOUR_KEY_GOES_HERE__";
$pool = "mycluster";
// Create a new objectn";
$rados = new Rados();
// Connect to the cluster
@jeroenmoors
jeroenmoors / phprados_write_data.php
Last active December 30, 2015 11:49
phprados: write data
<?php
// Adapt with your cluster settings
$mon_host = "172.16.0.2";
$key = "__YOUR_KEY_GOES_HERE__";
$pool = "mycluster";
// Create a new objectn";
$rados = new Rados();
// Connect to the cluster
<?php setId($userId, $rememberMe = false); ?>