Skip to content

Instantly share code, notes, and snippets.

💭
I may be slow to respond.

Medcl medcl

💭
I may be slow to respond.
Block or report user

Report or block medcl

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View rethinkdb-failure-reasons-according-to-hn.md
- 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.
View DIYing drone [BOF]
DIY drone [main Copter] [Unmanned Aerial Vehicle]
* Components
* * [core]
* * * Frames
* * * Motors
* * * Propellers
* * * ESCs
* * * FlightControl & IMU
* * * RC transmitter and receiver (4+ channel) [recommend FRSky]
View gist:5ed9c542a1ac8e001988
#string should not around ""
#regex no need escape \
[DEFAULT]
ArrayStringSplitter: ,
GoProfEnabled: false
SplitByUrlParameter: p,pn,pid
[cluster]
View gist:b38c6107bafdaf0382fb
ERRORS:# command-line-arguments
./executor-5577006791947779410.go:21: cannot use config (type "_/Volumes/Document/github/go/graphite-ng/config".Main) as type "github.com/graphite-ng/graphite-ng/config".Main in function argument
./executor-5577006791947779410.go:30: cannot use ReadMetric("test.metric2") (type "github.com/graphite-ng/graphite-ng/chains".ChainEl) as type "_/Volumes/Document/github/go/graphite-ng/chains".ChainEl in assignment
./executor-5577006791947779410.go:34: cannot use dep_el (type "_/Volumes/Document/github/go/graphite-ng/chains".ChainEl) as type "github.com/graphite-ng/graphite-ng/chains".ChainEl in function argument
./executor-5577006791947779410.go:40: cannot use functions.ProcessDerivative(ReadMetric("test.metric1")) (type "github.com/graphite-ng/graphite-ng/chains".ChainEl) as type "_/Volumes/Document/github/go/graphite-ng/chains".ChainEl in assignment
./executor-5577006791947779410.go:44: cannot use dep_el (type "_/Volumes/Document/github/go/graphite-ng/chains".ChainEl) as type "githu
View gist:2184894
{
"took": 26,
"timed_out": false,
"_shards": {
"total": 2,
"successful": 2,
"failed": 0
},
"hits": {
"total": 206,
@medcl
medcl / XLSX to ES
Created Feb 14, 2012 — forked from stratawing/XLSX to ES
Command Line Script to bulk load XLSX into ES
View XLSX to 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" \
View ElasticSearch.org.Website.Search.FieldNotes.markdown

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 Jan 6, 2012 — forked from ipconfiger/__init__.py
OAuth包,实现了sina,QQ,网易,搜狐的OAuth认证
View __init__.py
# -*- Encoding: utf-8 -*-
import base64
import binascii
import cgi
import hashlib
import hmac
import logging
import time
import urllib
import urlparse
View gist:1527410
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": {
View gist:1527397
Url:127.0.0.1:9200/index_search_operate14894cbd-ec15-414f-a405-f329cc370b29/type/_search,
ReqData
{
"from": 0,
"size": 5,
"query": {
"constant_score": {
You can’t perform that action at this time.