Skip to content

Instantly share code, notes, and snippets.

View koi-chan's full-sized avatar

koi-chan koi-chan

View GitHub Profile
@koi-chan
koi-chan / reference.ja.conf
Last active November 30, 2015 13:09
charybdis3.4 設定ファイル日本語化
/* doc/reference.ja.conf - charybdis Example configuration file
*
* Copyright (C) 2000-2002 Hybrid Development Team
* Copyright (C) 2002-2005 ircd-ratbox development team
* Copyright (C) 2005-2006 charybdis development team
*
* Written by ejb, wcampbel, db, leeh and others
* 日本語訳: koi-chan
*
* $Id: reference.conf 2015-02-05 koi-chan $
@koi-chan
koi-chan / charybdis-build
Last active August 29, 2015 14:15
charybdis-install
# ユーザーを追加します。
sudo useradd charybdis -s /sbin/nologin
# ものすごい無茶な方法で専用ユーザーにログインします。
sudo su - charybdis -s /bin/bash
# tarのダウンロード・展開
wget https://github.com/atheme/charybdis/archive/charybdis-3.4.2.tar.gz
tar zxvf charybdis-3.4.2.tar.gz
cd charybdis-charybdis-3.4.2
# configure
@koi-chan
koi-chan / charybdis.service
Last active August 29, 2015 14:15
charybdis-systemd
[Unit]
Description=charybdis - Internet Relay Chat Program Server
Documentation=http://atheme.org/projects/charybdis.html
After=network.target
[Service]
User=charybdis
Group=charybdis
Type=simple
PIDFile=/home/charybdis/ircd/etc/ircd.pid
@koi-chan
koi-chan / irc.xml
Created February 16, 2015 09:03
firewalld-irc
<?xml version="1.0" encoding="utf-8"?>
<service>
<short>IRC</short>
<description>Internet Relay Chat</description>
<port protocol="tcp" port="6665-6669" />
<port protocol="tcp" port="6697" />
</service>
@koi-chan
koi-chan / ircd
Created February 22, 2015 09:02
charybdis-sysvinit
#!/bin/sh
#
# charybdis Startup script for the ircd server
#
# chkconfig: - 85 15
# description: charybdis IRC daemon
#
# processname: ircd
# config: /home/charybdis/ircd/etc/ircd.conf
# pidfile: /home/charybdis/ircd/etc/ircd.pid
[Unit]
Description=RGRB - Internet Relay Chat bot
Documentation=http://www.cre.ne.jp/services/irc/bots/rgrb
After=network.target
[Service]
User=irc
Group=irc
Type=simple
PIDFile=/home/irc/rgrb/%I.pid
[Unit]
Description=KiwiIRC - Internet Relay Chat Web Client
Documentation=https://kiwiirc.com/
After=network.target
[Service]
User=kiwiirc
Group=kiwiirc
Type=forking
PIDFile=/home/kiwiirc/KiwiIRC/kiwiirc.pid
server {
listen 80;
server_name webirc.cre.jp;
access_log /var/log/nginx/webirc.cre.jp-access.log;
error_log /var/log/nginx/webirc.cre.jp-error.log;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
loadmodule "extensions/m_webirc.so";
class "webirc" {
ping_time = 2 minutes;
number_per_ip = 10;
number_per_ip_global = 10;
max_number = 0;
sendq = 100kbytes;
};
machine_id=5
dbplugin=ts3db_mariadb
dbpluginparameter=ts3db_mariadb.ini
dbsqlpath=sql/
dbsqlcreatepath=create_mariadb/