Skip to content

Instantly share code, notes, and snippets.


Aaron Heckmann aheckmann

View GitHub Profile
aheckmann /
Last active Aug 3, 2022
How to get rid of Solana spam NFTs
  1. Open a private tab
  2. Create a completely new wallet by visiting
  3. You will see a screen displaying "Create new wallet" and a list of seed words
  4. Copy the seed words
  5. Check the box next to "I have saved these words in a safe place."
  6. Click "DOWNLOAD BACKUP MNEMONIC FILE (REQUIRED)". This downloads your seed phrase. Delete this file.
  7. Click "continue"
  8. Paste the seed words when it asks you to, then click continue
  9. Click "Main Account" at the top of the screen to copy the new wallet address. This address is where you'll send your spam NFTs.
  10. Open your Phantom wallet (assuming you are using Phantom)
View await_thenables.js
'use strict';
// run using this fork of NodeJS
// (
// node --harmony_async_await await_thenables.js
function counter(count) {
return {
then: function(res, rej) {
View lru-cache-perf-issue-node4.js
var LRU = require('lru-cache');
var i = 0;
var sets = 0;
var start =;
var last =;
var max = 8193; // 8192 is the magic number upper perf limit of plain objects
var maxAge = 1000 * 60 * 60 * 24;
aheckmann / parallelism.js
Created Jan 28, 2015
configurable parallelism
View parallelism.js
* example of configurable parallelism
// silly counter
var i = 0;
// configurable amount of work to run in parallel
var max = 1;
aheckmann / gist:2647d4afe7d0bb760e49
Created Sep 12, 2014
connect to replset with mongo shell
View gist:2647d4afe7d0bb760e49
mongo -u USERNAME -p PASSWORD --host "REPLICA_SET_NAME/HOST:PORT" --authenticationDatabase DB_NAME
# after connected, you'll need to change the database
// db = db.getSiblingDB(DB_NAME);
aheckmann /
Last active Dec 30, 2015
bottleneck in amqp.js when publishing large numbers of messages using confirms. see

run this with > time DEBUG=amqp:* COUNT=30000 PREFETCH=0 BUCKET_SIZE=20000 node index.js

before applying the fix:

real  1m22.216s
user  1m10.973s
sys 0m16.106s
aheckmann / generator-fodder
Created Sep 17, 2013
some resources for understanding ES6 generators.
View generator-fodder
View driver-findAndModifyBug.js
var assert = require('assert')
var uri = 'mongodb://localhost/findAndModifyBug';
var mongo = require('mongodb')
console.log('driver version: %s', mongo.version);
mongo.connect(uri, function (err, db) {
if (err) throw err;
aheckmann / mongoose-cpu-load-test.js
Created Aug 28, 2013
tweak various mongoose settings to observe cpu impact.
View mongoose-cpu-load-test.js
* configuration
// connection pool size
var poolSize = 5;
// number of parallel queries
var n = 60;
View 1652.js
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var assert = require('assert')
console.log(' mongoose version: %s', mongoose.version);
var dbname = 'goosetest-1652';