Skip to content

Instantly share code, notes, and snippets.

@eugeneware
eugeneware / mmap-problem.c
Created February 17, 2014 05:39
mmap problem with vboxfs
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/mman.h>
int main (int argc, char *argv[])
{
struct stat sb;
Σ npm-fullfat-registry master$ forever ./bin/fullfat.js --fat=http://admin:password@localhost:5985/registry --skim=http://admin:password@localhost:5984/registry -t ./tmp -q seqFile.seq -m ./missing.log -i 360000000
warn: --minUptime not set. Defaulting to: 1000ms
warn: --spinSleepTime not set. Your script will exit if it does not stay up for at least 1000ms
START npm FullFat/1.1.4 node/v0.10.26 pid=44769
3: Reston
-> Reston-0.2.0.tgz
-> Reston-0.1.1.tgz
<- Reston-0.2.0.tgz
<- Reston-0.1.1.tgz
PUT Reston
@eugeneware
eugeneware / gist:0c98e5a43d285fc4c42f
Last active August 29, 2015 14:01
Youtube autoplay embed code
<iframe frameborder="0" allowfullscreen="" height="478" width="850" src="https://www.youtube.com/embed/nD2iOABeDwc?autoplay=1&amp;controls=0&amp;rel=0&amp;enablejsapi=1&amp;wmode=opaque&amp;disablekb=1&amp;hd=1&amp;modestbranding=1&amp;showinfo=0&amp;showsearch=0&amp;origin=http%3A%2F%2Fcontent.scarcitysamurai.com"></iframe>
var expect = require('expect.js'),
util = require('util'),
rimraf = require('rimraf'),
level = require('level'),
path = require('path'),
range = require('range').range,
after = require('after'),
timestamp = require('monotonic-timestamp'),
through = require('through'),
Models = require('..');
var expect = require('expect.js'),
util = require('util'),
rimraf = require('rimraf'),
level = require('level'),
path = require('path'),
bytewise = require('bytewise'),
range = require('range').range,
after = require('after'),
timestamp = require('monotonic-timestamp'),
through2 = require('through2'),
@eugeneware
eugeneware / -
Created November 17, 2014 06:45
copying actionscript files...
copying air files...
building static actionscript library...
/Users/eugeneware/Dropbox/work/samuraiapp/builds/MarketSamurai/actionscript/static/com/adobe/serialization/json/JSONEncoder.as:159
Error: Implicit coercion of a value of type Number to an unrelated type String.
c = b.charCodeAt();
^
/Users/eugeneware/Dropbox/work/samuraiapp/builds/MarketSamurai/actionscript/static/com/adobe/serialization/json/JSONEncoder.as:161
Error: Implicit coercion of a value of type String to an unrelated type Number.
/* tools/../src/node_root_certs.h -- Bundle of CA Root Certificates
*
* Certificate data from Mozilla as of: Sat Nov 9 22:37:55 2013
*
* This is a bundle of X.509 certificates of public Certificate Authorities
* (CA). These were automatically extracted from Mozilla's root certificates
* file (certdata.txt). This file can be found in the mozilla source tree:
* http://mxr.mozilla.org/mozilla/source/security/nss/lib/ckfw/builtins/certdata.txt?raw=1
*
* It contains the certificates in PEM format and therefore
@eugeneware
eugeneware / -
Created November 17, 2014 21:49
commit 09c51d5e40aa0f9084fdee5b73a18cb8e864985c
Author: Ben Noordhuis <info@bnoordhuis.nl>
Date: Sat Nov 9 23:46:05 2013 +0100
crypto: update root certificates
Update the list of root certificates in src/node_root_certs.h with
tools/mk-ca-bundle.pl and update src/node_crypto.cc to make use of
the new format.
@eugeneware
eugeneware / -
Created November 18, 2014 06:30
Process: adl [40612]
Path: /Users/USER/*/adl
Identifier: adl
Version: ???
Code Type: X86 (Native)
Parent Process: make [40564]
Responsible: iTerm [98820]
User ID: 501
Date/Time: 2014-11-18 17:30:07.878 +1100
@eugeneware
eugeneware / -
Created November 20, 2014 04:13
npm WARN package.json keyword-planner@0.1.0 No repository field.
> keyword-planner@0.1.0 install /Users/eugeneware/Dropbox/work/node-keyword-planner
> webdriver-manager update
selenium standalone is up to date.
chromedriver is up to date.
/Users/eugeneware/Dropbox/work/node-keyword-planner/node_modules/webdriver-manager/node_modules/adm-zip/zipFile.js:66
throw Utils.Errors.INVALID_FORMAT;