Skip to content

Instantly share code, notes, and snippets.

@takkumattsu
takkumattsu / .bashrc
Last active July 3, 2016 00:54
Linuxサーバ用の.bashrc
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=
@takkumattsu
takkumattsu / モバイルCIダベリnight.md
Last active November 27, 2015 07:45
しゃべる内容の下書き

iOS開発での特殊納品形態によるリリースの自動化が出来なかった話


アジェンダ

  • 自己紹介
  • 開発構成
  • 開発フロー
  • 問題点
@takkumattsu
takkumattsu / killmeIcon.rb
Created June 2, 2015 17:32
http://killmebaby.tv/special_icon.html にあるキルミーベイベーのアイコンを取得し保存するスクリプト
require 'open-uri'
require 'nokogiri'
# Author:TakkuMattsu
# thanks:
# http://somethingpg.hatenablog.com/entry/20120603/1338715064
# https://gist.github.com/ejo090/4480809f0a683255803e
#
url = 'http://killmebaby.tv/special_icon.html'
#!/bin/sh
vimdiff "$2" "$5"
@takkumattsu
takkumattsu / xopen
Last active August 29, 2015 14:09
xopen command can open the Xcode project.
#!/bin/sh
if [ -z "$1" ]; then
echo "Please specify xcode project file's directory to the argument"
echo ""
echo "$ xopen \"\$PRJ_DIR\""
echo ""
exit 1
fi
@takkumattsu
takkumattsu / ExternalOutputDetecte.m
Created July 25, 2014 18:01
外部出力(AirPlay/HDMI)をAVPlayerを使わずに検知する
- (BOOL)isExternalPlayback
{
__block BOOL isExternalOutput = NO;
// 入出力を取得
AVAudioSessionRouteDescription *audioRouteDesc = [[AVAudioSession sharedInstance] currentRoute];
// 出力を取得
NSArray
@takkumattsu
takkumattsu / XXXX-Prefix.pch
Last active August 29, 2015 14:01
XcodeColors用のマクロ
//
// Prefix header for all source files of the 'XXX' target in the 'XXX' project
//
#import <Availability.h>
#ifndef __IPHONE_3_0
#warning "This project uses features only available in iOS SDK 3.0 and later."
#endif
@takkumattsu
takkumattsu / refreshXcode.sh
Created February 27, 2014 01:01
Delete Xcode Cache Script.
#!/bin/bash
# =====================================
# variable
CACHE_PATH=~/Library/Developer/Xcode/DerivedData
# =====================================
# function
@takkumattsu
takkumattsu / wrapperSvndiff
Created February 13, 2014 06:25
Subversion diff wrapper Script.
#!/bin/sh
DIFF="/usr/bin/vimdiff"
# Use FileMerge For Mac
#DIFF="/usr/bin/opendiff"
echo "$DIFF $6 $7"
$DIFF $6 $7
@takkumattsu
takkumattsu / changeSvndiff.sh
Last active August 29, 2015 13:56
Change Subversion diff. normal diff or svndiffwrapper.
# !/bin/sh
CONFIG=/Users/takkumattsu/.subversion/config
FLAG=$1
# Your svn config file
ENABLE_WORD="diff-cmd=\/Users\/takkumattsu\/bin\/wrapperSvndiff"
DISABLE_WORD='#diff-cmd=\/Users\/takkumattsu\/bin\/wrapperSvndiff'
CMD_ENABLE='diff-cmd=colordiff'