Skip to content

Instantly share code, notes, and snippets.

View dzoba's full-sized avatar

Chris Dzoba dzoba

View GitHub Profile
cl_course={
"2886":"0610","4745":"0602","4993":"0530","5063":"0603","5104":"0529","5154":"0529","5277":"0610"
}
;
optimizelyEndUserId=oeu1391645031336r0.7247288506478071;
cc=168427983-52f3d35832e8c7.44166122;
cl={
"preroll":1
}
;
➜ other code ./msquare +RTS -N4 -s
[[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]]
85,206,079,928 bytes allocated in the heap
187,187,352 bytes copied during GC
173,912 bytes maximum residency (13 sample(s))
58,568 bytes maximum slop
4 MB total memory in use (0 MB lost due to fragmentation)
Tot time (elapsed) Avg pause Max pause
Gen 0 56103 colls, 56103 par 12.67s 0.66s 0.0000s 0.0021s
#logo {
display: none;
}
@dzoba
dzoba / vagrantdisk.md
Created October 21, 2015 23:23
Updating Vagrant Disk Size
  1. Download the gParted .iso http://gparted.org/download.php

  2. vagrant halt your machine

  3. Open vmware fusion, go to machine settings, select the disk drive and point it to the gParted .iso

  4. In machine settings, change your disk size to whatever you want

  5. Save settings, boot the machine

@dzoba
dzoba / clearSlack.js
Last active December 16, 2015 04:48
Slack doesn't provide an easy way to clear general channel history
// 1) Install this plugin:
// https://chrome.google.com/webstore/detail/custom-javascript-for-web/poakhlngfciodnhlhhgnaaelnpjljija/related?hl=en
// 2) Go to this page:
// https://my.slack.com/archives/general
// 3) Use this code:
setTimeout(function() {
$('.moscow_red.cursor_pointer').click()
@dzoba
dzoba / tracking.brs
Created January 7, 2016 00:11
Communicating With Segment.io Via Brightscript on the Roku
sub Main()
mport = CreateObject("roMessagePort")
roUrlTransfer = CreateObject("roUrlTransfer")
roUrlTransfer.AddHeader("Authorization", "Basic <BASE 64 ENCODED SEGMENT WRITE KEY>")
roUrlTransfer.AddHeader("Accept", "application/json")
roUrlTransfer.AddHeader("Content-Type", "application/json")
roUrlTransfer.EnablePeerVerification(false)
roUrlTransfer.EnableHostVerification(false)
➜ blah2 git:(master) ✗ reapp run
Your app is running on http://localhost:3010
Building with Webpack...
Autoprefixer's process() method is deprecated and will removed in next major release. Use postcss([autoprefixer]).process() instead
Hash: e7a0ecca8234160f7032
Version: webpack 1.13.0
Time: 3023ms
Asset Size Chunks Chunk Names
main.js 2.79 MB 0 [emitted] main
<FormControl componentClass="select" multiple value="['other1', 'other2']">
<option value="other1">other1</option>
<option value="other2">other2</option>
<option value="other3">other3</option>
<option value="other4">other4</option>
<option value="other5">other5</option>
</FormControl>
@dzoba
dzoba / killAllListeners.js
Created February 6, 2020 02:03
Snippet to remove all event listeners from a page
for (let i in getEventListeners(document)) {
let eventsByType = getEventListeners(document)[i];
eventsByType.forEach((event) => {
document.removeEventListener(i, event.listener)
})
}