Skip to content

Instantly share code, notes, and snippets.

@aaronstaves
Created May 3, 2011 15:36
Show Gist options
  • Save aaronstaves/953556 to your computer and use it in GitHub Desktop.
Save aaronstaves/953556 to your computer and use it in GitHub Desktop.
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
GIT_PS1_SHOWDIRTYSTATE=1
export GIT_PS1_SHOWDIRTYSTATE
GIT_PS1_SHOWSTASHSTATE=1
export GIT_PS1_SHOWSTASHSTATE
GIT_PS1_SHOWUNTRACKEDFILES=1
export GIT_PS1_SHOWUNTRACKEDFILES
. /etc/bash_completion.d/git
@aaronstaves
Copy link
Author

<<<<<<< HEAD
// try loading session from signed_request in $_REQUEST
$signedRequest = $this->getSignedRequest();
if ($signedRequest) {
// sig is good, use the signedRequest
$session = $this->createSessionFromSignedRequest($signedRequest);

}

// try loading session from signed_request in $_REQUEST
 $signedRequest = $this->getSignedRequest();

error_log(json_encode($signedRequest));
if ($signedRequest) {
error_log('signed request');
if (!isset($signedRequest['user_id'])) {
error_log('no user id in request, null');
return null;
}
// sig is good, use the signedRequest
error_log('create session from request');
$session = $this->createSessionFromSignedRequest($signedRequest);
}

ede1945... added fields to redemption reports

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment