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
#!/usr/bin/env ruby | |
# パッケージを正規化ベースで自動グルーピングするRubyスクリプト V2 | |
# after_apt.list形式のファイル対応版 | |
# 厳密な正規化とセグメント長辺一致によるグルーピング | |
require 'csv' | |
require 'set' | |
class PackageGrouperV2 | |
def initialize(before_file, after_file) |
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
#!/usr/bin/env bash | |
# Short form: set -u | |
set -o nounset | |
# Short form: set -e | |
# set -o errexit | |
# Allow the above trap be inherited by all functions in the script. | |
# | |
# Short form: set -E |
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
$ sudo curl -L https://toolbelt.treasuredata.com/sh/install-redhat-td-agent2.sh | sh | |
$ sudo td-agent-gem install fluent-plugin-config-expander fluent-plugin-tail-asis fluent-plugin-file-alternative fluent-plugin-forest | |
$ sudo mkdir /var/log/td-agent/pos | |
$ sudo mkdir /var/log/td-agent/buffer | |
$ sudo chown -R td-agent. /var/log/td-agent |