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
$ git clone https://github.com/kenzo0107/Vagrant-Prometheus |
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
# encoding: utf-8 | |
require 'open-uri' | |
web_contents = open('http://ftp.apnic.net/stats/apnic/delegated-apnic-latest') | |
File.open(web_contents) do |f| | |
while line = f.gets | |
if line =~ /ipv4/ && line =~ /JP/ | |
contents = line.split('|') | |
ip = contents[3] | |
puts ip |
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/sh | |
# remote serverへ転送するローカルファイル. | |
LOCAL_FILE="/tmp/*.csv" | |
# remote server 情報. | |
REMOTE_IP="**.**.**.**" | |
REMOTE_USER="user" | |
REMOTE_PASS="password" | |
REMOTE_PATH="/path/to/application/" |
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
<?php | |
class LineBotApi { | |
/* 設定箇所 start */ | |
const CHANNEL_ID = 'xxxxxxxxxx'; | |
const CHANNEL_SECRET = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'; | |
const MID = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'; | |
/* 設定箇所 end */ |
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
PidFile=/var/run/zabbix/zabbix_agentd.pid | |
LogFile=/var/log/zabbix/zabbix_agentd.log | |
LogFileSize=0 | |
# DebugLevel=3 | |
EnableRemoteCommands=1 | |
Server=<zabbix-server domain or global ip> | |
ListenPort=10050 | |
ServerActive=<zabbix-server domain or global ip> |
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/sh | |
# IP から HOST 情報取得 | |
# IP一覧 | |
IP_LIST_TXT=ip_list.txt | |
# 94.23.2.218 | |
# 81.143.127.209 | |
# 188.121.41.145 |
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
# /etc/postfix/main.cf | |
queue_directory = /var/spool/postfix | |
command_directory = /usr/sbin | |
daemon_directory = /usr/libexec/postfix | |
data_directory = /var/lib/postfix | |
mail_owner = postfix | |
myhostname = <domain> | |
mydomain = <domain> | |
myorigin = $mydomain |
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
@Statsbot sessions [today, yesterday, this week, last week, this month, last month, this year] |
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
# [bitly Generic Access Token] は https://bitly.com/a/oauth_apps より 生成してください。 | |
# | |
# 以下のようなinputボックスを想定しています。 | |
# <input type="text" name="hogehoge" value="" class="bitly"> | |
var generateUrl = (function () { | |
// 短縮化するURLの文字列数. 以下の場合30文字未満の場合短縮化しない。 | |
var SHORTEN_URL_LENGTH = 30; |
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/sh | |
# [環境] | |
# MacOSX | |
# AVD (Android Virtual Device) から接続させたいデスクトップ上のローカルホストへの接続設定 | |
# | |
# MacOSX上で構築した接続先ローカルホストを `local-pl-t-dev.jp` としています。 | |
# AVDから接続させたい接続先ローカルホスト | |
CONNECT_LOCALHOST="local-pl-t-dev.jp" |