Skip to content

Instantly share code, notes, and snippets.

View jmikola's full-sized avatar
💭
🌭

Jeremy Mikola jmikola

💭
🌭
View GitHub Profile
@stbuehler
stbuehler / fix_umask.c
Created January 21, 2014 13:38
Workaround sublime text 3 umask bug, always adding 0022 to the mask (deny write to group/others) with LD_PRELOAD hack.
/*
compile with:
gcc -shared -fPIC fix_umask.c -o fix_umask.so
edit /usr/bin/subl to include (fix the path to fix_umask.so if necessary):
#!/bin/sh
export LD_PRELOAD=/opt/sublime_text/fix_umask.so
exec /opt/sublime_text/sublime_text "$@"
@funkatron
funkatron / foo.php
Created February 29, 2012 17:10
Half-done features in PHP, pt 1
<?php
$app->foo = function() { echo 'test'; die;};
$app->foo(); // ERROR
$f = $app->foo;
$f(); // SUCCESS