Skip to content

Instantly share code, notes, and snippets.

TakkuMattsu TakkuMattsu

Block or report user

Report or block TakkuMattsu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@TakkuMattsu
TakkuMattsu / ssh_login.ttl
Last active Dec 18, 2015
TeraTerm Macro for ssh
View ssh_login.ttl
; ========================================
; File : ssh_login.ttl
; Author : TakkuMattsu
; Description : ssh login
; ========================================
; User Edit
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
username = 'UserName'
hostname = 'HostName'
@TakkuMattsu
TakkuMattsu / xopen
Created Nov 26, 2013
Open Xcode from terminal
View xopen
# xcode open command
alias xopen='open -a /Applications/Xcode.app'
@TakkuMattsu
TakkuMattsu / changeSvndiff.sh
Last active Aug 29, 2015
Change Subversion diff. normal diff or svndiffwrapper.
View changeSvndiff.sh
# !/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'
@TakkuMattsu
TakkuMattsu / wrapperSvndiff
Created Feb 13, 2014
Subversion diff wrapper Script.
View wrapperSvndiff
#!/bin/sh
DIFF="/usr/bin/vimdiff"
# Use FileMerge For Mac
#DIFF="/usr/bin/opendiff"
echo "$DIFF $6 $7"
$DIFF $6 $7
@TakkuMattsu
TakkuMattsu / refreshXcode.sh
Created Feb 27, 2014
Delete Xcode Cache Script.
View refreshXcode.sh
#!/bin/bash
# =====================================
# variable
CACHE_PATH=~/Library/Developer/Xcode/DerivedData
# =====================================
# function
@TakkuMattsu
TakkuMattsu / XXXX-Prefix.pch
Last active Aug 29, 2015
XcodeColors用のマクロ
View XXXX-Prefix.pch
//
// 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 / ExternalOutputDetecte.m
Created Jul 25, 2014
外部出力(AirPlay/HDMI)をAVPlayerを使わずに検知する
View ExternalOutputDetecte.m
- (BOOL)isExternalPlayback
{
__block BOOL isExternalOutput = NO;
// 入出力を取得
AVAudioSessionRouteDescription *audioRouteDesc = [[AVAudioSession sharedInstance] currentRoute];
// 出力を取得
NSArray
@TakkuMattsu
TakkuMattsu / xopen
Last active Aug 29, 2015
xopen command can open the Xcode project.
View xopen
#!/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 / killmeIcon.rb
Created Jun 2, 2015
http://killmebaby.tv/special_icon.html にあるキルミーベイベーのアイコンを取得し保存するスクリプト
View killmeIcon.rb
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'
You can’t perform that action at this time.