cd ~/.config/sublime-text-2/Packages/User/
curl -O https://raw.github.com/gist/1344471/open_file_at_cursor.py
Open keyboard bindings file, and add a line to it
[
...
{ "keys": ["alt+o"], "command": "open_file_at_cursor" } // this one
## 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 |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>items</key> | |
<array> | |
<dict> | |
<key>assets</key> | |
<array> | |
<dict> |
cd ~/.config/sublime-text-2/Packages/User/
curl -O https://raw.github.com/gist/1344471/open_file_at_cursor.py
Open keyboard bindings file, and add a line to it
[
...
{ "keys": ["alt+o"], "command": "open_file_at_cursor" } // this one
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) { |
#!/bin/bash | |
#自动翻墙脚本,配合shadowsocks-libev的ss-redir使用。需要ipset | |
chnroute_file=~/.chnroute | |
ignore_ips=( | |
45.32.50.160 | |
45.127.93.239 | |
103.214.68.175 | |
0.0.0.0/8 | |
10.0.0.0/8 | |
127.0.0.0/8 |
替换上你的 API Token,域名ID,记录ID等参数,就可以运行了。 会在后台一直运行,每隔30秒检查一遍IP,如果修改了就更新IP。
获得 domain_id 可以用 curl
curl -k https://dnsapi.cn/Domain.List -d "login_token=TOKEN"`
#!/bin/sh | |
# | |
# pptpd installation script on my own CentOS 7 box. | |
# inspired by: https://www.digitalocean.com/community/questions/how-to-install-pptp-vpn-on-centos-7 | |
# and http://unix.stackexchange.com/questions/150837/redhat-centos-7-firewalld-best-practice-for-pptp-or-l2tp-ipsec-rules | |
# | |
# Author: 2015 Steve Yang <me@iyyang.com> | |
# The script comes with ABSOLUTELY NO WARRANTY. | |
#!/bin/bash | |
# | |
# Copy data from a Time Machine volume mounted on a Linux box. | |
# | |
# Usage: copy-from-time-machine.sh <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. | |
# |
0x8545
: Original 84
-> 85
0x08FF19
: Original 75
-> EB
0x1932C7
: Original 75
-> 74
(remove UNREGISTERED in title bar, so no need to use a license)// Copyright (c) 2012 Calvin Rien | |
// http://the.darktable.com | |
// | |
// 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: |