Skip to content

Instantly share code, notes, and snippets.

💭
Decentralizing...

Eric Muyser ericmuyser

💭
Decentralizing...
Block or report user

Report or block ericmuyser

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View tinymce config
@[id|class|style|title|dir<ltr?rtl|lang|xml::lang|onclick|ondblclick|onmousedown|onmouseup|onmouseover|onmousemove|onmouseout|onkeypress|onkeydown|onkeyup],a[rel|rev|charset|hreflang|tabindex|accesskey|type|name|href|target|title|class|onfocus|onblur],strong/b,em/i,strike,u,#p,-ol[type|compact],-ul[type|compact],-li,br,img[longdesc|usemap|src|border|alt=|title|hspace|vspace|width|height|align],-sub,-sup,-blockquote,-table[border=0|cellspacing|cellpadding|width|frame|rules|height|align|summary|bgcolor|background|bordercolor],-tr[rowspan|width|height|align|valign|bgcolor|background|bordercolor],tbody,thead,tfoot,#td[colspan|rowspan|width|height|align|valign|bgcolor|background|bordercolor|scope],#th[colspan|rowspan|width|height|align|valign|scope],caption,-div,-span,-code,-pre,address,-h1,-h2,-h3,-h4,-h5,-h6,hr[size|noshade],-font[face|size|color],dd,dl,dt,cite,abbr,acronym,del[datetime|cite],ins[datetime|cite],object[classid|width|height|codebase|*],param[name|value|_value],embed[type|width|height|src|*],script
View gist:777214
# Example MySQL config file for medium systems.
#
# This is for a system with little memory (32M - 64M) where MySQL plays
# an important part, or systems up to 128M where MySQL is used together with
# other programs (such as a web server)
#
# You can copy this file to
# /etc/my.cnf to set global options,
# mysql-data-dir/my.cnf to set server-specific options (in this
# installation this directory is /Applications/MAMP/db/mysql) or
View gist:840169
deb http://http.us.debian.org/debian/ squeeze main contrib non-free
deb-src http://http.us.debian.org/debian/ squeeze main contrib non-free
deb http://security.debian.org/ squeeze/updates main contrib
deb-src http://security.debian.org/ squeeze/updates main contrib
deb http://php53.dotdeb.org stable all
deb http://packages.dotdeb.org stable all
deb-src http://php53.dotdeb.org stable all
deb-src http://packages.dotdeb.org stable all
View gist:840183
server {
listen 80; ## listen for ipv4
server_name mysite.com;
access_log /var/log/nginx/localhost.access.log;
location / {
root /home/myuser/mysite/www;
index index.php;
View gist:844675
(function() {
function add(name, method) {
if( !Date.prototype[name] ) {
Date.prototype[name] = method;
}
};
add("isLeapYear", function() {
var y = this.getFullYear();
return (y%4==0 && y%100!=0) || y%400==0;
View gist:845412
var jsdom = require('jsdom');
var window = jsdom.jsdom().createWindow();
jsdom.jQueryify(window, 'http://google.com/', function() {
console.log('works');
});
View gist:845453
npm install html5
git clone https://github.com/aredridel/html5.git
cd html5
node example.js
View gist:845491
var request = require('request');
request({uri:'http://eric.muyser.com/test/'}, function (error, response, body) {
console.log(body);
});
View gist:845492
var request = require('request');
request({uri:'http://eric.muyser.com/test/'}, function (error, response, body) {
console.log(body);
});
View gist:846943
$q1 = $application->db->createQuery('
select x
from Brain\Models\Blog x
where x.updated_at < :start_time
and x.state != :processing
order by x.updated_at
')->setMaxResults(1);
$q1->setParameters(array(
'start_time' => '1000-00-00 00:00:00',
You can’t perform that action at this time.