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
for f in *.svg; do cairosvg $f -f png -o $f.png; done |
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
/*/../usr/bin/true | |
source="$0" | |
compiled="$0"c | |
if [[ "$source" -nt "$compiled" ]]; then | |
DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer xcrun swiftc -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -g "$source" -o "$compiled" || exit | |
fi | |
"$compiled" |
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
#!/bin/bash | |
# 解析 xcodeproj 的 Ruby 库 - https://github.com/CocoaPods/Xcodeproj | |
gem install --no-ri 'xcodeproj' | |
# xcoderbuild 的 Ruby 封装 - https://github.com/rayh/xcoder | |
gem install --no-ri 'xcoder' | |
# Xcode 工程配置工具 - https://github.com/thoughtbot/liftoff | |
gem install --no-ri 'liftoff' |
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 Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>com.shadowsocks.chinadns</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/usr/local/bin/chinadns</string> | |
<string>-c</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
// | |
// LTLog.h | |
// | |
// Created by Lex on 6/29/14. | |
// Copyright (c) 2014 LexTang.com. All rights reserved. | |
// https://gist.github.com/lexrus/8c6414e7c0177e9e66ea | |
// | |
#import <Foundation/Foundation.h> |
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
# opening and closing windows and popovers | |
defaults write -g NSAutomaticWindowAnimationsEnabled -bool false | |
# smooth scrolling | |
defaults write -g NSScrollAnimationEnabled -bool false | |
# showing and hiding sheets, resizing preference windows, zooming windows | |
# float 0 doesn't work | |
defaults write -g NSWindowResizeTime -float 0.001 |
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
[program:chinadns] | |
command=/usr/local/bin/chinadns | |
numprocs=1 | |
autostart=true | |
autorestart=unexpected | |
startsecs=2 | |
startretries=3 | |
stdout_logfile=/var/log/chinadns.log | |
stdout_logfile_maxbytes=2MB | |
stderr_logfile=/var/log/chinadns.error.log |
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
NEW_VER="0.33.1" | |
POD_VER=`pod --version 2>/dev/null`|| POD_VER=`~/.rbenv/shims/pod --version 2>/dev/null` | |
if [[ "$POD_VER" != *$NEW_VER ]]; then | |
echo "error: WTF! You MUST upgrade cocoapods!!!" | |
exit 1 | |
fi |
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
#!/bin/bash | |
find . -name '*.DS_Store' -type f -delete; | |
find . -name 'Thumbs.db' -type f -delete; | |
find . -name '*.swp' -type f -delete; | |
find . -name '*.AppleDouble' -exec rm -rf {} \; | |
find . -name ".AppleDouble" -print0 | xargs -0 rm -rf; | |
find . -name ".TemporaryItems" -print0 | xargs -0 rm -rf; | |
find . -name ".Trashes" -print0 | xargs -0 rm -rf; | |
find . -name ".afpdeleted*" -print0 | xargs -0 rm -rf; |
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
$.post(profileDataURL, function(d){d.provisioningProfiles.map(function(o){console.log('https://developer.apple.com/account/ios/profile/profileEdit.action?type=&provisioningProfileId='+o.provisioningProfileId)})}); |