This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// DEPRECATED, prefer https://gist.githubusercontent.com/jostyee/5d1f840bd8fd4ac53778a91ce13323b6/raw/quantumult_filter_select.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -ex | |
NGINX_VERSION="1.15.3" | |
BUILDROOT="/home/yee/ng" | |
sudo add-apt-repository ppa:gophers/archive | |
sudo apt update | |
sudo apt install -y build-essential uuid-dev dpkg-dev unzip cmake make |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
image: golang:1.10-alpine | |
stages: | |
- test | |
- build | |
before_script: | |
- go get -u github.com/golang/dep/cmd/dep | |
- mkdir -p $GOPATH/src | |
- cd $GOPATH/src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Create credential at https://console.developers.google.com/apis/credentials | |
echo -n $( curl "https://www.googleapis.com/urlshortener/v1/url?fields=id&key=$KEY" -H 'Content-Type: application/json' -d '{"longUrl": "$URL"}' -s | awk '/"id":/ {print substr($2, 2, length($2)-2)}' ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#-*- coding:utf8 -*- | |
''' | |
YUCOAT的原脚本只适用于Python 2,改了下Python 3的版本 | |
''' | |
import os | |
import sys | |
import zipfile | |
if __name__ == '__main__': |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adb shell settings delete global captive_portal_https_url | |
adb shell settings put global captive_portal_https_url https://developers.google.cn/generate_204 | |
adb shell settings put global captive_portal_other_fallback_urls https://www.qualcomm.cn/generate_204 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.frontbg { | |
background-color: #53cd80; | |
border-radius: 7px; | |
color: #fff; | |
position: relative; | |
left: 0; | |
} | |
.android .frontbg { | |
background-color: #eelf34; | |
border-radius: 7px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://itunes.apple.com/us/app/macos-sierra/id1127487414?ls=1&mt=12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let barposition = "bottom" | |
let searchlimit = 5 | |
let searchalias g = "google" | |
let blacklists = ["https://inbox.google.com/*", "*://newsblur.com/*", "*://www.taobao.com/*"] | |
set autoupdategist | |
set noautofocus | |
set cncpcompletion | |
set nohud |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!MANAGED-CONFIG https://gist.githubusercontent.com/jostyee/561076f741d93b9c5c2924328d9d1cb6/raw/surge-cn.conf interval=259200 strict=true | |
[General] | |
loglevel = notify | |
skip-proxy = 127.0.0.1, 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 100.64.0.0/10, localhost, *.local, ::ffff:0:0/96 | |
ipv6 = false | |
allow-wifi-access = false | |
dns-server = 114.114.114.114, 223.5.5.5, system | |
external-controller-access = pwd@0.0.0.0:6155 |