Skip to content

Instantly share code, notes, and snippets.

View derekaug's full-sized avatar
🐢
festina lente

Derek J. Augustine derekaug

🐢
festina lente
View GitHub Profile
@derekaug
derekaug / session_end.php
Created September 19, 2014 17:03
Ends all active sessions on a site if using default PHP session handler.
<?php
$path = session_save_path();
if ($handle = opendir($path)) {
while (false !== ($entry = readdir($handle))) {
if('sess' == substr($entry, 0, 4)){
$file = $path . '/' . $entry;
unlink($file);
}
}
closedir($handle);
@derekaug
derekaug / gist:6391676
Last active December 22, 2015 00:48
Workaround for third party cookies in Safari...
<?php
// Start Session Fix
session_start();
$page_url = "http://www.facebook.com/pages/For-Testing/49209188225?sk=app_166147000244773";
if (isset($_GET["start_session"]))
{
die(header("Location:" . $page_url));
}
$sid = session_id();
if (!isset($_GET["sid"]))
X11
internal
libAppleWM.7.0.0.dylib
libAppleWM.7.dylib
libAppleWM.dylib
libAppleWM.la
libFS.6.0.0.dylib
libFS.6.dylib
libFS.dylib
libFS.la
bin/create_host
bin/create_sub
bin/create_svn_host
bin/freetype-config
bin/links
bin/php_help
bin/pstorm
include/freetype2/freetype/config/ftconfig.h
include/freetype2/freetype/config/ftheader.h
include/freetype2/freetype/config/ftmodule.h
@derekaug
derekaug / brew --config
Created April 19, 2013 16:48
brew --config for debugging
HOMEBREW_VERSION: 0.9.4
ORIGIN: https://github.com/mxcl/homebrew.git
HEAD: bbfb6d550ffb59b19aedd4f67721956f7bf83b49
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit sandybridge
OS X: 10.6.8-x86_64
Xcode: 3.2.6
GCC-4.0: build 5494
GCC-4.2: build 5666