Skip to content

Instantly share code, notes, and snippets.

View Xummer's full-sized avatar
⌨️

Xummer Xummer

⌨️
View GitHub Profile
# Created by http://www.gitignore.io
### Xcode ###
build
*.xcodeproj/*
!*.xcodeproj/project.pbxproj
!*.xcworkspace/contents.xcworkspacedata
### Objective-C ###
@Xummer
Xummer / remove_all_dot_DS_Store.sh
Last active September 21, 2022 00:21
批量删除.DS_Store
rm -rf `find . -name .DS_Store`
@Xummer
Xummer / remove_all_dot_svn.sh
Last active August 29, 2015 13:58
批量删除.svn
rm -rf `find . -type d -name .svn`
@Xummer
Xummer / handlesips.sh
Last active August 29, 2015 13:59
命令行图片处理 sips
# 把图片最大一边压缩到800px,另一边按比例缩放
sips -Z 800 ./*.png
# 顺时针旋转90度
sips -r 90 ./*.png
# 垂直翻转
sips -f vettical ./*.png
#更多命令 sips -h
@Xummer
Xummer / softlinkAll
Created April 24, 2014 10:30
软连接originPath下的所有.h文件到targetPath
#!/bin/sh
mkdir targetPath
find originPath -name "*.h" -print | xargs -I {} ln -s {} targetPath/
@Xummer
Xummer / gist:8a55bc8d06e26766e94c
Created July 22, 2014 10:09
iOS 7 相机隐藏状态栏,dismiss时消除下坠20像素动画
@interface CustomImagePickerController : UIImagePickerController
{
BOOL m_bWillDisappear;
}
@end
@implementation CustomImagePickerController
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
@Xummer
Xummer / iOSAppIcon
Last active August 29, 2015 14:11
Get all size app icon for iOS8&Xcode6
#!/bin/sh
appicon="icon1024.png"
outputDir="AppIcon"
outputNamePrefix="AppIcon"
sizeArray=("29" "40" "50" "57" "58" "60" "72" "76" "80" "87" "100" "114" "120" "144" "152" "180")
@Xummer
Xummer / iOSSDKPath
Created December 16, 2014 02:21
open iOS SDK Dir
open /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/
@Xummer
Xummer / git.md
Last active August 29, 2015 14:11 — forked from suziewong/git.md

1.同一台电脑可以有2个git账号(不同网站的)

首先不同网站,当然可以使用同一个邮箱,比如我的github,gitlab,bitbucket的账号都是monkeysuzie[at]gmail.com 这时候不用担心密钥的问题,因为这些网站push pull 认证的唯一性的是邮箱 比如我的windows 上 2个账号一个gitlab 一个github (用的都是id_rsa)

host github
  hostname github.com
  Port 22

host gitlab.zjut.com