Skip to content

Instantly share code, notes, and snippets.

View quantjin's full-sized avatar

QuantJin quantjin

View GitHub Profile
@quantjin
quantjin / hadoop.md
Last active August 29, 2015 14:21
Hadoop ecosystem configuration
export HADOOP_CLASSPATH=$(cygpath -pw $(hadoop classpath)):$HADOOP_CLASSPATH

Hive

bin/hive -hiveconf java.io.tmpdir=/tmp
@quantjin
quantjin / dumpbin.md
Created May 13, 2015 04:06
use dumpbin to generate .lib from .dll

from this blog

dumpbin /exports C:\yourpath\yourlib.dll
ordinal hint RVA      name

1 0 00017770 jcopy_block_row
@quantjin
quantjin / cmake.md
Last active August 29, 2015 14:20
cmake

gcc link flag:

SET (CMAKE_SHARED_LINKER_FLAGS "-undefined dynamic_lookup") 
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Hadoop Main ................................ SUCCESS [4.711s]
[INFO] Apache Hadoop Project POM ......................... SUCCESS [2.560s]
[INFO] Apache Hadoop Annotations ......................... SUCCESS [3.058s]
[INFO] Apache Hadoop Assemblies .......................... SUCCESS [0.265s]
[INFO] Apache Hadoop Project Dist POM .................... SUCCESS [3.419s]
[INFO] Apache Hadoop Maven Plugins ....................... SUCCESS [5.777s]

install node-gyp globally

$ sudo npm install node-gyp -g

download and build hello world example

$ npm install
@quantjin
quantjin / mysql&c data types.md
Last active August 29, 2015 14:18
MySQL&C data types
Type Storage Minimum Value Maximum Value
(Bytes) (Signed/Unsigned) (Signed/Unsigned)
TINYINT 1 -128 127
0 255
SMALLINT 2 -32768 32767
0 65535
MEDIUMINT 3 -8388608 8388607
0 16777215
INT 4 -2147483648 2147483647
@quantjin
quantjin / publish.md
Last active August 29, 2015 14:15
publish
  • update package.json version and run test locally
npm test
  • commit and push
git commit -am "message"
@quantjin
quantjin / ssh.md
Last active August 29, 2015 14:02
ssh
ssh -i key.pem user@host:port
@quantjin
quantjin / git config.md
Last active August 29, 2015 14:02
git config
git config --global user.email "me@here.com"
git config --global user.name "Billy Everyteen"