Skip to content

Instantly share code, notes, and snippets.

yum update -y
yum install wget -y
yum install bind-utils -y
yum install vim -y
yum install git -y
yum install gcc gcc-c++ -y
@tomoemon
tomoemon / gist:16e2b593cc029a470534
Last active August 29, 2015 14:11
Elasticsearch test script
curl -XPUT localhost:9200/group -d '{
"mappings": {
"person": {
"properties": {
"name": {
"type": "string"
}
}
}
}
@tomoemon
tomoemon / gist:4f1042f8fccf02efd52a
Last active August 29, 2015 14:10
Elasticsearch startup script on GCE
# install java
apt-get update
apt-get -y install openjdk-7-jre-headless
# install elasticsearch
VERSION="1.4.2"
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-$VERSION.tar.gz -O /tmp/elasticsearch-$VERSION.tar.gz
tar zxvf /tmp/elasticsearch-$VERSION.tar.gz -C /usr/local/
ln -s /usr/local/elasticsearch-$VERSION /usr/local/elasticsearch
cd /usr/local/elasticsearch
@tomoemon
tomoemon / gist:74874409fde23ed1317a
Last active December 15, 2018 14:56
Chocolatey

Setup Chocolatey

  1. install chocolatey (https://chocolatey.org/)
  2. open cmd.exe with administrative privileges
  3. @powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin

Install using Chocolatey

  1. install dropbox
  2. choco install dropbox
@tomoemon
tomoemon / Vagrantfile
Last active November 6, 2023 13:27
sample Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
@tomoemon
tomoemon / gist:9903463
Last active August 29, 2015 13:57
Android 開発環境構築
@tomoemon
tomoemon / setup_python.sh
Last active August 29, 2015 13:57
Setup Python3 to local
#!env sh
## -- usage --
## sh setup_python.sh /home/username/local/python34
# sudo yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel
# sudo apt-get install libssl-dev openssl libsqlite3-dev
PYVER="3.4.2"
PYDIR=$1
@tomoemon
tomoemon / gist:9637697
Last active August 29, 2015 13:57
Luke (Lucene Index VIewer) ビルドメモ
@tomoemon
tomoemon / gist:9562186
Created March 15, 2014 05:22
elasticsearch
@tomoemon
tomoemon / gist:9304216
Last active August 29, 2015 13:56
Windows 上の IntelliJ で Scala を使えるようにする
  1. IntelliJ Community Edition をインストール
  2. IntelliJ の Scala plugin をインストールする
  3. Scala 本体をインストール
  • インストールオプションから Sources が抜けているのでチェックをつける
  • インストール先はスペースが入っていないディレクトリにする
  1. 環境変数に SCALA_HOME を追加する(値は Scala のインストール先ディレクトリ)
  2. IntelliJ を起動して Scala module のプロジェクトを作成しようとすると、document が入ってないと言われるため、IntelliJ が求める場所にシンボリックリンクを作成する
  • mklink /D %SCALA_HOME%/api %SCALA_HOME%/api