Skip to content

Instantly share code, notes, and snippets.

@lotem
lotem / cangjie5.custom.yaml
Created June 17, 2012 11:58
Rime定製檔:設定【倉頡】的反查碼爲雙拼
# 因爲【雙拼】使用的詞典就是【朙月拼音】的詞典,所以輸入方案中原有的
# reverse_lookup/dictionary: luna_pinyin 保持不變,另外指定一項 prism
patch:
reverse_lookup/prism: double_pinyin
reverse_lookup/tips: 〔雙拼〕
reverse_lookup/preedit_format: []
@xiaods
xiaods / tiny-rss-openshift-setup.md
Last active January 2, 2019 17:06
Google reader have gone, Setting Up Your Free Private Feed Reader.使用OpenShift的免费空间,配合Tiny-Tiny-Rss直接部署一个在线版的Rss Reader,经试用,支持中文挺好的。
  1. 下载tiny-tiny-rss source code
cd ~/src/git 
clone git://github.com/gothfox/Tiny-Tiny-RSS.git
  1. 创建openshift空间
@frank4565
frank4565 / MultipleLineOmniFocus.py
Last active March 25, 2018 08:15
Send Multiple Tasks to OmniFocus at Once with Drafts and Pythonista or one task with Launch Center Pro. Supported Chinese. (Other Unicode characters should also work.)
# -*- coding: utf-8 -*-
# More information: Send Multiple Tasks to OmniFocus at Once with Drafts and Pythonista or one task with Launch Center Pro. Supported Chinese. (Other Unicode characters should also work.)
# Script name: MultiLineOmniFocus
# Drafts "URL Action": pythonista://MultiLineOmniFocus?action=run&argv=[[draft]]%0Adrafts
# Launch Center Pro: pythonista://MultiLineOmniFocus?action=run&args={{[prompt:New Item]}}%0Alaunchpro
# or Install from http://launchcenterpro.com/tdp7fb
# Modified from email script by OMZ: ImageMail
# Modified from script by @Thinkbond from Zhihu.com (http://www.zhihu.com/question/20888606/answer/17093178)
# Inspired by http://n8henrie.com/2013/03/send-multiple-tasks-to-omnifocus-at-once-with-drafts-and-pythonista
@bradcrawford
bradcrawford / feedly_export_saved_for_later
Last active February 26, 2024 07:07
Simple script that exports a users "Saved For Later" list out of Feedly as a JSON string
// Simple script that exports a users "Saved For Later" list out of Feedly
// as a JSON string.
//
// This was intended for use in the Google Chrome's "Inspector" tool so your
// mileage may vary if used in other contexts.
//
// Format of JSON is as follows:
// [
// {
// title: "Title",
@kevinzhow
kevinzhow / route.sh
Last active October 2, 2022 08:01
AnyConnect 路由表
route = 8.0.0.0/255.0.0.0
route = 58.0.0.0/255.0.0.0
route = 23.0.0.0/255.0.0.0
route = 117.0.0.0/255.0.0.0
route = 199.0.0.0/255.0.0.0
route = 190.0.0.0/255.0.0.0
route = 198.0.0.0/255.0.0.0
route = 173.0.0.0/255.0.0.0
route = 174.0.0.0/255.0.0.0
route = 168.0.0.0/255.0.0.0
@fqrouter
fqrouter / readme.txt
Last active February 14, 2025 03:11
shadowsocks 公共代理的必要设置
good, 你已经有了一个自己的shadowsocks代理了,现在想要把这个代理公布出去给所有人分享。
但是没有两个小时,代理就没法使用了,为什么?因为你需要额外注意以下事项(以下步骤需要比较高的linux技能)
本文只关注于确保shadowsocks服务还“活着”,如果你希望让其跑得更快,请参考
https://github.com/clowwindy/shadowsocks/wiki/Optimizing-Shadowsocks
1、 shadowsocks的timeout设置
超时时间越长,连接被保持得也就越长,导致并发的tcp的连接数也就越多。对于公共代理,这个值应该调整得小一些。推荐60秒。
2、 检查操作系统的各种限制
对于openvz的vps,特别需要检查一下
@pzgz
pzgz / ocserv.route.conf
Last active January 13, 2016 04:46
OpenConnect Routes Configuration,参考http://www.v2ex.com/t/136431,修改精简到200条
# Amazon
route = 8.18.144.0/255.255.254.0
route = 23.20.0.0/255.252.0.0
route = 27.0.0.0/255.255.252.0
route = 46.51.0.0/255.255.0.0
route = 46.137.0.0/255.255.0.0
route = 50.16.0.0/255.252.0.0
route = 50.112.0.0/255.255.0.0
route = 54.0.0.0/255.0.0.0
@shellexy
shellexy / ocserv.conf
Created January 22, 2015 13:39
anyconnect 所用路由
dns = 8.8.8.8
max-clients = 0
max-same-clients = 5
route = 172.68.2.0/255.255.255.0
route = 3.0.0.0/255.0.0.0
route = 4.0.0.0/255.0.0.0
route = 8.0.0.0/255.0.0.0
route = 17.0.0.0/255.0.0.0
route = 198.0.0.0/255.0.0.0
@mygeekdaddy
mygeekdaddy / OmniFocus_Due_List_R2.scpt
Last active October 23, 2021 11:54
Generate MD file for tasks due within +/- 7d of current date (Rev 2)
(*
File: OmniFocus_Due_List.scpt
Revision: 1.1
Revised: 2019-02-10
Summary: Create taskpaper list of tasks due +/- 7d from current date.
-----------------------------------------------------------
Script based on Justin Lancy (@veritrope) from Veritrope.com
http://veritrope.com/code/write-todays-completed-tasks-in-omnifocus-to-a-text-file
@xh4n3
xh4n3 / Surge.md
Last active June 16, 2020 07:42
Surge

Feature

  • 替代 PAC,实现根据规则区分选择代理线路
  • 支持 SOCKS5 和 Shadowsocks 协议
  • 完整支持所有的 Shadowsocks 加密方式 (table, rc4-md5, salsa20, chacha20, aes-256-cfb, aes-192-cfb, aes-128-cfb, bf-cfb, cast5-cfb, des-cfb, rc2-cfb, rc4, seed-cfb)
  • 全面支持双向 HTTP Keep-Alvie
  • 快,各种黑科技加速
  • 直接临时修改某个域名的访问规则 (暂时仅 Mac 版本)
  • 支持使用 GeoIP 规则决定线路

Usage