This file contains 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/local/bin/ruby | |
# これは最初に書いた古いバージョン。 | |
# 現在運用中の新しいやつはここ。 | |
# https://github.com/pooza/ginseng/blob/master/bin/nagios/check-df.rb | |
require 'net/ssh' | |
require 'timeout' | |
require 'optparse' |
This file contains 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
require 'syslog/logger' | |
config.logger = Syslog::Logger.new('redmine') | |
config.log_level = :info |
This file contains 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
interface "em0" { | |
supersede domain-name-servers 127.0.0.1; | |
} |
This file contains 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
memcached_profiles="foo bar" | |
memcached_foo_enable="YES" | |
memcached_foo_flags="-p 0 -s /tmp/memcached_foo.sock" | |
memcached_bar_enable="YES" | |
memcached_bar_flags="-p 0 -s /tmp/memcached_bar.sock" |
This file contains 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
add_new_resolv_conf () { | |
return 0 | |
} |
This file contains 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/sh | |
# PROVIDE: mastodon | |
# REQUIRE: LOGIN | |
# BEFORE: securelevel | |
# KEYWORD: shutdown | |
# Add the following line to /etc/rc.conf to enable `mastodon': | |
# | |
#mastodon_enable="YES" |
This file contains 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
// 使い方 | |
// | |
// このソースを streaming/node_modules/bslogger.js という名前で保存。 | |
// shell-escapeが必要なので、streamingディレクトリに居る時に npm install shell-escape とか実行。 | |
// | |
// そうしたら、index.jsの以下の行を、 | |
// import log from 'npmlog'; | |
// | |
// 以下の2行に置き換え。log.nameはお好みに合わせて。 | |
// import log from 'bslogger'; |
This file contains 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
~ % whois precure.ml pooza@host2.b-shock.local | |
Domain name: | |
PRECURE.ML | |
Organisation: | |
Mali Dili B.V. | |
Point ML administrator | |
P.O. Box 11774 | |
1001 GT Amsterdam |
This file contains 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 | |
require 'socket' | |
require 'fileutils' | |
def get_fqdn (name) | |
parts = Socket.gethostname.split('.') | |
parts.unshift(name) | |
parts.push('local') unless parts.last == 'local' | |
return parts.join('.') |
This file contains 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
listen = * | |
login_access_sockets = tcpwrap | |
# auth | |
auth_verbose = yes | |
disable_plaintext_auth = no | |
auth_mechanisms = plain login | |
passdb { | |
driver = passwd | |
} |
OlderNewer