Skip to content

Instantly share code, notes, and snippets.

🐰
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
View 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
@willurd
willurd / web-servers.md
Last active Jul 9, 2020
Big list of http static server one-liners
View web-servers.md

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 Aug 14, 2012
Simple Python Http Server with Upload
View SimpleHTTPServerWithUpload.py
#!/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.
"""
View tmux.md

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
You can’t perform that action at this time.