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/default/ | |
WEB_CONCURRENCY=2 | |
RACK_MAX_THREADS=2 |
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
require 'json' | |
require 'time' | |
unless ARGV.length == 1 | |
$stderr.puts("Usage: ruby #{File.basename($PROGRAM_NAME)} JSON") | |
abort | |
end | |
entries = [] | |
begin |
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
CREATE TABLE `conversation_messages` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`channel_id` int(11) DEFAULT NULL, | |
`timestamp` datetime NOT NULL, | |
`nick` varchar(64) NOT NULL DEFAULT '', | |
`message` text, | |
`created_at` datetime NOT NULL, | |
`updated_at` datetime NOT NULL, | |
`type` varchar(255) DEFAULT NULL, | |
`irc_user_id` int(11) NOT NULL DEFAULT '0', |
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
// ----------------------------------------------------------------------------- | |
// ドイツ語特殊文字 | |
// | |
// Copyright (c) koi-chan. All Rights Reserved. | |
// www: http://cre.jp/koi-chan/ | |
// Twitter: @koichan779 | |
// License: MIT | |
// ----------------------------------------------------------------------------- | |
var special = { |
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
<?xml version="1.0" encoding="utf-8"?> | |
<service> | |
<short>IRCS</short> | |
<description>Internet Relay Chat over SSL</description> | |
<port protocol="tcp" port="6697" /> | |
</service> |
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
[Unit] | |
Description=Daily renewal of Let's encrypt's certificates | |
[Timer] | |
OnCalendar=daily | |
AccuracySec=1h | |
Persistent=true | |
[Install] | |
WantedBy=timers.target |
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
[Unit] | |
Description=Let's Encrypt renewal | |
[Service] | |
Type=oneshot | |
ExecStart=/usr/local/bin/certbot-auto renew --standalone --pre-hook 'systemctl stop nginx' --post-hook 'systemctl start nginx' | |
ExecStartPost=/bin/systemctl reload charybdis.service |
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/ruby | |
#--*-coding:utf-8-*-- | |
Encoding.default_external='utf-8' if defined?(Encoding) && Encoding.respond_to?('default_external') | |
require 'rubygems' | |
require 'cgi' | |
require 'fcgi' | |
require 'logger' | |
$logger = Logger.new('./fcgilog.txt') |
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
[Unit] | |
Description=DodontoF spawn-fcgi | |
After=nginx.service | |
Wants=nginx.service | |
[Service] | |
Type=forking | |
User=nginx | |
Group=nginx | |
PIDFile=/home/nginx/dodontof.example.com/dodontof.pid |
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
# vim: filetype=nginx | |
server { | |
listen 80; | |
server_name dodontof.example.com; | |
root /home/nginx/dodontof.example.com/public_html; | |
index index.html index.htm; | |
client_max_body_size 128M; |
NewerOlder