Skip to content

Instantly share code, notes, and snippets.

View nolili's full-sized avatar
:octocat:

NORITAKA KAMIYA nolili

:octocat:
View GitHub Profile
@johanneswuerbach
johanneswuerbach / .travis.yml
Last active May 14, 2024 03:50
Deploy an iOS app to testflight using Travis CI
---
language: objective-c
before_script:
- ./scripts/travis/add-key.sh
after_script:
- ./scripts/travis/remove-key.sh
after_success:
- ./scripts/travis/testflight.sh
env:
global:
@jparishy
jparishy / .lldbinit
Created September 19, 2013 20:20
Print JSON from LLDB
...
command script import ~/.lldb/print_json.py
# Then restart Xcode
@kishikawakatsumi
kishikawakatsumi / Rakefile
Last active August 29, 2015 13:56
Rakefile for testing, building and uploading to Testflight/Crittercism
require "rubygems/version"
require "rake/clean"
require "date"
require 'time'
require "json"
require "open3"
# Application info
APP_NAME = "Ubiregi2"
SDK = "iphoneos"
@edom18
edom18 / file0.m
Last active October 18, 2015 19:04
カスタムContainer View Controllerを作る ref: http://qiita.com/edo_m18/items/8b6b457f82b185ab1f6a
- (void)displayContentController:(UIViewController *)content
{
// 自身のビューコントローラ階層に追加
// 自動的に子ViewControllerの`willMoveToParentViewController:`メソッドが呼ばれる
[self addChildViewController:content];
// 子ViewControllerの`view`を自身の`view`階層に追加
[self.view addSubview:content.view];
// 子ViewControllerに追加が終わったことを通知する
@miyaki
miyaki / configure_liblo_iphone.sh
Last active June 11, 2017 11:07 — forked from mikewoz/configure_liblo_iphone.sh
configure static liblo for armv7, armv7s, arm64 (iOS7)
./configure \
--host="arm-apple-darwin" \
--enable-static \
--disable-shared \
--disable-dependency-tracking \
CC=`xcrun -f --sdk iphoneos clang` \
CXX=`xcrun -f --sdk iphoneos clang++` \
AR=`xcrun -f --sdk iphoneos ar` \
RANLIB=`xcrun -f --sdk iphoneos ranlib` \
NM=`xcrun -f --sdk iphoneos nm` \
@niw
niw / create_yosemite_bootable_disk.sh
Last active April 1, 2019 04:13
How to create a bootable install disk image from Install OS X 10.10 Developer Preview.app
# Since Contents/Resources/createinstallmedia command doesn't work, we need to manually create an disk image.
# Mount InstallESD.dmg
hdiutil mount /Applications/Install\ OS\ X\ 10.10\ Developer\ Preview.app/Contents/SharedSupport/InstallESD.dmg
# Create a temporary writable BaseSystem image.
hdiutil convert /Volumes/OS\ X\ Install\ ESD/BaseSystem.dmg -format UDRW -o rw.dmg
# Get required sectors for packages.
# You'll get these numbers.
@hinovana
hinovana / yoall.sh
Created July 2, 2014 03:16
コマンドの実行が終わったらYOをするシェルスクリプト
#!/bin/sh
#
# コマンドの実行が終わったらYOをするシェルスクリプト
#
# (1) APIユーザを作ってトークンを取得する
# http://yoapi.justyo.co/
#
# (2) APIユーザをフォローする
# APIユーザと普通のユーザは別なので気をつけて
#
@akisute
akisute / UILabel+AKiOS6Compatibility.m
Created October 2, 2014 08:24
You will no longer be suffered by iOS 6 Hiragino fonts.
- (NSString *)text6Compatible
{
return self.text;
}
- (void)setText6Compatible:(NSString *)text6Compatible
{
self.text = text6Compatible;
if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(7)) {
@niw
niw / wgsimlte1-ios9.mobileconfig
Last active August 29, 2015 15:25
iOS 9 でも使える Wireless Gate 用の構成プロファイルです。
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<array>
<dict>
<key>AutoJoin</key>
<true/>
<key>EncryptionType</key>
@alloy
alloy / gist:10481169a3acfeeeba3f7c23c5b1b400
Created September 26, 2016 12:09
Run on iOS 10 device from Xcode 7.
cp -R /Applications/Xcode8.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.0\ \(14A345\) \
/Applications/Xcode7.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport