This is a Chinese version of https://gist.github.com/1207002/86f48cd3b3b72c85e6293926cf7c730de03b2f08 from lucasfais
| ⌘T | 前往文件 |
| ⌘⌃P | 前往项目 |
| ⌘R | 前往 method |
| ⌘⇧P | 命令提示 |
| { | |
| "uuid": "e24b4542-ce5d-4625-b2cb-e40429945328", | |
| "json": [ | |
| { | |
| "type": 1, | |
| "name": "if101[屏蔽国内ip]", | |
| "api": "http://api.if101.tv/v1/vod" | |
| }, | |
| { | |
| "type": 0, |
| ## Ubuntu个人文件夹中文改英文 | |
| ### 背景 | |
| 选择中文安装好的Ubuntu系统主文件夹下的文件夹是中文的,例如`桌面`、`下载`、`图片`等,在终端下想要切换到这些文件夹就有点麻烦。 | |
| 虽然Unity桌面环境可以通过切换系统语言来改名,但是Mate等桌面环境下就没这么“方便”。 | |
| ### 命令行解决 | |
| 打开终端,在终端中输入命令: | |
| ``` | |
| export LANG=en_US |
This is a Chinese version of https://gist.github.com/1207002/86f48cd3b3b72c85e6293926cf7c730de03b2f08 from lucasfais
| ⌘T | 前往文件 |
| ⌘⌃P | 前往项目 |
| ⌘R | 前往 method |
| ⌘⇧P | 命令提示 |
| [General] | |
| skip-proxy = 127.0.0.1, 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 100.64.0.0/10, localhost, *.local, ::ffff:0:0:0:0/1, ::ffff:128:0:0:0/1 | |
| bypass-tun = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12 | |
| # dns-server = 119.29.29.29, 223.5.5.5, 114.114.114.114 | |
| loglevel = notify | |
| [Proxy] | |
| BJ-All = custom | |
| BJ-HK-Azure = custom | |
| BJ-US-Azure = custom |
| # from https://gist.github.com/MattDMo/6cb1dfbe8a124e1ca5af | |
| import os | |
| import json | |
| import socket | |
| import threading | |
| activate_this = os.environ.get("SUBLIMEREPL_ACTIVATE_THIS", None) | |
| # turn off pager |
| # ipak function: install and load multiple R packages. | |
| # check to see if packages are installed. Install them if they are not, then load them into the R session. | |
| ipak <- function(pkg){ | |
| new.pkg <- pkg[!(pkg %in% installed.packages()[, "Package"])] | |
| if (length(new.pkg)) | |
| install.packages(new.pkg, dependencies = TRUE) | |
| sapply(pkg, require, character.only = TRUE) | |
| } |
| // 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: |