Skip to content

Instantly share code, notes, and snippets.

View qct's full-sized avatar
🐛
Making bugs

qct

🐛
Making bugs
View GitHub Profile
@artyom
artyom / rpc-tls-client.go
Last active October 9, 2023 15:44
Go RPC over TLS.You have to create the following keys: certs/client.crt, certs/client.key, certs/server.crt, certs/server.key. client.crt and server.crt should be signed with ca.crt, which should be concatenated to both client.crt and server.crt. It's easier to do with easy-rsa: http://openvpn.net/index.php/open-source/documentation/howto.html#pki
package main
import (
"crypto/tls"
"crypto/x509"
"log"
"net/rpc"
)
func main() {
@fly9i
fly9i / Travel.md
Last active December 23, 2015 04:09
GOTO TIBET

####Travel to Tibet

物品清单

  • 冲锋衣/羽绒服
  • 保暖内衣
  • 冲锋裤/牛仔裤等
  • 登山鞋/运动鞋
  • 拖鞋
  • 洗发、洗脸、牙刷、防晒、唇膏
  • 帽子
@zanshin
zanshin / .zshrc
Created August 12, 2011 19:09
My .zshrc file
# Path to your oh-my-zsh configuration.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
#export ZSH_THEME="robbyrussell"
export ZSH_THEME="zanshin"