Skip to content

Instantly share code, notes, and snippets.

View koi-chan's full-sized avatar

koi-chan koi-chan

View GitHub Profile
[config]
host=127.0.0.1
port=3306
username=teamspeak
password=<write-DB-password>
database=teamspeak3
socket=
[Unit]
Description=TeamSpeak3 - Voice Chat Server
Documentation=http://www.teamspeak.com/?page=teamspeak3
After=network.target
[Service]
User=teamspeak
Group=teamspeak
Type=forking
WorkingDirectory=/home/teamspeak/teamspeak3
<?xml version="1.0" encoding="utf-8"?>
<service>
<short>TeamSpeak3</short>
<description>TeamSpeak3 (Voice Chat Server daemon)</description>
<port protocol="udp" port="9987"/>
<port protocol="tcp" port="30033" />
</service>
114a115,117
> %configure \
> --with-libiconv=/usr/local
>
232c235
< * Mon Feb 04 2009 David J. Mellor <[email protected]>
---
> * Wed Feb 04 2009 David J. Mellor <[email protected]>
265c268
< * Tue May 13 2007 Quy Tonthat <[email protected]>
# Pass --without docs to rpmbuild if you don't want the documentation
Name: git
Version: 2.3.10
Release: 1%{?dist}
Summary: Core git tools
License: GPL
Group: Development/Tools
URL: http://kernel.org/pub/software/scm/git/
Source: http://kernel.org/pub/software/scm/git/%{name}-%{version}.tar.gz
# 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;
[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
#!/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')
[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
[Unit]
Description=Daily renewal of Let's encrypt's certificates
[Timer]
OnCalendar=daily
AccuracySec=1h
Persistent=true
[Install]
WantedBy=timers.target