Skip to content

Instantly share code, notes, and snippets.

View rkaneko's full-sized avatar
🎯
Focusing

Ryota Kaneko rkaneko

🎯
Focusing
View GitHub Profile
@rkaneko
rkaneko / install_intellij_on_Ubuntu.txt
Last active December 18, 2015 01:29
Install IntelliJ IDEA on Ubuntu .
### You might want to install Oracle-jdk , but don't have to do .
# get IntelliJ IDE from http://www.jetbrains.com/idea/download/index.html to ~/Downloads/
$ pwd
/home/rkaneko/Downloads/
$ ls
ideaIC-12.1.3.tar.gz
@rkaneko
rkaneko / install_oracle_jdk_on_Ubuntu.txt
Last active December 18, 2015 01:29
Install Oracle JDK on Ubuntu with aptitude .
$ java -version
java version "1.7.0_21"
OpenJDK Runtime Environment (IcedTea 2.3.9) (7u21-2.3.9-0ubuntu0.12.04.1)
OpenJDK Server VM (build 23.7-b01, mixed mode)
## optional begin (If you can't add-apt-repository command , do next .)
# we must install python-software-properties in order to install 'software-properties-common'
$ sudo aptitude install python-software-properties
@rkaneko
rkaneko / install_aptitude.txt
Last active December 18, 2015 01:29
Install aptitude .
$ sudo apt-get -y install aptitude
########################################################
# aptitude cheet sheet ref
## http://www.garunimo.com/program/linux/aptitude.xhtml
# help
@rkaneko
rkaneko / install_oracle_jdk_on_CentOS.txt
Last active December 18, 2015 05:48
Install Oracle jdk1.7.x on CentOS .
# Firstly, download oracle jdk from Oracle web site .
# ref website
# http://ameblo.jp/kurabeat/entry-11516745503.html
# install jpackage-utils
$ sudo yum install jpackage-utils
# install jdk
@rkaneko
rkaneko / install_play_on_centos.txt
Last active December 18, 2015 20:29
install play framework v2.1.0 & sbt v0.12.2 on CentOS .
## install play
# download play.zip
$ cd ~
$ mkdir /workspace
$ cd workspace
$ wget http://downloads.typesafe.com/play/2.1.0/play-2.1.0.zip
$ ls
play-2.1.0.zip
$ unzip play-2.1.0.zip
@rkaneko
rkaneko / rewrite.conf
Last active December 18, 2015 20:59
Apache config file for converting http request to https request . If user request 80 port access, apache rewrite 443 port access .
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteLog "logs/rewrite_log"
RewriteLogLevel 0
#RewriteLogLevel 1
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R,L]
</IfModule>
@rkaneko
rkaneko / Stub.scala
Created July 9, 2013 02:48
HelloScalaWolrd .
package com.rkaneko
object Stub {
def main(args: Array[String]) {
val list = "Hello"::"Scala"::"World"::"!"::Nil
println(list.mkString(" "))
}
}
@rkaneko
rkaneko / HelloScalaWorld.md
Last active December 19, 2015 12:19
Hello Scala World with sbt and giter8 .

Hello Scala World !

env

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu

Description: Ubuntu 12.04.2 LTS

@rkaneko
rkaneko / install_sbt_on_ubuntu.md
Last active December 19, 2015 16:29
Install not sbt.zip but sbt.deb on Ubuntu .

Install sbt on Ubuntu

# cd ~/workspace

# download sbt.deb from http://scalasbt.artifactoryonline.com/scalasbt/sbt-native-packages/org/scala-sbt/sbt//0.12.4/sbt.deb
$ wget http://scalasbt.artifactoryonline.com/scalasbt/sbt-native-packages/org/scala-sbt/sbt/0.13.1/sbt.deb

$ ls

sbt.deb

@rkaneko
rkaneko / .vimrc.failure
Last active December 19, 2015 18:38
^Mの変換が上手くいかない。。。 normal modeから :%s/^M//ge ( ^M は <Ctrl+v> Enter のように入力しています。 ) と打つのと同様のことを実現する関数を作り、normal modeから :RemakeXML と入力して下記サンプル ( hoge.xml ) の ^M 部分の変換を実現したい。
"see : http://www.kaoriya.net/blog/2012/02/09/
function! s:remake_xml()
%s/\n//ge
endfunction
command! -nargs=0 RemakeXML call <SID>remake_xml()