Tumgik
mybeky · 12 years
Text
在 Apple TV 上使用自动代理配置
Apple TV 5.1 里能够设置代理了,虽然配置方式很猎奇(见 )。 不过直接设置 HTTP Proxy 的话是不能连上 Home Sharing 的,只能通过自动代理配置来 bypass 本地地址,步骤如下: 1. 用 micro USB 线连接 Apple TV 和电脑。 2. 用 iExplorer / iFunbox 把[这个 pac 文件](http://cl.ly/JiZ1)上传到 Media 目录 ![](http://cl.ly/JhqY/Pasted%20Image%209:25:12%2010:06%20PM.png) 3. 在 Apple Configurator 里填上 `file:///var/mobile/Media/autoproxy.pac` ![](http://cl.ly/JhX4/Pasted%20Image%209:25:12%2010:09%20PM.png) 4. 把 Profile 装进 Apple TV。 只针对升级到 5.1 的 3rd gen Apple TV。
1 note · View note
mybeky · 12 years
Text
替换 iOS 5.1 的锁屏相机为 Camera+
第一步很好办,在 Cydia 里安装 AnyLockApp 然后选择 Camera+ 就行了,问题是升级到 iOS 5.1 后,锁屏相机按钮改成向上拖了,拖的时候显示的是系统 Camera.app 的图片,太违和了,于是就 ssh 进去找了下: find /System/ -type f -name '*Camera*.png' 运气真好,一下就发现了,就是第二张: ![](http://f.cl.ly/items/2d0o3E2B0H3T3u1V0d1t/Image%202012.04.18%205:24:23%20PM.png) 把它替换成了 Camera+ 的 launch image,效果就完美了: ![](http://f.cl.ly/items/2g300g272K473r291t3S/IMG_3511.PNG) 图片我上传了 [http://cl.ly/FwUA](http://cl.ly/FwUA) ,用它替换 /System/Library/CoreServices/SpringBoard.app/DefaultCameraUI@2x~iphone.png 再 Respring 即可。
0 notes
mybeky · 12 years
Text
在 Vim 中一键格式化任意位置的 Javascript
[sublime 2下一键格式化任意位置的javascript](http://blog.est.im/archives/4579) 的 Vim 版。 安装 js-beautify: git clone git://github.com/einars/js-beautify.git cd js-beautify/python sudo python setup.py install ~/.vimrc 中加入: nmap :%!js-beautify -i vmap :'!js-beautify -i 然后在 Vim 中按 F4 即可。
3 notes · View notes
mybeky · 12 years
Link
shinyplasticbag.com
Drag­ging and drop­ping is a great way to get stuff done on your Mac, but Drag­onDrop makes it even bet­ter. Drag­onDrop lets you set down what you're drag­ging, leav­ing you free to find your des­ti­na­tion with­out wor­ry­ing about keep­ing the…
Dragondrop 看起来比 Yoink 炫的说
0 notes
mybeky · 12 years
Text
给 Action Menu 添加在线中文词典
装了 Action Menu Plus Pack 后,在 iPhone 上能对选定的文字进行 look up,不过自带的 wikipedia,dictionay 和 Google Translate 都是英文的,居然不能修改添加……
看了 /Library/ActionMenu/Plugins 里的文件,果然发现了 Lookup-Services.plist, 马上添加了 bing 的手机词典(用 iFile 也可以):
注意 "&" 要用 "&" 代替,保存后就马上生效了,都不用 respring 的,效果:
除了在线中文词典,应该还可以添加中文 wikipedia 什么的……
0 notes
mybeky · 12 years
Text
在 Kindle 上看 Apple 的开发文档
把 Apple 的 Documentation 转成了 mobi 格式,刚好400本,方便在 kindle 上阅读。
这里拿: http://cl.ly/DCUI
效果:
3 notes · View notes
mybeky · 12 years
Text
推送 Amazon Personal Documents 到 iPhone
貌似在 Amazon 的 Manage Your Kindle 后台里是不能推送 Personal Documents 到除了 Kindle 外的其他 device 的:
修改了下 HTML,手动把下面两个选项 enable 后,居然推送成功了,不过测试了一下在 iPhone 上好像是不能同步阅读进度的。
最后,把这个小 hack 写成了一个用户脚本,http://userscripts.org/scripts/show/119403
0 notes
mybeky · 13 years
Photo
Tumblr media
Thanks, Steve.
Posting designs like this one makes me paranoid, because I can’t shake the feeling that it’s not original. I enjoyed the process regardless, but please let me know if somebody else beat me to the idea!
Thoughts?
188K notes · View notes
mybeky · 13 years
Link
Sublime Text 2 的 vi mode 貌似还不错,试试先
因为 Textmate 2 迟迟不出来,导致 Mac 下的类 Textmate 编辑器像雨后春笋一样多,不过使用一圈下来,还是觉得 Sublime Text 2 完成度及可使用度比较高。(注意:以下内容以 Mac 为主,其它平台大同小异。)
1,默认的图标比较丑,使用 Nate Beaty 设计的一个图标替换掉。
替换 /Applications/Sublime Text 2.app/Contents/Resources 目录下的同名文件。
2,修改成我喜欢的字体和大小,快捷键 “command + ,” 打开配置文件,加入以下代码:
...
5 notes · View notes
mybeky · 13 years
Text
同步 FanRadio 到 Last.fm
把豆瓣电台里的收听记录 [scrobble][audioscrobbler] 到 [Last.fm][last] 一直是我的一个梦想( Last.fm 在兲朝的速度实在是太过坑爹),先是写过一个 Greasemonkey 脚本 [dbScrobbler][userscripts], 后来又在 gae 上跑了一个定时从豆瓣和虾米抓取收听记录的 app,最后由于豆瓣播放器的升级等原因都失效了。 后来发现 mac 上的豆瓣电台客户端 [FanRadio][rollingcode] 支持 AppleScript 后,一直就在想能不能做点什么,于是昨天和今天边看球边捣鼓了一套同步 Last.fm 的方法出来(其实最后没用 AppleScript …… -_-)。 1. 安装 Last.fm 官方客户端, 2. 安装我写的这个 Growl 插件,[LastFanPlugin.growlView][cl] (双击或者丢到 `~/Library/Application Support/Growl/Plugins/`) 3. Growl 中设置如下: [![lastfan-growl-settings][cl 2]][cl 3] 同时运行 FanRadio 和 Last.fm,就可以 scrobbling 啦 ![FanRadio-LastFM][cl 4] 已知缺点: 1. 不能显示 FanRadio 的 Growl 通知了 ![FanRadio-Growl-Notification][cl 5] 不过可以用 Last.fm 的简陋版本勉强替代 ![LastFM-Growl_Notification](http://cl.ly/ACyM/Screen_Shot_2011-09-18_at_4.53.51_AM.png) 2. 如上图,由于不能获取歌曲长度,每首歌都是三分钟 Growl 插件的源码放在了 github, [audioscrobbler]: http://www.audioscrobbler.net/ [cl]: http://cl.ly/AEUJ [cl 2]: http://cl.ly/AEK2/LastFanRadio-Settings-m.png [cl 3]: http://cl.ly/AEIp/LastFanRadio-Settings.png [cl 4]: http://cl.ly/ADqy/FanRadio-LastFM.png [cl 5]: http://cl.ly/ACuu/Screen_Shot_2011-09-18_at_2.26.51_AM.png [last]: http://last.fm [rollingcode]: http://www.rollingcode.org/app/fanradio/ [userscripts]: http://userscripts.org/scripts/show/61447
1 note · View note
mybeky · 13 years
Text
自定义 nvALT 的 markdown 样式
nvALT 某次更新后就支持自定义 markdown 的样式了,修改 ~/Library/Application Support/Notational Velocity 目录下的 custom.css 和 template.html 即可
不过我懒得自己写样式,Google 了一番只找到了 这个 改自一款收费 Wordpress 主题 Space 的 markdown 样式勉强能用。
后来看了 @justin7974 的一篇博客, 买了 Marked 这个 app,发现里面自带了三款很不错的主题:
然后就去它的资源目录里找,果然发现了几个 css:
把 antique.css,github.css,modern.css,swiss.css 随便一个改成 custom.css,覆盖 ~/Library/Application Support/Notational Velocity 目录下的同名文件即可。
使用效果(我用的 Antique 主题):
如果你没装 Marked,可以在 这里 下载打包好的 css 文件
11 notes · View notes
mybeky · 13 years
Text
在 Firefox/Chrome 下使用 Instapaper Beyond
[Instapaper Beyond](http://brettterpstra.com/instapaperbeyond/) 是一个 Safari 扩展,作用是让 Instapaper.com 支持各种快捷键: ![Instapaper Beyond Shortcuts](http://cl.ly/1a1D2h0I2A0w0y000l3D/Screen_Shot_2011-09-14_at_12.20.27_AM.png) 由于我的浏览器主力是 Firefox 和 Chrome,所以把 Instapaper Beyond 做了个 userscript 版本: Chrome 是在 [Tampermonkey](https://chrome.google.com/webstore/detail/dhdgffkkebhmkfjojejmpbldmpobfkfo) 下测试的
0 notes
mybeky · 13 years
Text
又一张 vim cheatsheet
http://michael.peopleofhonoronly.com/vim/
居然是拿 excel 2011 做的
via
7 notes · View notes