Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name @@张大妈值率
// @namespace http://tampermonkey.net/
// @version 0.1
// @description 张大妈值率
// @author You
// @match *://*.smzdm.com/*
// @require https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js
// @grant none
@Bigcircle
Bigcircle / gist:9da173919147e82480a7
Created December 13, 2014 09:08
karabiner config
<?xml version="1.0"?>
<root>
<!-- 使用 Home / PageUp / PageDown 来 静音 / 增大 / 减小 音量 -->
<item>
<name>Volume Keys</name>
<appendix>Mute, Up, Down</appendix>
<identifier>remap.volumeKeys</identifier>
<autogen>
--KeyToConsumer--
KeyCode::HOME,
@Bigcircle
Bigcircle / centos ruby zlib
Created March 27, 2014 07:04
centos ruby zlib
# 安装zlib
yum install zlib zlib-devel
# 进入ruby源码,安装扩展
cd ruby-1.9.3-p545/ext/zlib
ruby extconf.rb
make && make install
@Bigcircle
Bigcircle / gist:9477868
Last active August 29, 2015 13:57
rbenv in centos
# https://github.com/sstephenson/rbenv#installing-ruby-versions
# rbenv script
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
source ~/.bash_profile # echo $PATH查看是否正确
# ruby-build script,提供rbenv的所有命令
@Bigcircle
Bigcircle / gist:3910222
Last active October 11, 2015 19:48
common command to copy
# 用于导入到服务器~/.bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
alias ..='cd ..'
@Bigcircle
Bigcircle / gist:3844690
Created October 6, 2012 11:38
oh-my-zsh alias complete
# grep -hre '^alias' ~/.oh-my-zsh
alias pu='pushd'
alias po='popd'
alias ...='cd ../..'
alias -- -='cd -'
alias _='sudo'
alias history='fc -l 1'
alias lsa='ls -lah'
alias l='ls -la'
alias ll='ls -l'
@Bigcircle
Bigcircle / category_list_tag.rb
Created August 27, 2012 04:08
category_list_tag for octopress
module Jekyll
class CategoryListTag < Liquid::Tag
def render(context)
html = ""
categories = context.registers[:site].categories.keys
categories.sort.each do |category|
posts_in_category = context.registers[:site].categories[category].size
category_dir = context.registers[:site].config['category_dir']
category_url = File.join(category_dir, category.gsub(/_|\P{Word}/, '-').gsub(/-{2,}/, '-').downcase)
html << "<li class='category'><a href='/#{category_url}/'>#{category} (#{posts_in_category})</a></li>\n"
@Bigcircle
Bigcircle / com.google.goagent.plist
Created August 25, 2012 06:49
start goagent automatically
<?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>Label</key>
<string>com.google.goagent</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/python</string>
<string>/Users/yourname/goagent/local/proxy.py</string>
@Bigcircle
Bigcircle / gist:3234381
Created August 2, 2012 06:15
mac 技巧

some tips and install on mac

tips

  • 识别 NTFS 格式 U 盘 / 移动硬盘,paragon for ntfs
  • 关闭/调低开机音乐 下载 StartupSoundPrefPane 安装之
  • Shift + F11/F12 调整声音时没有嘟嘟音
  • Shift + Option + F11/F12 1/4微调声音
  • 显示/隐藏 隐藏文件 -- defaults write com.apple.finder AppleShowAllFiles -bool true / false
199.91.73.222
178.79.131.110
http://dns.v2ex.co
168.95.1.1 mac store dns