Skip to content

Instantly share code, notes, and snippets.

View takaokouji's full-sized avatar

Kouji Takao takaokouji

View GitHub Profile
@takaokouji
takaokouji / setup_osx.rb
Created January 10, 2017 02:29
MacBookセットアップスクリプト
#!/usr/bin/env ruby
BREWFILE_DIR = '~/local/etc'
module StringAsk
refine String do
def ask?
print("#{self}? [y/N] ")
if /y|yes|t|true/i =~ gets.chomp
return true
@takaokouji
takaokouji / Brewfile
Created January 10, 2017 02:35
Brewfile
cask_args appdir: '/Applications'
tap 'caskroom/cask'
tap 'caskroom/fonts'
tap 'homebrew/bundle'
tap 'homebrew/dupes'
tap 'homebrew/services'
tap 'homebrew/versions'
@takaokouji
takaokouji / cmd.bat
Last active October 26, 2017 13:04
cmd.exe with ruby for RubyInstaller 2.4.2-2
@setlocal
call %~dp0ruby_2.4.2-2-x86\bin\ridk.cmd enable
@if not exist "%HOME%" @set HOME=%HOMEDRIVE%%HOMEPATH%
@if not exist "%HOME%" @set HOME=%USERPROFILE%
@cd /d %~dp0
@start %COMSPEC%
@takaokouji
takaokouji / text
Created September 8, 2024 15:02
build R2P2 on Apple Silicon (M3, MacBook Air), ruby 3.3.5
$ rake
rake test
GIT https://github.com/picoruby/mruby-compiler2.git -> build/repos/host/mruby-compiler2
Cloning into '/Users/kouji/work/picoruby/R2P2/lib/picoruby/build/repos/host/mruby-compiler2'...
remote: Enumerating objects: 115, done.
remote: Counting objects: 100% (115/115), done.
remote: Compressing objects: 100% (96/96), done.
remote: Total 115 (delta 1), reused 89 (delta 1), pack-reused 0 (from 0)
Receiving objects: 100% (115/115), 73.14 KiB | 2.03 MiB/s, done.
Resolving deltas: 100% (1/1), done.