Skip to content

Instantly share code, notes, and snippets.

View ParsifalC's full-sized avatar
🏀
Where Amazing Happens!

Parsifal ParsifalC

🏀
Where Amazing Happens!
View GitHub Profile
@ParsifalC
ParsifalC / GIF-Screencast-OSX.md
Created January 13, 2017 08:34 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@ParsifalC
ParsifalC / 完全移除CocoaPods
Last active April 5, 2016 03:15
完全移除CocoaPods
$ gem uninstall cocoapods
$ gem uninstall cocoapods-core
$ gem uninstall cocoapods-downloader
$ sudo rm -fr ~/Library/Caches/CocoaPods/
$ sudo rm -fr ~/.cocoapods/repos/master/
$ sudo rm -fr Pods/
https://guides.cocoapods.org/using/troubleshooting.html
> gem source -a https://gems.ruby-china.org/
Error fetching https://gems.ruby-china.org/:
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://gems.ruby-china.org/specs.4.8.gz)
http://railsapps.github.io/openssl-certificate-verify-failed.html
依次执行下列命令 更新ssl证书
$ rvm -v
$ rvm osx-ssl-certs status all
$ rvm osx-ssl-certs update all
@ParsifalC
ParsifalC / Cocoapod source
Created December 4, 2015 06:56
常用的Cocoapod source
source 'https://git.oschina.net/lexrus/specs.git'
source 'http://git.oschina.net/akuandev/Specs.git'
source 'https://github.com/artsy/Specs.git'
source 'https://github.com/CocoaPods/Specs.git'
@ParsifalC
ParsifalC / libReveal.plist
Last active July 25, 2016 12:58
Reveal 越狱机子
{
Filter = {
Bundles = (
"com.sina.weibo",
"com.tencent.xin",
"com.tencent.mqq",
"com.apple.AppStore",
);
};
}
@ParsifalC
ParsifalC / 常用应用的schemes
Created November 13, 2015 05:33
常用应用的schemes
<key>LSApplicationQueriesSchemes</key>
<array>
<string>wechat</string>
<string>weixin</string>
<string>sinaweibohd</string>
<string>sinaweibo</string>
<string>sinaweibosso</string>
<string>weibosdk</string>
<string>weibosdk2.5</string>
<string>mqqapi</string>
@ParsifalC
ParsifalC / launch_sublime_from_terminal.markdown
Created November 10, 2015 07:34 — forked from artero/launch_sublime_from_terminal.markdown
Launch Sublime Text 2 from the Mac OS X Terminal

Launch Sublime Text 2 from the Mac OS X Terminal

Sublime Text 2 ships with a CLI called subl (why not "sublime", go figure). This utility is hidden in the following folder (assuming you installed Sublime in /Applications like normal folk. If this following line opens Sublime Text for you, then bingo, you're ready.

open /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl

You can find more (official) details about subl here: http://www.sublimetext.com/docs/2/osx_command_line.html

Installation

@ParsifalC
ParsifalC / 命令
Created July 1, 2015 09:12
Xcode升级后插件更新
find ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins -name Info.plist -maxdepth 3 | xargs -I{} defaults write {} DVTPlugInCompatibilityUUIDs -array-add `defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID`
# 去掉了curl的-sk参数,-s为静默状态(不提示错误),-k为允许不适用ssl
curl https://cloud.github.com/downloads/square/PonyDebugger/bootstrap-ponyd.py | \
python - --ponyd-symlink=/usr/local/bin/ponyd ~/Library/PonyDebugger
# 报错 Could not find any downloads that satisfy the requirement pybonjour (from ponydebugger),运行下面的命令
# activate your virtualenv
source ~/Library/PonyDebugger/bin/activate
# update the ponyd source
sudo pip install -U -e git+https://github.com/square/PonyDebugger.git#egg=ponydebugger --allow-external pybonjour --allow-unverified pybonjour
# updates chrome dev tools source