Skip to content

Instantly share code, notes, and snippets.

View quantjin's full-sized avatar

QuantJin quantjin

View GitHub Profile
@quantjin
quantjin / tar.md
Last active November 2, 2016 04:05
tar command
  • Compress
tar cvzf win32-ia32.tar.gz quantlib.node
  • Extract
tar -xvf filename.tar
tar -zxvf filename.tgz
@quantjin
quantjin / c9 git config
Last active August 29, 2015 13:57
Github Organization Reop Setup for C9
clone from URL:
git@github.com:mementojs/memento.git
.git/config
[core]
repositoryformatversion = 0
filemode = true
bare = false
@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"
@quantjin
quantjin / ssh.md
Last active August 29, 2015 14:02
ssh
ssh -i key.pem user@host:port
@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 / 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

install node-gyp globally

$ sudo npm install node-gyp -g

download and build hello world example

$ npm install
[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]
@quantjin
quantjin / cmake.md
Last active August 29, 2015 14:20
cmake

gcc link flag:

SET (CMAKE_SHARED_LINKER_FLAGS "-undefined dynamic_lookup")