Skip to content

Instantly share code, notes, and snippets.

View jumping's full-sized avatar

Jumping Qu jumping

  • Shanghai, China
View GitHub Profile
jumping /
Created September 12, 2023 14:32 — forked from adrienbrault/
Run Llama-2-13B-chat locally on your M1/M2 Mac with GPU inference. Uses 10GB RAM. UPDATE: see
# Clone llama.cpp
git clone
cd llama.cpp
# Build it
make clean
# Download model
export MODEL=llama-2-13b-chat.ggmlv3.q4_0.bin
jumping / sender.go
Created January 31, 2023 07:30 — forked from douglasmakey/sender.go
Golang - send an email with attachments.
package main
import (
jumping / gh-check
Created May 29, 2022 23:42 — forked from lilydjwg/gh-check
gh-check: speed test to known GitHub IPs
import asyncio
import time
import socket
import argparse
import aiohttp
class MyConnector(aiohttp.TCPConnector):
jumping / nginx_proxy_s3
Last active October 30, 2019 05:10
nginx proxy request of object on 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 February 22, 2019 11:25
Not using context
package main
import (
jumping /
Last active January 29, 2019 03:20 — 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 August 1, 2018 23:04
install go tool for vscode
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 June 19, 2018 06:32 — 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 November 14, 2017 09:20 — forked from fernandoaleman/Linux Static IP
How To Configure Static IP On CentOS 6
## Configure eth0
# vi /etc/sysconfig/network-scripts/ifcfg-eth0