Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am ludolphus on github.
  • I am ludolphus (https://keybase.io/ludolphus) on keybase.
  • I have a public key whose fingerprint is EA5D 8B0B 297B D97D E93B 5F01 3B11 074B E35D 1F61

To claim this, I am signing this object:

@ludolphus
ludolphus / gist:8b0b8ae67f77017eb3f9
Created August 28, 2014 16:12
CKfinder and CakePHP session, (file browser is disabled for security reasons)
// Session name for CakePHP is set in core.php:
Configure::write('Session.cookie', ‘[CUSTOM_SESSION_NAME]’);
// Following assumes that sessions are stored according to cake specification (in APP/tmp/sessions)
// Set in core.php:
Configure::write('Session', array(
'defaults' => 'cake'
));
@ludolphus
ludolphus / gist:4444875
Last active December 10, 2015 13:58
Ajax user dropdown for querying one or more users from app.net api
/*
based on the work done by app.net on https://omega.app.net
Part of the code I use in ANAC (AppNet API Console), http://console-app.net/
get http://ivaynberg.github.com/select2/ and place in <head></head>:
<link rel="stylesheet" type="text/css" href="/css/select2.css" />
<script type="text/javascript" src="/js/select2.min.js"></script>