Skip to content

Instantly share code, notes, and snippets.

# > Spotify
DOMAIN-SUFFIX,pscdn.co,Spotify
DOMAIN-SUFFIX,scdn.co,Spotify
DOMAIN-SUFFIX,spotify.com,Spotify
DOMAIN-SUFFIX,spoti.fi,Spotify
DOMAIN-KEYWORD,spotify.com,Spotify
DOMAIN-KEYWORD,-spotify-com,Spotify
port: 7890
socks-port: 7891
allow-lan: false
mode: Rule
log-level: silent
[
[
"🏳️‍🌈",
"剩余流量",
"到期时间",
"剩余"
],
[
"🇦🇨",
"AC"
# 2019-07-01 12:00:00
# HTTP 代理端口
port: 7890
# SOCKS5 代理端口
socks-port: 7891
# Linux 和 macOS 的 redir 代理端口 (如需使用此功能,请取消注释)
# redir-port: 7892
# 2.18
brew uninstall --force git
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/db579a4f633c3dfde12c5236b9ea0695dce6cc5e/Formula/git.rb --without-completions
brew pin git
@HaiFongPan
HaiFongPan / gist:ceb17534599f880d80a1
Created September 10, 2014 15:31
sort list merge
# -*- coding: utf-8 -*-
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
class Solution:
# @param head, a ListNode
# @return a ListNode
@HaiFongPan
HaiFongPan / .tmux.conf
Created November 21, 2013 08:47
tmux.conf
#-- base --#
set -g default-terminal "screen"
set -g display-time 3000
set -g history-limit 65535
#----------------------------------------------
#将默认按键前缀改为与C-i避免与终端快捷键冲突
set-option -g prefix C-a
unbind-key C-b
@HaiFongPan
HaiFongPan / quicksort.py
Created October 13, 2012 12:03
quick sort algorithm
def split(array,first,last):
left = first
right = last
while left < right:
while array[first] < array[right]:
right -= 1
while array[first] >= array[left] and left < right:
left += 1
if left < right:
array[left],array[right] = array[right],array[left]