Skip to content

Instantly share code, notes, and snippets.

View jiahut's full-sized avatar
🎯
Focusing

zhijia,.zhang jiahut

🎯
Focusing
View GitHub Profile
@yowu
yowu / HttpProxy.go
Last active June 4, 2025 03:43
A simple HTTP proxy by Golang
package main
import (
"flag"
"io"
"log"
"net"
"net/http"
"strings"
)
@Phlow
Phlow / for-loop-sorted-collection
Last active April 30, 2024 13:30
This Liquid loop for Jekyll sorts a collection by date in reverse order
{% comment %}
*
* This loop loops through a collection called `collection_name`
* and sorts it by the front matter variable `date` and than filters
* the collection with `reverse` in reverse order
*
* To make it work you first have to assign the data to a new string
* called `sorted`.
*
{% endcomment %}
@zchee
zchee / actionlist.vim
Last active June 29, 2025 07:09
IdeaVim actionlist
--- Actions ---
$Copy <M-C>
$Cut <M-X> <S-Del>
$Delete <Del> <BS> <M-BS>
$LRU
$Paste <M-V>
$Redo <M-S-Z> <A-S-BS>
$SearchWeb <A-S-G>
$SelectAll <M-A>
$Undo <M-Z>
@carwinz
carwinz / HttpUtils.groovy
Created June 4, 2015 04:15
Http lookups with timeouts
import groovy.json.JsonSlurper
class HttpUtils {
static def getJsonFrom(url) {
new JsonSlurper().parseText(getTextFrom(url))
}
static def getTextFrom(url, timeout = 30000) {
@miguelcma
miguelcma / DeviceUID.m
Created May 25, 2015 15:09
iOS Unique Device ID that persists between app reinstalls
/* DeviceUID.h
#import <Foundation/Foundation.h>
@interface DeviceUID : NSObject
+ (NSString *)uid;
@end
*/
// Device.m
@iberianpig
iberianpig / .ideavimrc
Created March 30, 2015 14:23
IdeaVIM用のキーマップ
"検索をファイルの先頭へ循環しない
set nowrapscan
"大文字小文字の区別なし
set ignorecase
"検索時に大文字を含んでいたら大/小を区別
set smartcase
"検索対象をハイライト
@developius
developius / README.md
Last active May 20, 2025 11:20
Setup SSH keys for use with GitHub/GitLab/BitBucket etc
@touilleMan
touilleMan / SimpleHTTPServerWithUpload.py
Last active June 18, 2025 05:29 — forked from UniIsland/SimpleHTTPServerWithUpload.py
Simple Python Http Server with Upload - Python3 version
#!/usr/bin/env python3
"""Simple HTTP Server With Upload.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
see: https://gist.github.com/UniIsland/3346170
"""

#SS数据备忘

备忘笔记,任何错误均不负责。

  1. 明文内容
  2. 密文内容
  3. 通讯模型

##明文 SS 的明文数据结构上类似 socks5 协议中描述的数据结构。但是更加简单。SS省略了 socks5 的握手环节。客户端直接把要发的 TCP 包内容写给了服务器。

@ababup1192
ababup1192 / README.md
Last active June 3, 2019 14:04
AnsibleによるDocker環境の構築

Ansible Docker

Docker環境を構築するansible-playbook。Docker本体とfig(docker-composeが普及するまでの繋ぎ)も同時に導入する。 Ansible環境やSandboxがない場合は、↓のgistから環境構築。

Ansible: https://gist.github.com/ababup1192/c0c3892869de117bbe03

Docker環境の構築(Sandbox example)

# パスワードなしでsshできるようにしておく。
ssh-copy-id -i ~/.ssh/id_rsa.pub 192.168.33.12