Skip to content

Instantly share code, notes, and snippets.

View JasonBarnabe's full-sized avatar

Jason Barnabe JasonBarnabe

  • Grande Pointe, MB
View GitHub Profile
function GreasyforkProxy(reference) {
return new Proxy(function() {}, {
get: function(obj, prop) {
switch(prop) {
case 'setTimeout':
case 'setInterval':
return function() { arguments[0](); }
case 'addEventListener':
return function() { arguments[1](new GreasyforkProxy(['(event)'])); }
case Symbol.toPrimitive:
Version : 5.0.18
Date : 2015-09-27 23:34:53 +0000
Instance: 8MvPlgUW (nginx/1.8.0 Phusion_Passenger/5.0.18)
Thread 'Main thread' (0x7f5e772e57e0, LWP 17309):
in 'void waitForExitEvent()' (CoreMain.cpp:850)
in 'void mainLoop()' (CoreMain.cpp:743)
in 'int runCore()' (CoreMain.cpp:969)
Thread 'Pool analytics collector' (0x7f5e772c2700, LWP 17309):
<html>
<body>
<script>
<!--
// Content is code at http://ace.c9.io/#nav=embedding
iframeContent = '<!DOCTYPE html>\n<html lang="en">\n<head>\n<title>ACE in Action</title>\n<style type="text/css" media="screen">\n #editor { \n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n }\n</style>\n</head>\n<body>\n\n<div id="editor">function foo(items) {\n var x = "All this is syntax highlighted";\n return x;\n}</div>\n \n<script src="http://ace.c9.io/build/src/ace.js" type="text/javascript" charset="utf-8"></script>\n<script>\n var editor = ace.edit("editor");\n editor.setTheme("ace/theme/monokai");\n editor.getSession().setMode("ace/mode/javascript");\n</script>\n</body>\n</html>';
iframeDataUri = 'data:text/html;charset=utf-8,<%21DOCTYPE%20html>%0D%0A<html%20lang%3D"en">%0D%0A<head>%0D%0A<title>ACE%20in%20Action<%2Ftitle>%0D%0A<style%20type%3D"text%2Fcss"%20media%3D"screen">%0D%0A%20%20%20%20%23editor%20%7B%20%0D%0A%20%20%20%20%20%20%20%20
@JasonBarnabe
JasonBarnabe / gist:b614e2110aa0491e8772
Last active August 29, 2015 14:12
500 invoices in quickbooks
<?xml version="1.0" ?><QBXML><QBXMLMsgsRs><InvoiceQueryRs statusCode="0" statusSeverity="Info" statusMessage="Status OK" iteratorRemainingCount="35234" iteratorID="{88603b7a-f232-4d04-b595-c6e8d1f0bfa7}"><InvoiceRet><TxnID>5B464-1115242596</TxnID><TimeCreated>2005-05-04T16:36:36-06:00</TimeCreated><TimeModified>2005-06-02T11:29:48-06:00</TimeModified><EditSequence>1115242596</EditSequence><TxnNumber>58100</TxnNumber><CustomerRef><ListID>103A0000-1098371214</ListID><FullName>Example Example</FullName></CustomerRef><ARAccountRef><ListID>300000-1007487547</ListID><FullName>Example Example</FullName></ARAccountRef><TemplateRef><ListID>10000-1007482534</ListID><FullName>Example Example</FullName></TemplateRef><TxnDate>2005-04-29</TxnDate><RefNumber>26-1005</RefNumber><BillAddress><Addr1>Example Example</Addr1><Addr2>Example Example</Addr2><City>Example Example</City><State>MB</State><PostalCode>00000</PostalCode></BillAddress><BillAddressBlock><Addr1>Example Example</Addr1><Addr2>Example Example</Addr2><Addr3>Exam
@JasonBarnabe
JasonBarnabe / gist:7862509
Last active December 30, 2015 17:39
Valgrind results for http://stackoverflow.com/questions/20385767/finding-the-cause-of-a-memory-leak-in-ruby valgrind --partial-loads-ok=yes --undef-value-errors=no --leak-check=full --fullpath-after= ruby leak.rb 2> valgrind.txt
This file has been truncated, but you can view the full file.
==27957== Memcheck, a memory error detector
==27957== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==27957== Using Valgrind-3.9.0 and LibVEX; rerun with -h for copyright info
==27957== Command: ruby leak.rb
==27957==
==27957== Warning: set address range perms: large range [0x39fe0028, 0x52fe0058) (noaccess)
==27957==
==27957== HEAP SUMMARY:
==27957== in use at exit: 112,762,955 bytes in 1,885,835 blocks
==27957== total heap usage: 1,963,235 allocs, 77,400 frees, 1,576,700,395 bytes allocated
This file has been truncated, but you can view the full file.
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document regexp("https?://www\\.google(\\.com?)?(\\.[a-z][a-z])?/(|webhp\\?.*)") {
body#gsr
{
background:url(data:image/jpeg;base64,/9j/4SerRXhpZgAATU0AKgAAAAgACgESAAMAAAABAAAAAAITAAMAAAABAAEAAAEaAAUAAAABAAABjgEbAAUAAAABAAABlgEoAAMAAAABAAIAAAEyAAIAAAAUAAABngEPAAIAAABkAAABsgEQAAIAAABkAAACFodpAAQAAAABAAACeoglAAQAAAABAAAFmgAABxQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABIAAAAAQAAAEgAAAABMjAxMToxMjowNyAxNDozODo1OABtb3Rvcm9sYQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB1RFJPSUQzAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA