Skip to content

Instantly share code, notes, and snippets.

@nak1114
nak1114 / install-rbenv-win.bat
Last active June 19, 2023 08:44
Batch for install rbenv-win (require windows Vista+)
@echo off
setlocal
rem Set your rbenv directry
set instpath="%USERPROFILE%\.rbenv-win"
rem Clone git repositry
call git clone https://github.com/nak1114/rbenv-win.git %instpath%
rem Config path
@nak1114
nak1114 / test.json
Last active February 22, 2017 21:08
{
"title" : "core-0.12.1 , 日本語 mod3",
"label" : {
"product_name" : "生産物名称",
"require_product_speed" : "要求生産速度[units/sec]",
"production_facility" : "生産施設"
},
"facilities" : {
"crafting" : [["assembling_machine_1", "assembling_machine_2"],
["assembling_machine_2", "assembling_machine_2"],
[
{
"type": "korok",
"lat": 30,
"lng": 10,
"comment": "'hoge'",
"roots": [
{
"lat": -10,
"lng": -10,
@nak1114
nak1114 / add_route.rb
Last active September 3, 2017 08:56
VPN接続時に自動的にroute設定するスクリプト(要管理者権限)
#!ruby
vpn_name="HOME"
vpn_ip="10.22.33"
m=/^\s*(\d+)\.{20,}#{vpn_name}$/.match `route print`
system "route delete #{vpn_ip}.0"
system("route -p add #{vpn_ip}.0 mask 255.255.255.0 #{vpn_ip}.1 METRIC 1 IF "+m[1]) if m
puts `route print`
FROM ubuntu:latest
RUN apt-get install -y language-pack-ja-base language-pack-ja
update-locale LANG=ja_JP.UTF-8 LANGUAGE=”ja_JP:ja”
# for Java
ENV JAVA_HOME /usr/lib/jvm/java-8-oracle
RUN echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && \
apt-get update && \