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
| chrome_string = %x(google-chrome --version) | |
| chrome_string =~ /([\.\d]+)/ | |
| version = $1 | |
| local_chromedriver = %x(chromedriver --version) rescue '' | |
| local_chromedriver =~ /([\.\d]+)/ | |
| local_chromedriver_version = $1 | |
| if version != local_chromedriver_version | |
| url = "https://chromedriver.storage.googleapis.com/#{version}/chromedriver_linux64.zip" |
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
| log: | |
| level: error | |
| file: '' | |
| plugin: | |
| - tag: main_server | |
| type: server | |
| args: | |
| entry: | |
| - _no_ecs |
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 | |
| # sync subtitle with https://github.com/smacke/ffsubsync | |
| video_ext = %w(mp4 mkv avi) | |
| subtitle_ext = %w(srt ssa ass) | |
| work_hash = [] | |
| files = Dir[Dir.pwd + '/*'] | |
| video_files = files.select do |file_name| |
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
| # /lib/systemd/system/certbot.service | |
| [Unit] | |
| Description=Certbot | |
| Documentation=file:///usr/share/doc/python-certbot-doc/html/index.html | |
| Documentation=https://letsencrypt.readthedocs.io/en/latest/ | |
| [Service] | |
| Type=oneshot | |
| ExecStart=/usr/bin/certbot -q renew --post-hook "kill -9 $(ps -aef | grep "caddy" | grep -v grep | awk '{ print $2 }')" | |
| PrivateTmp=true |
OlderNewer