Skip to content

Instantly share code, notes, and snippets.

Yongkang Chen yongkangchen

Block or report user

Report or block yongkangchen

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
Liqianyu / bestroutetb
Last active Aug 11, 2016
bestroutetb china route UPDATE:2016-2-19
View bestroutetb
## Australia 47.44% 23043328
## China 100.00% 336902912
## Thailand 45.61% 4109824
## India 72.12% 27300096
## Malaysia 42.59% 2838784
## South Korea 65.20% 73268992
## Vietnam 73.08% 11535360
## Taiwan Province of China 57.18% 20297728
## Singapore 30.64% 2177024
## New Zealand 29.48% 2017024
qwIvan /
Last active Oct 13, 2019
自动翻墙脚本,配合shadowsocks-libev的ss-redir使用,需要ipset(sudo apt-get install ipset)
yyang /
Last active Oct 11, 2018
centos 7 pptpd firewalld
# pptpd installation script on my own CentOS 7 box.
# inspired by:
# and
# Author: 2015 Steve Yang <>
# The script comes with ABSOLUTELY NO WARRANTY.
yongkangchen / atom.js
Last active Dec 12, 2018
boom!!! Here is a hack solution to make atom start faster. For Atom <= v0.170.0
View atom.js
Atom.prototype.startEditorWindow = function() {
var CommandInstaller, dimensions, maximize, resourcePath, safeMode, _ref;
_ref = this.getLoadSettings(), resourcePath = _ref.resourcePath, safeMode = _ref.safeMode;
CommandInstaller = require('./command-installer');
CommandInstaller.installAtomCommand(resourcePath, false, function(error) {
if (error != null) {
return console.warn(error.message);
CommandInstaller.installApmCommand(resourcePath, false, function(error) {
vjt /
Last active Aug 21, 2019
Copy data from a Time Machine volume mounted on a Linux box.
# Copy data from a Time Machine volume mounted on a Linux box.
# Usage: <source> <target>
# source: the source directory inside a time machine backup
# target: the target directory in which to copy the reconstructed
# directory trees. Created if it does not exists.
moklett /
Created Jul 24, 2012
OpenConnect VPN on Mac OS X

Unfortunately, the Cisco AnyConnect client for Mac conflicts with Pow. And by "conflicts", I mean it causes a grey-screen-of-death kernel panic anytime you connect to the VPN and Pow is installed.

As an alternative, there is OpenConnect, a command-line client for Cisco's AnyConnect SSL VPN.

Here's how to get it set up on Mac OS X:

  1. OpenConnect can be installed via homebrew:

     brew update
     brew install openconnect
paulmillr /
Last active Oct 5, 2019
Most active GitHub users (by contributions).

Most active GitHub users (

The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at from Tue, 06 Dec 2016 17:06:46 GMT till Wed, 06 Dec 2017 17:06:46 GMT.

Only first 1000 GitHub users according to the count of followers are taken. This is because of limitations of GitHub search. Sorting algo in pseudocode:

  .filter(user => user.followers > 1000)
darktable / SavWav.cs
Created Apr 6, 2012
Unity3D: script to save an AudioClip as a .wav file.
View SavWav.cs
// Copyright (c) 2012 Calvin Rien
// This software is provided 'as-is', without any express or implied warranty. In
// no event will the authors be held liable for any damages arising from the use
// of this software.
// Permission is granted to anyone to use this software for any purpose,
// including commercial applications, and to alter it and redistribute it freely,
// subject to the following restrictions:
Suor / INSTALL.markdown
Created Nov 7, 2011
open_file_at_cursor sublime command
View INSTALL.markdown
cd ~/.config/sublime-text-2/Packages/User/
curl -O

Open keyboard bindings file, and add a line to it

    { "keys": ["alt+o"], "command": "open_file_at_cursor" } // this one
View manifest.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
You can’t perform that action at this time.