systemdでは、サービスの起動オプションなどをデフォルトの設定から変更する方法として、 /etc/systemd/system/<NAME>.service.dディレクトリを作成し、その配下に拡張子.confファイルを 作成して、デフォルトの設定との差分を記述する必要がある。
How do I customize a unit file/ add a custom unit file?
| { | |
| "template" : "apache_log*", | |
| "mappings" : { | |
| "www3" : { | |
| "properties" : { | |
| "remote-host" : { | |
| "type" : "string" | |
| }, | |
| "request-header-Referer" : { | |
| "type" : "string" |
| { | |
| "template" : "apache_log*", | |
| "settings" : { | |
| "index" : { | |
| "analysis" : { | |
| "filter" : { | |
| "method_filter" : { | |
| "type" : "pattern_replace", | |
| "pattern" : " .*", | |
| "replacement" : "" |
| # SCLのインストール | |
| # yum install centos-release-SCL | |
| # python33のインストール | |
| # yum install python33.x86_64 | |
| # python33を使用する場合 | |
| # scl enable python33 bash | |
| # OS起動時に使用する場合 |
| https://github.com/github/hubot-scripts | |
| https://github.com/github/hubot/blob/master/docs/adapters.md | |
| cron | |
| ``` | |
| cat scripts/cron.coffee [~/hubot/hubot] | |
| # Description: | |
| # cron | |
| # |
| ## RemoteWebDriver | |
| ### firefox | |
| 1. サーバを起動 | |
| java -jar selenium-server-standalone-xxx.xxx.xxx.jar | |
| 2. リモート呼び出しのソース | |
| public static void main(String[] args) { | |
| DesiredCapabilities capabilities = DesiredCapabilities.firefox(); | |
| RemoteWebDriver remoteWD = null; |
| import time | |
| from selenium import webdriver | |
| from selenium.webdriver.common.desired_capabilities import DesiredCapabilities | |
| driver = webdriver.Remote( | |
| command_executor='http://192.168.137.225:4444/wd/hub', | |
| desired_capabilities=DesiredCapabilities.FIREFOX) | |
| driver.get('https://www.google.co.jp') |
| import org.openqa.selenium.TakesScreenshot; | |
| import org.openqa.selenium.WebDriver; | |
| import org.openqa.selenium.remote.Augmenter; | |
| import org.openqa.selenium.remote.DesiredCapabilities; | |
| import org.openqa.selenium.remote.RemoteWebDriver; | |
| public class NavigateToAUrl { | |
| public static void main(String[] args) { | |
| DesiredCapabilities capabilities = DesiredCapabilities.firefox(); |
| package org.func.sample.selnium; | |
| import java.io.File; | |
| import java.io.IOException; | |
| import java.net.URL; | |
| import java.util.concurrent.TimeUnit; | |
| import org.apache.commons.io.FileUtils; | |
| import org.openqa.selenium.By; | |
| import org.openqa.selenium.OutputType; |
| package org.func.sample.selnium; | |
| import java.io.File; | |
| import java.io.IOException; | |
| import java.net.URL; | |
| import java.util.concurrent.TimeUnit; | |
| import org.apache.commons.io.FileUtils; | |
| import org.openqa.selenium.By; | |
| import org.openqa.selenium.OutputType; |