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/python | |
# -*- coding:utf-8 -*- | |
# | |
# iOS项目输出纯代码的word文档 | |
# .m 与 .swift 文件 | |
# 去掉空行 | |
# 去掉注释,包括/** ... */,// 和 #pragma | |
# 去掉引用头文件 | |
import os |
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/python | |
# -*- coding:utf-8 -*- | |
# 把康熙部首替换为简体中文 | |
import os | |
import sys | |
import glob | |
import json | |
# 查看编码 |
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
# install to $HOME/.ramdisk | |
# initramdisk.sh - make a ramdisk, the default size is 6GB. | |
# syncramdisk.sh - sync files of ramdisk to disk, when logout. | |
# makeRamDiskWhenRestart.sh - make Hook, LoginHook and LogoutHook. LoginHook for initramdisk.sh, LogoutHook for syncramdisk.sh. | |
# moveXcodeCacheToRamDisk.sh - run shell above, then move xcode cache folder to ramdisk. | |
# ---------------- initramdisk.sh ------------------ | |
#!/usr/bin/env sh |
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
-- | |
-- Project: Install IPA to Simulator | |
-- Author: Jeffrey Jia | |
-- Date: 2017 年 9 月 26 日 | |
-- | |
on open fileList | |
repeat with theFilePath in fileList | |
set fileInfo to info for file theFilePath | |
if name of fileInfo ends with ".ipa" then |
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
# 基础样式 | |
BasedOnStyle: LLVM | |
## 方案 LK_Cpp Should be used for C, C++, ObjectiveC, ObjectiveC++. | |
Language: Cpp | |
# 缩进宽度 | |
IndentWidth: 4 | |
# 圆括号的换行方式 |
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
openssl x509 -in aps.cer -inform DER -out aps.pem -outform PEM | |
openssl pkcs12 -in aps.p12 -out key.pem -nocerts | |
cat aps.pem key.pem > release.pem |
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/sh | |
# name this .git/hooks/pre-commit | |
# chmod +x .git/hooks/pre-commit | |
# enjoy | |
# so it will work on empty repos | |
if git-rev-parse --verify HEAD >/dev/null 2>&1; then | |
against=HEAD | |
else | |
against=4b825dc642cb6eb9a060e54bf8d69288fbee4904 |
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
# Sets the target folders and the final framework product. | |
# 如果工程名称和Framework的Target名称不一样的话,要自定义FMKNAME# 例如: FMK_NAME = "MyFramework" | |
FMK_NAME=${PROJECT_NAME} | |
# Install dir will be the final output to the framework. | |
# The following line create it in the root folder of the current project. | |
INSTALL_DIR=${SRCROOT}/Products/${FMK_NAME}.framework | |
# Working dir will be deleted after the framework creation. | |
WRK_DIR=build |
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/sh | |
# build.sh | |
# | |
# Created by Jia Yuhui on 24/06/2015. | |
# Copyright 2015 Jia Yuhui. All rights reserved. | |
env=$1 | |
sleepsecond=3 |
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/sh | |
# | |
# resign.sh | |
# | |
# Created by Jia Yuhui on 08/07/2015. | |
# Copyright 2015 Jia Yuhui. All rights reserved. | |
currentPath="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
CERTIFICATE="iPhone Developer: xxx (xxxxxxxx)" # must be in keychain |
NewerOlder