Skip to content

Instantly share code, notes, and snippets.

View sohda's full-sized avatar
🙃

Tomoko Sohda sohda

🙃
View GitHub Profile
@sohda
sohda / package.json
Last active February 10, 2018 13:21
Try AWS Rekognition with node.js
{
"dependencies": {
"aws-sdk": "^2.192.0",
"fs-extra": "^5.0.0"
}
}
@sohda
sohda / rbenv4win.md
Last active May 9, 2016 06:12
rbenv環境構築手順 (MacOS)

Windows使いのためのrbenv環境構築手順

1. ruby導入

  • 公式サイトから「Ruby 2.X.X」または「Ruby 2.X.X (x64)」をダウンロードする 自分のマシンが32bitか64bitか確認してから適切な方を入れてください
    • 導入する際のバージョンは.ruby-versionで管理する
  • インストーラーを実行し、インストールを完了する

2. Development Kit導入

Windows環境でgem(rubyistが使うライブラリのパッケージ管理ツール)のライブラリをインストールする際に使われるものです。

@sohda
sohda / rbenv4macOS.md
Last active November 29, 2019 03:09
rbenv環境構築手順 (MacOS)

Mac使いのためのrbenv環境構築手順

1. 必要なパッケージをインストール

すでにインストール済みの方は実行しても何もインストールされません。

$ brew install git
$ brew install openssl
$ brew install readline
@sohda
sohda / .gitignore
Last active November 23, 2015 01:28
Try Google Cloud SDK Ruby.
/.bundle
/bundle
*.swp
*.json
@sohda
sohda / Gemfile
Created August 31, 2015 06:25
googlecalendar2irc
source "https://rubygems.org"
gem "google-api-client"
gem "cinch"
@sohda
sohda / Gemfile
Last active December 21, 2015 18:59
call from terminal
source 'https://rubygems.org'
gem 'wangiry'
@sohda
sohda / gist:6109203
Created July 30, 2013 00:48
to allocate more /boot disk space for Ubuntu
dpkg -l | grep linux-image
sudo apt-get remove --purge linux-image-X.X.X-XX-generic
#!/bin/ruby
# WIP!
README =<<ME
Usage:
ruby to_fluentd [command] [output file]
[command]: acceptable command is below
dmesg, last, lastlog, statistics
@sohda
sohda / install-redhat.sh
Last active December 18, 2015 00:19
fluetnd installation
echo "This script requires superuser access to install rpm packages."
echo "You will be prompted for your password by sudo."
# clear any previous sudo permission
sudo -k
# run inside sudo
sudo sh <<SCRIPT
# add treasure data repository to yum