Skip to content

Instantly share code, notes, and snippets.

@mba811
mba811 / default.custom.yaml
Last active March 27, 2025 02:44 — forked from lotem/default.custom.yaml
神級輸入法——Rime
# 中西文切換鍵的默認設置寫在 default.yaml 裏面
# 以下的 default.custom.yaml 在全局範圍重定義該組快速鍵
#
# 可用的按鍵有 Caps_Lock, Shift_L, Shift_R, Control_L, control_R
# Mac 系統上的鼠鬚管不能區分左、右,因此只有對 Shift_L, Control_L 的設定起作用
#
# 已輸入編碼時按切換鍵,可以進一步設定輸入法中西文切換的形式。
# 可選的臨時切換策略有三:
# inline_ascii 在輸入法的臨時西文編輯區內輸入字母、數字、符號、空格等,回車上屏後自動復位到中文
# commit_text 已輸入的候選文字上屏並切換至西文輸入模式
---
layout: default
---
<!--
这里是 category_index.html 文件,里面使用到的一些 DOM 结构依赖 pizn.me 的样式。但您可以只参考里面的 jekyll 语法就好。这里的作用是显示出 category 分类列表。
-->
<section class="content fn-clear">
<div class="content-cnt">
<div class="ui-grid-25 ui-grid-right content-top">
<section class="ui-grid-19 violet-post">
@mba811
mba811 / zsh.md
Last active August 29, 2015 14:13 — forked from tsabat/zsh.md
ubuntu下面设置zsh
@mba811
mba811 / whitelist.pac
Last active August 29, 2015 14:12 — forked from janlay/whitelist.pac
网络设置(SOCKS)
/*
* A white-list based PAC without regexp, by @janlay
* It's just simple and fast.
* Last update: Dec 9, 2013
* Special thanks to @Paveo
*/
function FindProxyForURL(url, host) {
// REPLACE PROXY WITH YOUR OWN'S
var PROXY = "PROXY 127.0.0.1:8800;SOCKS 127.0.0.1:8801";
var DEFAULT = "DIRECT";
@mba811
mba811 / OS X 10.md
Last active August 29, 2015 14:11 — forked from chrisb/gist:4d6a09c6cc1ca2e1b14e
OS X 10.10 问题与解决方法

OS X 10.10 Guide

Here's what I did to get things working.

1. Install Xcode 6

Yep, over at: https://developer.apple.com

2. Install the Command Line Tools (CLT)

@mba811
mba811 / dnsmasq.txt
Last active August 29, 2015 14:07 — forked from ahmozkya/README.md
安装 DNSMasq dnscrypt
# Configuration file for dnsmasq.
#
# Format is one option per line, legal options are the same
# as the long options legal on the command line. See
# "/usr/sbin/dnsmasq --help" or "man 8 dnsmasq" for details.
# Custom development domains
address=/.dev/127.0.0.1
address=/.dom/127.0.0.1
#!/usr/bin/env bash
# Pre-requisites
sudo apt-get -y update
sudo apt-get --no-install-recommends -y install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev libgdbm-dev ncurses-dev automake libtool bison subversion pkg-config libffi-dev vim
# Download and compile Ruby 2.0.0-p0
cd /tmp
wget ftp://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p0.tar.gz
tar -xvzf ruby-2.0.0-p0.tar.gz

##安装zsh

brew install zsh

设置zsh为默认shell

mate /etc/shells

在文末增加:

@mba811
mba811 / Sublime Text 2 - 实用快捷键 (Mac OS X).textile
Last active August 29, 2015 14:00 — forked from lucifr/gist:1208100
Sublime Text 2 - 实用快捷键 (Mac OS X)