This file contains hidden or 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
export WORKON_HOME=$HOME/.virtualenvs | |
source /usr/bin/virtualenvwrapper.sh | |
This file contains hidden or 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
mysql> GRANT ALL PRIVILEGES ON *.* TO kitagamiadmin@"%" | |
-> IDENTIFIED BY 'パスワード' WITH GRANT OPTION; | |
mysql> GRANT ALL PRIVILEGES ON *.* TO kitagamiadmin@localhost | |
-> IDENTIFIED BY 'パスワード' WITH GRANT OPTION; | |
mysql> FLUSH PRIVILEGES; |
This file contains hidden or 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
mkdir -p ${HOME}/Data/mysql-5.6.10 | |
mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=${HOME}Data/mysql-5.6.10 --tmpdir=/tmp | |
cd /usr/local/opt/mysql | |
# datadir = のパスを追記する | |
vim | |
# パスワードを設定する | |
mysqladmin -u root password "パスワード" | |
# 起動スクリプトの配置 |
This file contains hidden or 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
sudo cp /etc/apt/sources.list /etc/apt/security.sources.list | |
# securityセクションのみ残す | |
sudo vim /etc/apt/security.sources.list | |
sudo apt-get upgrade -o Dir::Etc::SourceList=/etc/apt/security.sources.list |
This file contains hidden or 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
// Debugビルド時のみNSLogを出力する | |
#ifdef DEBUG | |
#define DebugNSLog(...); NSLog(__VA_ARGS__); | |
#else | |
#define DebugNSLog(...); // NSLog(__VA_ARGS__); | |
#endif |
This file contains hidden or 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
.DS_Store | |
*.xcodeproj/*.mode1v3 | |
*.xcodeproj/*.pbxuser | |
*.xcodeproj/*.xcworkspace | |
*.xcodeproj/xcuserdata/ | |
build/ | |
.svn/ | |
*.swp | |
*.nib | |
Thumbs.db |
This file contains hidden or 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
! | |
! Swap Caps_Lock and Control_L | |
! | |
remove Lock = Caps_Lock | |
remove Control = Control_L | |
keysym Control_L = Caps_Lock | |
keysym Caps_Lock = Control_L | |
add Lock = Caps_Lock | |
add Control = Control_L |
This file contains hidden or 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
Host * | |
ForwardAgent yes | |
ServerAliveInterval 200 | |
ForwardX11 no | |
################################# | |
# Private | |
################################# | |
# 旧プラン(512M) |
This file contains hidden or 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
#import <Foundation/Foundation.h> | |
// gcc -framework Foundation XX.m -o XX.exe | |
int main(int argc, const char *argv[]){ | |
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; | |
// STEP1 普通にjoinする(空の要素がない場合) | |
NSArray *array_part_a = [NSArray arrayWithObjects:@"1",@"2",@"3", @"4", @"5", @"6", nil]; | |
NSString *string_a = [array_part_a componentsJoinedByString:@" / "]; |
This file contains hidden or 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 # | |
# MacOSX > brew install dialog | |
# ubuntu > apt-get install dialog | |
# | |
tmp=`mktemp /tmp/dialog.XXXXXXXX` || exit 1 | |
dialog --inputbox "May I have your name, please?" 8 70 "Anonymous Coward" 2> "$tmp" | |
dialog --msgbox "Your name is `cat "$tmp"`" 8 70 | |
rm "$tmp" |
NewerOlder