Skip to content

Instantly share code, notes, and snippets.

View kosl90's full-sized avatar
🐞
<Coding />

kosl90 kosl90

🐞
<Coding />
View GitHub Profile
@kosl90
kosl90 / ssl_smtp_example.go
Created September 3, 2018 06:42 — forked from chrisgillis/ssl_smtp_example.go
Golang SSL SMTP Example
package main
import (
"fmt"
"log"
"net"
"net/mail"
"net/smtp"
"crypto/tls"
)
@kosl90
kosl90 / linux-shadows-global.sh
Created May 24, 2018 09:32 — forked from tossmilestone/linux-shadows-global.sh
Linux global shadowsocks proxy
#!/bin/bash
# extern variables
SCRIPT_FULL_NAME=$0
SCRIPT_PID=$$
SCRIPT_PID_FILE=/tmp/shadowsocks_ss.pid
SS=ss-redir
SS_IP=127.0.0.1
SS_PORT=1080
SS_LOCAL_PORT=1081
@kosl90
kosl90 / adblock-plus-ruls.txt
Last active June 15, 2016 04:12
custom adblock plus rules
@@http://static0.tuicool.com/images/social_share.png
www.tuicool.com#@#.article_social
##div.floatAd
##div#leaderboard
www.douyu.com#@#.follow-btn
www.douyu.com#@#.share-box
www.douyu.com#@#.share-icon
bilibili.com#@#.share-link
bilibili.com#@#.share-panel
iframe[src^="http://111.175.220.163:8848"]
@kosl90
kosl90 / cVimConfig
Last active June 7, 2017 02:44
cVim config
map <C-d> scrollPageDown
map <C-u> scrollPageUp
map <C-f> scrollFullPageDown
map <C-b> scrollFullPageUp
map <BS> <NOP>
unmap u
map u lastClosedTab
set noautofocus
set smoothscroll
let blacklists = ["https://www.nitrous.io/*","http://cocos2d-x.org/*","http://tryhaskell.org/*","https://ide.c9.io/*","https://ide.coding.net/*","https://www.wunderlist.com/*"]