Skip to content

Instantly share code, notes, and snippets.

View zvving's full-sized avatar
📖
Focusing

ming.z zvving

📖
Focusing
  • Bytedance
  • Shanghai, China
View GitHub Profile
@zvving
zvving / private.xml
Created June 22, 2015 13:44
karabiner_private.xml
<?xml version="1.0"?>
<root>
<devicevendordef>
<vendorname>POKER_PRO_X</vendorname>
<vendorid>0x0f39</vendorid>
</devicevendordef>
<deviceproductdef>
<productname>POKER_PRO_X</productname>
<productid>0x0671</productid>
</deviceproductdef>
@zvving
zvving / f2ck_9fw.pac
Last active October 13, 2015 12:18
使用此 pac 方便的在 OS X 中配置 ssh 代理
function FindProxyForURL(url, host) {
var ssh1 = 'SOCKS5 192.168.10.10:1080;SOCKS 192.168.10.10:1080';
var exp1 = [
'*youtube*',
'*facebook*',
'*google*',
'*ytimg.com/*',
'*fbcdn.net/*',
'*git-scm.com/*',
@zvving
zvving / proxy-socket-node-config.md
Created December 8, 2012 08:18
SwitchySharp+shadowsocks-nodejs Windows 下配置介绍

安装浏览器

  • 安装 谷歌浏览器360极速浏览器(入门用户推荐这个吧,Google老被墙)均可,其它浏览器就算了吧。(查看此教程也请尽量使用这两个浏览器)

设置浏览器代理扩展

  • 安装 Proxy SwitchySharp , 谷歌浏览器版打开这个链接(可能被墙),360极速浏览器打开这个链接,打开网页后,点击右上角的安装此扩展;
  • 安装扩展之后,浏览器右上角
  • 配置 SwitchySharp, 见图: SwitchySharp 配置
  • 之后选择直接连接,就是直接访问,选择新建的情景模式就是我们要添加的翻墙;
  • 现在选中刚添加的情景模式,访问 https://twitter.com 。这时只会提示找不到代理服务器,这是正常的,因为你还没有配置代理服务器。然后把 SwitchySharp 切回直接连接,能正常访问国内网站先。
@zvving
zvving / CLLocation+Sino.h
Last active January 9, 2019 02:39
火星坐标系转换扩展。Earth(国外 WGS84), mars(国内 GCJ-02), bearPaw(百度 BD-09) 坐标系间相互转换
//
// CLLocation+Sino.h
//
// Created by i0xbean@gmail.com on 13-4-26.
// 火星坐标系转换扩展
//
// earth(国外 WGS84), mars(国内 GCJ-02), bearPaw(百度 BD-09) 坐标系间相互转换
// 未包含 mars2earth. 需要这个可参考 http://xcodev.com/131.html
#import <CoreLocation/CoreLocation.h>