- 识别 NTFS 格式 U 盘 / 移动硬盘,paragon for ntfs
- 关闭/调低开机音乐 下载 StartupSoundPrefPane 安装之
- Shift + F11/F12 调整声音时没有嘟嘟音
- Shift + Option + F11/F12 1/4微调声音
- 显示/隐藏 隐藏文件 -- defaults write com.apple.finder AppleShowAllFiles -bool true / false
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 安装zlib | |
yum install zlib zlib-devel | |
# 进入ruby源码,安装扩展 | |
cd ruby-1.9.3-p545/ext/zlib | |
ruby extconf.rb | |
make && make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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的所有命令 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 用于导入到服务器~/.bash_profile | |
# .bash_profile | |
# Get the aliases and functions | |
if [ -f ~/.bashrc ]; then | |
. ~/.bashrc | |
fi | |
alias ..='cd ..' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
199.91.73.222 | |
178.79.131.110 | |
http://dns.v2ex.co | |
168.95.1.1 mac store dns |
NewerOlder