Skip to content

Instantly share code, notes, and snippets.


Jumping Qu jumping

  • Shanghai, China
View GitHub Profile
jumping / gh-check
Created May 29, 2022 — forked from lilydjwg/gh-check
gh-check: speed test to known GitHub IPs
View gh-check
import asyncio
import time
import socket
import argparse
import aiohttp
class MyConnector(aiohttp.TCPConnector):
jumping / nginx_proxy_s3
Last active Oct 30, 2019
nginx proxy request of object on s3
View nginx_proxy_s3
listen 80;
location / {
#rewrite ^([^.]*[^/])$ $1/ permanent;
proxy_http_version 1.1;
proxy_set_header Connection "";
import os
import sys
from functools import wraps
import gevent
import six
sys.stderr = open(os.devnull, 'w')
jumping / main.go
Created Feb 22, 2019
Not using context
View main.go
package main
import (
jumping /
Last active Jan 29, 2019 — forked from bradmontgomery/
a minimal http server in python. Responds to GET, HEAD, POST requests, but will fail on anything else.
#!/usr/bin/env python
Very simple HTTP server in python.
./ [<port>]
Send a GET request::
curl http://localhost
jumping / install-go-tool
Created Aug 1, 2018
install go tool for vscode
View install-go-tool
go get -u -v
go get -u -v
go get -u -v
go get -u -v
go get -u -v
go get -u -v
go get -u -v
go get -u -v
go get -u -v
go get -u -v
jumping /
Created Jun 19, 2018 — forked from epiphani/
Getting Tez enabled on CDH5.4+

So Hive in CDH is horribly, painfully slow. Cloudera ships Hive 1.1, which is actually moderately modern. It is, however, very badly configured out of the box and patched with custom code from Cloudera. With a bit of effort, we managed to improve hive performance considerably. We really shouldn't have to do this, but Cloudera is actively working against supporting a performant Hive.

First, building Tez was fairly straightforward. Using the instructions at, the only change was to use the version string "2.6.0" for the build. I believe that was the default. Don't use the CDH string, it won't work.

At the bottom of the installation instructions, there's mention of the fact that to use the local hadoop jars (rather than those packaged with tez) you must unpack the jars in HDFS rather than using the tarball. In this case, unpack the tez-minimal tarball and upload the contents to /apps/tez-0.7.0 (or whatever you prefer). Don't fo

jumping / Linux Static IP
Created Nov 14, 2017 — forked from fernandoaleman/Linux Static IP
How To Configure Static IP On CentOS 6
View Linux Static IP
## Configure eth0
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
jumping /
Last active Nov 2, 2017
nvm inital script
#!/usr/bin/env bash
{ # this ensures the entire script is downloaded #
nvm_has() {
type "$1" > /dev/null 2>&1
if [ -z "$NVM_DIR" ]; then
View emr_spark_thrift_on_yarn
#on cluster
thrift /spark/sbin/ --master yarn-client
#ssh tunnel, direct 10000 to unused 8157
ssh -i ~/caserta-1.pem -N -L
#see this for JDBC config on client