Skip to content

Instantly share code, notes, and snippets.

View Eminlin's full-sized avatar
🎯
Focusing

Emin Eminlin

🎯
Focusing
View GitHub Profile
@Eminlin
Eminlin / .zshrc
Last active March 29, 2023 14:34
zsh开启代理配置
function off(){
unset http_proxy
unset https_proxy
echo -e "*** off ***"
}
function on(){
export http_proxy="http://127.0.0.1:1087"
export https_proxy=$http_proxy
echo -e "*** on ***"
@SoulSu
SoulSu / aesecb.go
Last active August 3, 2022 07:36
golang aes ecb pKCS5Padding like java 3DES_ECB_PKCS5Padding
package idcardocr
import (
"bytes"
"crypto/cipher"
"crypto/des"
)
// 3DES加密
@aaronkjones
aaronkjones / k8s-pi.md
Last active June 11, 2020 08:08 — forked from alexellis/k8s-pi.md
K8s (v1.10.2) on Raspbian (April 2018)

Kubernetes on (vanilla) Raspbian Lite

Yes - you can create a Kubernetes cluster with Raspberry Pis with the default operating system called Raspbian. This means you can carry on using all the tools and packages you're used to with the officially-supported OS.

Pre-reqs:

  • You must use an RPi 2 or 3 for use with Kubernetes
  • I'm assuming you're using wired ethernet (Wi-Fi also works, but it's not recommended)
git config --global https.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080
git config --global --unset http.proxy
git config --global --unset https.proxy
npm config delete proxy
@handerson
handerson / mysqlfix.sh
Created March 27, 2012 16:52 — forked from davejlong/mysql client
How to setup the MySQL client and MySQLDump client on Mac OS x from MySQL Workbench
#MySQL Client
ln -s /Applications/MySQLWorkbench.app/Contents/Resources/mysql /usr/bin/mysql
#MySQL Dump
ln -s /Applications/MySQLWorkbench.app/Contents/Resources/mysqldump /usr/bin/mysqldump
#How to fix the "Library not loaded: libmysqlclient.18.dylib (LoadError)" error
sudo ln -s /usr/local/mysql/lib/libmysqlclient.18.dylib /usr/lib/libmysqlclient.18.dylib