Skip to content

Instantly share code, notes, and snippets.

View jinleileiking's full-sized avatar
🐰
Gopher, Rubist, Phper, Now learning Rust, Linuxer, Vimer, Father of 2 girl

jinleileiking jinleileiking

🐰
Gopher, Rubist, Phper, Now learning Rust, Linuxer, Vimer, Father of 2 girl
View GitHub Profile
@AdheipSingh
AdheipSingh / druid-pay.yaml
Last active August 28, 2020 19:07
druid-pay.yaml
apiVersion: druid.apache.org/v1alpha1
kind: Druid
metadata:
name: cluster
spec:
podAnnotations:
iam.amazonaws.com/role: arn:aws:iam::91243143143423403742:role/my-role
env:
- name: AWS_REGION
value: ap-south-1
@rajkrrsingh
rajkrrsingh / Hive_Client_using_Go_Lang.md
Last active September 27, 2020 07:44
sample Hive Client implemented in GoLang to connect to hiveserver2

for more information on golang hive driver, please refer https://github.com/beltran/gohive

Sample Table
create table test (id int);
insert into table test values (1),(2),(3),(4),(5);
select * from test;
1
2
3
4
@doublerebel
doublerebel / your_test.go
Last active March 11, 2024 11:34 — forked from epelc/your_test.go
Use pflags and regular `go test` flags in your tests
package yourpackage
import (
goflag "flag"
"fmt"
"os"
"strings"
"testing"
flag "github.com/spf13/pflag"
@willurd
willurd / web-servers.md
Last active March 26, 2024 18:11
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@UniIsland
UniIsland / SimpleHTTPServerWithUpload.py
Created August 14, 2012 04:01
Simple Python Http Server with Upload
#!/usr/bin/env python
"""Simple HTTP Server With Upload.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
"""
@andreyvit
andreyvit / tmux.md
Created June 13, 2012 03:41
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a