I hereby claim:
- I am huyphan on github.
- I am hphan (https://keybase.io/hphan) on keybase.
- I have a public key whose fingerprint is 0311 B2AA FF4F E772 470D 09DA 2E4D 544B 7047 A53C
To claim this, I am signing this object:
# Delete the index if exists | |
$ curl -XDELETE "http://localhost:9200/sample" | |
{"acknowledged":true} | |
# Create "sample" index, with standard analyzer using comma character for tokenizing | |
$ curl -XPUT "http://localhost:9200/sample" -d ' | |
{ | |
"settings" : { | |
"index" : { | |
"analysis" : { |
Build target NAKL | |
ProcessInfoPlistFile /Users/nmstech/Library/Developer/Xcode/DerivedData/NAKL-dpardqrwpmjiuhgivowjjbhyjpab/Build/Products/Debug/NAKL.app/Contents/Info.plist NAKL/NAKL-Info.plist | |
cd "/Users/nmstech/Desktop/XUAN CUONG/huyphan-NAKL-e2c5b08" | |
builtin-infoPlistUtility /Users/nmstech/Desktop/XUAN\ CUONG/huyphan-NAKL-e2c5b08/NAKL/NAKL-Info.plist -genpkginfo /Users/nmstech/Library/Developer/Xcode/DerivedData/NAKL-dpardqrwpmjiuhgivowjjbhyjpab/Build/Products/Debug/NAKL.app/Contents/PkgInfo -expandbuildsettings -platform macosx -o /Users/nmstech/Library/Developer/Xcode/DerivedData/NAKL-dpardqrwpmjiuhgivowjjbhyjpab/Build/Products/Debug/NAKL.app/Contents/Info.plist | |
ProcessPCH /Users/nmstech/Library/Developer/Xcode/DerivedData/NAKL-dpardqrwpmjiuhgivowjjbhyjpab/Build/Intermediates/PrecompiledHeaders/NAKL-Prefix-eqokzgkoqclrkxaingnrhyfxcfrx/NAKL-Prefix.pch.pch NAKL/NAKL-Prefix.pch normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler | |
cd "/Users/nmstech/Desktop/XUAN CUONG/huyphan- |
$ ADD_JARS=../elasticsearch-hadoop-2.1.0.BUILD-SNAPSHOT/dist/elasticsearch-hadoop-2.1.0.BUILD-SNAPSHOT.jar bin/spark-shell | |
### COMMAND ### | |
val tweet = Map("user" -> "kimchy", "post_date" -> "2009-11-15T14:12:12", "message" -> "trying out Elastic Search") | |
val tweets = sc.makeRDD(Seq(tweet)) | |
import org.apache.hadoop.io.{MapWritable, Text, NullWritable} | |
def toWritable(in: Map[String, String]) = { | |
val m = new MapWritable | |
for ((k, v) <- in) |
# NGINX CONFIGURATION | |
upstream reviewboard_uwsgi { | |
server localhost:8005; | |
} | |
server { | |
.... |
# -*- coding: utf-8 -*- | |
import logging | |
import pika | |
import json | |
import time | |
LOG_FORMAT = ('%(levelname) -10s %(asctime)s %(name) -30s %(funcName) ' | |
'-35s %(lineno) -5d: %(message)s') | |
LOGGER = logging.getLogger(__name__) | |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
I hereby claim:
To claim this, I am signing this object:
#include <iostream> | |
#include <cstdint> | |
using namespace std; | |
typedef uint8_t CHAR; | |
typedef uint16_t WORD; | |
typedef uint32_t DWORD; | |
typedef int8_t BYTE; |
#include <iostream> | |
#include <cstdint> | |
using namespace std; | |
typedef uint8_t CHAR; | |
typedef uint16_t WORD; | |
typedef uint32_t DWORD; | |
typedef int8_t BYTE; |
/proc/sys/kernel/yama/ptrace_scope
should be set to 0 (i.e. running echo 0 > /proc/sys/kernel/yama/ptrace_scope
as root) to allow attaching gdb to an existing process as non-root user.