Skip to content

Instantly share code, notes, and snippets.

Leafney leafney

Block or report user

Report or block leafney

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@leafney
leafney / show_k8s_ca_and_token_from_service_account.sh
Last active Oct 13, 2019
Get k8s/k3s token and ca.crt from ServiceAccount
View show_k8s_ca_and_token_from_service_account.sh
#!/bin/bash
set -e
set -o pipefail
if [[ -z "$1" ]] || [[ -z "$2" ]]; then
echo "usage: $0 <service_account_name> <namespace>"
exit 1
fi
@leafney
leafney / staticproxy.go
Last active Jun 14, 2017
golang下实现http代理请求
View staticproxy.go
package main
/*
http代理测试
* [Mocking a HTTP access with http.Transport in Golang - oinume journal](http://oinume.hatenablog.com/entry/mocking-http-access-in-golang)
* [Go http访问使用代理](http://www.cnblogs.com/damir/archive/2012/05/06/2486663.html)
* [GO HTTP client客户端使用 - 海运的博客](https://www.haiyun.me/archives/1051.html)
* [Making Tor HTTP Requests with Go | DevDungeon](http://www.devdungeon.com/content/making-tor-http-requests-go)
@leafney
leafney / footer.tmpl
Created Mar 27, 2017
Docker Gogs custom files
View footer.tmpl
You can’t perform that action at this time.