Skip to content

Instantly share code, notes, and snippets.

@mattness
mattness / absolute.dat
Created July 8, 2012 16:32
Node zlib memory test
# Run # RSS # Heap Total # Heap Used
0 9449472 6131200 2767128
1 10514432 6131200 3352216
2 10633216 6131200 3528552
3 10829824 6131200 3587912
4 10899456 6131200 3626688
5 11804672 6131200 3705432
6 11804672 6131200 3742112
7 11853824 6131200 3788568
@mattness
mattness / Vagrantfile
Created January 15, 2016 07:44
cent-node-dev
# -*- mode: ruby -*-
# vi: set ft=ruby :
current_user = ENV['USER'] || ENV['USERNAME']
Vagrant.configure(2) do |config|
config.vm.box = 'bento/centos-6.7'
config.vm.provider 'virtualbox' do |vb|
vb.name = 'cent-node-dev'
@mattness
mattness / functions.js
Created January 29, 2016 04:26
Anonymous vs Named functions in backtraces
var EventEmitter = require('events').EventEmitter;
var e = new EventEmitter();
e.on('something', function() {
throw new Error('anonymous function crash');
});
e.on('something_else', function foo() {
throw new Error('named function crash');
});
@mattness
mattness / 01_artifact
Last active August 2, 2016 22:06
Artifact Point Costs
100
300
325
350
375
400
425
450
525
625
@mattness
mattness / cvars.xml
Created October 26, 2017 20:06
Destiny 2 CVARS
<?xml version="1.0"?>
<body>
<namespace name="graphics">
<cvar name="force_auto_detect" value="0" />
<cvar name="force_enable_multi_threaded_render_submit" value="0" />
<cvar name="window_position_x" value="8" />
<cvar name="window_position_y" value="31" />
<cvar name="window_mode" value="3" />
<cvar name="vsync_mode" value="1" />
<cvar name="anti_aliasing_mode" value="2" />