Skip to content

Instantly share code, notes, and snippets.

View xingkaixin's full-sized avatar
😅

Kevin xingkaixin

😅
View GitHub Profile
@xingkaixin
xingkaixin / browser-detection.js
Last active September 14, 2015 05:43 — forked from tjefferson/browser-detection.js
get more precise Chinese browser information in google analytics
<script>
var browserName = "Other";
var ua = window.navigator.userAgent;
browserRegExp = {
Sogou : /SE\s2\.X|SogouMobileBrowser/,
Explorer2345 : /2345Explorer|2345chrome|Mb2345Browser/,
Liebao : /LBBROWSER/,
QQBrowser : /QQBrowser/,
Baidu : /BIDUBrowser|baidubrowser|BaiduHD/,
UC : /UBrowser|UCBrowser|UCWEB/,
@xingkaixin
xingkaixin / doss.sh
Created January 30, 2022 06:43 — forked from lexrus/doss.sh
A tiny script to initialize a new Shadowsocks server in DigitalOcean.
#!/bin/bash
#
# This macOS bash script helps you initialize a new Shadowsocks server with doctl in seconds.
# Original author: lexrus https://github.com/lexrus
#
# You can get $100 free credit for create VPS in DigitalOcean with my referral link:
# https://m.do.co/c/3eb5cf371fc9
#
# Please intall and authorize doctl before running this script.
# https://github.com/digitalocean/doctl