This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"dependencies": { | |
"aws-sdk": "^2.192.0", | |
"fs-extra": "^5.0.0" | |
} | |
} |
- 公式サイトから「Ruby 2.X.X」または「Ruby 2.X.X (x64)」をダウンロードする 自分のマシンが32bitか64bitか確認してから適切な方を入れてください
- 導入する際のバージョンは.ruby-versionで管理する
- インストーラーを実行し、インストールを完了する
Windows環境でgem(rubyistが使うライブラリのパッケージ管理ツール)のライブラリをインストールする際に使われるものです。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/.bundle | |
/bundle | |
*.swp | |
*.json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source "https://rubygems.org" | |
gem "google-api-client" | |
gem "cinch" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'https://rubygems.org' | |
gem 'wangiry' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dpkg -l | grep linux-image | |
sudo apt-get remove --purge linux-image-X.X.X-XX-generic |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/ruby | |
# WIP! | |
README =<<ME | |
Usage: | |
ruby to_fluentd [command] [output file] | |
[command]: acceptable command is below | |
dmesg, last, lastlog, statistics |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
NewerOlder