This file contains hidden or 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
// Generated by gfwlist2pac | |
// https://github.com/clowwindy/gfwlist2pac | |
var domains = { | |
"gimpshop.com": 1, | |
"directcreative.com": 1, | |
"speedpluss.org": 1, | |
"mingpaovan.com": 1, | |
"wikinews.org": 1, | |
"joachims.org": 1, |
This file contains hidden or 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
# Example procedures to build git from source. | |
# See https://github.com/git/git/blob/master/INSTALL for more info and | |
# detailed instructions. | |
# | |
# Author: Ray Chen <oldsharp@gmail.com> | |
# License: Public Domain | |
# Resolve dependency (administrative privileges may required): | |
# Red Hat Enterprise Linux 7 ("RHEL7") | CentOS 7: | |
yum install curl-devel expat-devel gettext-devel openssl-devel \ |
This file contains hidden or 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/python2 | |
# -*- coding: utf-8 -*- | |
import re | |
import time | |
from bs4 import BeautifulSoup | |
from selenium import webdriver |
This file contains hidden or 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
# vi: set filetype=gitconfig : | |
[user] | |
name = Ray Chen | |
email = oldsharp@gmail.com | |
[core] | |
editor = vim | |
pager = less -+S | |
whitespace = trailing-space,space-before-tab,indent-with-non-tab,cr-at-eol |
This file contains hidden or 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
# | |
# Alpine configuration file | |
# | |
# vi: set filetype=pine : | |
# | |
# This file sets the configuration options used by Alpine and PC-Alpine. These | |
# options are usually set from within Alpine or PC-Alpine. There may be a | |
# system-wide configuration file which sets the defaults for some of the | |
# variables. On Unix, run alpine -conf to see how system defaults have been set. | |
# For variables that accept multiple values, list elements are separated by |
This file contains hidden or 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
# Options for GnuPG | |
# Copyright 1998, 1999, 2000, 2001, 2002, 2003, | |
# 2010 Free Software Foundation, Inc. | |
# | |
# This file is free software; as a special exception the author gives | |
# unlimited permission to copy and/or distribute it, with or without | |
# modifications, as long as this notice is preserved. | |
# | |
# This file is distributed in the hope that it will be useful, but | |
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the |
This file contains hidden or 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
# This example will tell git-format-patch to prepare patches for Alpine | |
git format-patch -M \ | |
--no-cover-letter \ | |
--in-reply-to="<alpine.DEB.2.20.1509071424250.21394@jagger>" \ | |
--thread=shallow \ | |
--from="Ray Chen <oldsharp@gmail.com>" \ | |
--to="Ray Chen <oldsharp@163.com>" \ | |
--cc="Ray Chen <oldsharp@gmail.com>" \ | |
--add-header="MIME-Version: 1.0" \ | |
--add-header="Content-Type: text/plain; charset=UTF-8" \ |
This file contains hidden or 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
git send-email --to="Ray Chen <oldsharp@163.com>" \ | |
--cc="Ray Chen <oldsharp@gmail.com>" \ | |
~/mail/drafts/ray/ |
This file contains hidden or 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 | |
# | |
# Construct a Dynamic DNS POST request that matches Google Domains' API. | |
# The final URL format should looks like: | |
# https://username:password@domains.google.com/nic/update?hostname=subdomain.yourdomain.com&myip=1.2.3.4 | |
# See https://support.google.com/domains/answer/6147083 | |
# | |
# Author: Ray Chen <oldsharp@gmail.com> | |
# License: Public Domain |
This file contains hidden or 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 | |
# | |
# For GNOME Desktop: Turn Caps-Lock into an extra Ctrl key by changing | |
# the dconf value. | |
# | |
# Author: Ray Chen <oldsharp@gmail.com> | |
# License: Public Domain | |
gsettings set org.gnome.desktop.input-sources xkb-options "['ctrl:nocaps']" |