Skip to content

Instantly share code, notes, and snippets.

View inoccu's full-sized avatar

Kenichi Inoue inoccu

View GitHub Profile
@inoccu
inoccu / file0.txt
Created February 26, 2014 10:07
Cordova(PhoneGap)でのアプリ開発のはじめ方 ref: http://qiita.com/inoccu/items/2e07b550c3ab1e24b7b0
nodebrew install v0.11.11
nodebrew use v0.11.11
@inoccu
inoccu / file0.txt
Created February 28, 2014 01:15
Cordova(PhoneGap)でiOSアプリを作るための環境構築 ref: http://qiita.com/inoccu/items/a7b975794088cbfc78b5
xcode-select --install
@inoccu
inoccu / AppDelegate.m
Created April 2, 2014 04:51
PhoneGap(iOS)でカスタムURLスキームを実装する ref: http://qiita.com/inoccu/items/3eabc960ad6216ffbda3
NSString* jsString = [NSString stringWithFormat:@"window.handleOpenURL(\"%@\");", url];
@inoccu
inoccu / index-template.js
Last active December 14, 2015 18:39
Template of PhoneGap + jQuery Mobile + Backbone.js
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="format-detection" content="telephone=no" />
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
<link rel="stylesheet" type="text/css" href="css/index.css" />
<link rel="stylesheet" type="text/css" href="css/jquery.mobile.min.css" />
<title>Sample Title</title>
</head>
@inoccu
inoccu / install_oracle_jdk
Last active December 16, 2015 19:30
install Oracle JDK
chmod 755 jdk-6u37-linux-i586-rpm.bin
./jdk-6u37-linux-i586-rpm.bin
java -version
java version "1.6.0_37"
Java(TM) SE Runtime Environment (build 1.6.0_37-b06)
Java HotSpot(TM) Client VM (build 20.12-b01, mixed mode, sharing)
tar xvzf mysql-connector-java-5.1.22.tar.gz
sudo useradd scheduler
passwd scheduler # パスワードを設定しておく
su - scheduler
tar xvzf scheduler_linux.1.3.12.2324.tar.gz
cd jobscheduler.1.3.12.2324/
./setup.sh # rootのパスワードを聞かれるので答えます
/opt/sos-berlin.com/jobscheduler/scheduler/bin/jobeditor.sh
/opt/sos-berlin.com/jobscheduler/scheduler/bin/jobscheduler.sh stop
#64bit版のJavaを使うようにする
test -z "$JAVA_HOME" && JAVA_HOME="/usr/lib/jvm/jre-1.7.0-openjdk.x86_64"