Skip to content

Instantly share code, notes, and snippets.

View ckmaresca's full-sized avatar

Chris Maresca ckmaresca

View GitHub Profile
@ckmaresca
ckmaresca / gist:cc56d01bfc43b432e740
Created March 22, 2015 18:49
Call Slim route with parameters from within Slim
$app->post('/routePart/:param/anotherRoutePart', function ($param) {
// Code to call comes here
})->name('yourChoiceOfRouteName');
// Get route
$ourRoute = $app->router->getNamedRoute('yourChoiceOfRouteName');
// Set url params
$ourRoute->setParams(['param'=> $param]);
@ckmaresca
ckmaresca / google_auth_proxy
Last active August 29, 2015 14:08
Startup script for google_auth_proxy on Ubuntu
# /etc/defaults/google_auth_proxy
#
# configuration for google_auth_proxy
#
#
# environment variables
#
google_auth_client_id="yourclientid.apps.googleusercontent.com"
google_auth_secret="yourverysecretsecret"
google_auth_cookie_secret="yourrandomcookiesecret"