yányào.com

Recent posts

Oct 6, 2014
forward email by postfixsudo aptitude install postfix hostname -f # sudo vim /etc/postfix/main.cf myhostname = example.com myorigin = example.com mydestination = example1.com, example2.com, ... virtual_alias_maps = hash:/etc/postfix/virtual # sudo vim /etc/postfix/virtual @example1.com name@forward.com @example2.com name@forward.com sudo postmap /etc/postfix/virtual sudo /etc/init.d/postfix reload https://wiki.debian.org/Postfix#Forward_Emails https://www.linode.com/docs/email/postfix/basic-postfix-email-gateway-on-debian-6-squeeze https://www.debian-administration.org/article/243/Handling_mail_for_multiple_virtual_domains_with_postfix…
Aug 20, 2014
mitmproxymitmproxy 是个命令行下查看/修改 http 请求的交互式工具 #截图 #安装 sudo apt-get install python-dev libffi-dev pip install mitmproxy #使用 ubuntu 上启动 mitmproxy mitmproxy –host 手机 设置 -> WLAN -> 代理 主机名: ubuntu 的 ip 端口: 8080 然后访问网络就会在 mitmproxy 里看到请求记录(如截图) #快捷键 j,k 上下移动 enter 进入 tab 切换 request/response #参考 http://mitmproxy.org/doc/mitmproxy.html http://blog.philippheckel.com/2013/07/01/how-to-use-mitmproxy-to-read-and-modify-https-traffic-of-your-phone/…
Aug 28, 2013
brick intro#Introducing Brick: Minimal-markup Web Components for Faster App Development #介绍 brick: 用于快速开发 webapp 的自定义标签组件 https://hacks.mozilla.org/2013/08/introducing-brick-minimal-markup-web-components-for-faster-app-development/ Those of you on the cutting HTML5 edge may have already heard of the exciting Web Components specification. If you haven’t, you’ll probably want to read up on what makes this so exciting, but long story short, Web Components promise to open up a new realm of development by letting web developers write custom, reusable HTML tags.…
Jun 9, 2013
my osx setup#setting # Enable full keyboard access for all controls defaults write NSGlobalDomain AppleKeyboardUIMode -int 3 # Disable menu bar transparency defaults write NSGlobalDomain AppleEnableMenuBarTransparency -bool false # Allow quitting Finder via ⌘ + Q; doing so will also hide desktop icons defaults write com.apple.finder QuitMenuItem -bool true # Avoid creating .DS_Store files on network volumes defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true # Disable the warning when changing a file extension defaults write com.…