Skip to content

Instantly share code, notes, and snippets.

View xiaokaike's full-sized avatar
🎯
Focusing

Don xiaokaike

🎯
Focusing
  • China Guangzhou
View GitHub Profile
@xiaokaike
xiaokaike / sublime-text-3-setup.md
Created June 20, 2019 12:10 — forked from ijy/sublime-text-3-setup.md
My Sublime Text 3 setup.

Sublime Text 3 Setup

Install Package Control

Install Package Control for easy package management.

  1. Open the console with Ctrl+`
  2. Paste in the following:
@xiaokaike
xiaokaike / ssr.sh
Last active April 18, 2019 07:05
wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubi/doubi/master/ssr.sh && chmod +x ssr.sh && bash ssr.sh
#!/usr/bin/env bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
#=================================================
# System Required: CentOS 6+/Debian 6+/Ubuntu 14.04+
# Description: Install the ShadowsocksR server
# Version: 2.0.38
# Author: Toyo
# Blog: https://doub.io/ss-jc42/
@xiaokaike
xiaokaike / chrome-wechat-decode.js
Created October 29, 2018 02:48
chrome-wechat-decode
/**
* 修复微信编码问题
*/
// MIME types to work on
const TARGET_MIME_TYPE = [
/^text\/[\w-.]+/i,
/^application\/json/i,
/^application\/(x-)?javascript/i,
/^application\/(xhtml+)?xml/i,

Option 1: Command-line download extension as zip and extract

extension_id=jifpbeccnghkjeaalbbjmodiffmgedin   # change this ID
curl -L -o "$extension_id.zip" "https://clients2.google.com/service/update2/crx?response=redirect&os=mac&arch=x86-64&nacl_arch=x86-64&prod=chromecrx&prodchannel=stable&prodversion=44.0.2403.130&x=id%3D$extension_id%26uc" 
unzip -d "$extension_id-source" "$extension_id.zip"

Thx to crxviewer for the magic download URL.

@xiaokaike
xiaokaike / .gitlab-ci.yml
Created November 14, 2017 06:48 — forked from thornbill/.gitlab-ci.yml
Example Node GitLab CI Yamlfile
# Official framework image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/node/tags/
image: node:6
before_script:
- npm install
# This folder is cached between builds
# http://docs.gitlab.com/ce/ci/yaml/README.html#cache
cache:
@xiaokaike
xiaokaike / fis-conf.js
Last active October 25, 2016 13:27
fis-remove-html-comments
// 去除.tpl 中的注释
var removeComments = require('./fis-remove-html-comments.js');
fis.config.set('modules.parser.tpl', [removeComments]);