Skip to content

Instantly share code, notes, and snippets.

View medcl's full-sized avatar
💭
We build tools, you change world.

Medcl medcl

💭
We build tools, you change world.
View GitHub Profile
entry:
- max_concurrency: 200000
router: my-router
name: my-entry
enabled: true
network:
binding: 0.0.0.0:8001
reuse_port: false
router:

Keybase proof

I hereby claim:

  • I am medcl on github.
  • I am medcl (https://keybase.io/medcl) on keybase.
  • I have a public key ASBNdtwb2H0qfu8VTzGEKwKAp7qhm-QBrSFIdUXGg79KKAo

To claim this, I am signing this object:

- Inexplicable perversity of human nature.
- The clever machinations of MongoDB's marketing people.
- The AGPL license killed it.
- We spent too long development before monetizing.
- Bad performance.
- Numeric types limited to a 64-bit `float`.
- Great product, but didn't/couldn't translate to revenue.
- Bad business model.
- Failure in timezones/timestamp nuances.
DIY drone [main Copter] [Unmanned Aerial Vehicle]
* Components
* * [core]
* * * Frames
* * * Motors
* * * Propellers
* * * ESCs
* * * FlightControl & IMU
* * * RC transmitter and receiver (4+ channel) [recommend FRSky]
{
"took": 26,
"timed_out": false,
"_shards": {
"total": 2,
"successful": 2,
"failed": 0
},
"hits": {
"total": 206,
@medcl
medcl / XLSX to ES
Created February 14, 2012 01:46 — forked from stratawing/XLSX to ES
Command Line Script to bulk load XLSX into ES
unzip -Uo 10k_records.xlsx xl/worksheets/sheet1.xml xl/sharedStrings.xml -d proc
cat proc/xl/sharedStrings.xml \
| sed -e 's/[^[:print:][:blank:][:space:]]/[?]/g' -e 's/|/-delim-/g' \
| mawk 'BEGIN {RS = "</t></si><si><t>|<si><t>|</t></si></sst>|</t></si><si><t xml:space=\"preserve\">"
FS = "999ABCDE"
OFS = "|"}
{ print NR - 2, $1 }' \
| LANG=C sort -f -t "|" -k1 \
| grep -v "<sst xmlns=\|<?xml version" \
@medcl
medcl / ElasticSearch.org.Website.Search.FieldNotes.markdown
Created January 17, 2012 07:15 — forked from karmi/ElasticSearch.org.Website.Search.FieldNotes.markdown
Field notes gathered during installing and configuring ElasticSearch for http://elasticsearch.org

ElasticSearch.org Website Search: Field Notes

These are field notes gathered during installation of website search facility for the ElasticSearch website.

You may re-use it to put a similar system in place.

The following assumes:

@medcl
medcl / __init__.py
Created January 6, 2012 02:31 — forked from ipconfiger/__init__.py
OAuth包,实现了sina,QQ,网易,搜狐的OAuth认证
# -*- Encoding: utf-8 -*-
import base64
import binascii
import cgi
import hashlib
import hmac
import logging
import time
import urllib
import urlparse
Method:POST,Status:INTERNAL_SERVER_ERROR,Url:127.0.0.1:9500/index_search_operatec758499e-36f5-41a0-b72d-a9f440571ed4/type/_search,
ReqData
{
"from": 0,
"size": 5,
"query": {
"constant_score": {
Url:127.0.0.1:9200/index_search_operate14894cbd-ec15-414f-a405-f329cc370b29/type/_search,
ReqData
{
"from": 0,
"size": 5,
"query": {
"constant_score": {