This file contains 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
# Build the markdown files and output | |
# (verbosely) information about the | |
# process. | |
hugo -v | |
# Send the new files to the configured S3 | |
# (and delete the old ones that are not in | |
# the new desired state) with a special | |
# max-age header configuration so that both | |
# browsers and CDNs cache it for some time. |
This file contains 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
set pagesize 0 | |
set numf '9999999.99' | |
SELECT | |
NVL(b.tablespace_name,nvl(a.tablespace_name,'UNKOWN')) name, | |
((kbytes_alloc-nvl(kbytes_free,0))/kbytes_alloc)*100 pct_used, | |
NVL(kbytes_alloc/1024,0) alloc, | |
NVL(kbytes_free/1024,0) free, | |
autoextensible | |
FROM | |
(SELECT |
This file contains 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
[global_tags] | |
[agent] | |
interval = "10s" | |
round_interval = true | |
metric_batch_size = 1000 | |
metric_buffer_limit = 10000 | |
collection_jitter = "0s" | |
flush_interval = "10s" | |
flush_jitter = "0s" |
This file contains 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
[influxdb] | |
name = InfluxDB Repository - RHEL \$releasever | |
baseurl = https://repos.influxdata.com/centos/\$releasever/\$basearch/stable | |
enabled = 1 | |
gpgcheck = 1 | |
gpgkey = https://repos.influxdata.com/influxdb.key |
This file contains 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
inet_interfaces = 1.1.1.1 | |
mydestination = | |
myorigin = domain.com | |
local_recipient_maps = | |
local_transport = error:no local delivery | |
parent_domain_matches_subdomains = debug_peer_list smtpd_access_maps | |
# this file contains the list to relay for | |
relay_domains = domain1.com, domain2.com, domain3.com |
This file contains 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
ID=112 | |
OLD_IP=192.168.25.20 | |
NEW_IP=192.168.35.20 | |
HOSTNAME=ha-web-01.ged.su | |
mkdir /vz/root/$ID /vz/private/$ID | |
cat /etc/vz/conf/1.conf > /etc/vz/conf/$ID.conf | |
cat >/tmp/exclude.txt | |
/tmp | |
/boot |
This file contains 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
kernel.shmmax = 8000234752 // Это для PostgreSQL, чтоб можно было выставлять большой shared_buffers (6 - 8GB) | |
fs.file-max = 99999999 // Это для Nginx, без него можно получить "Too many open files" | |
net.ipv4.tcp_max_syn_backlog=524288 // Максимальное число запоминаемых запросов на соединение | |
net.ipv4.tcp_max_orphans=262144 // Максимальное число допустимых в системе сокетов TCP | |
net.core.somaxconn=65535 // Максимальное число открытых сокетов | |
net.ipv4.tcp_mem=1572864 1835008 2097152 // Потребление памяти для протокола TCP | |
net.ipv4.tcp_rmem=4096 16384 16777216 // Размер приемного буфера сокетов TCP | |
net.ipv4.tcp_wmem=4096 32768 16777216 // Количество памяти, резервируемой для буферов передачи сокета TCP |
This file contains 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
location / { | |
try_files $uri @proxy; | |
} | |
location @proxy { | |
proxy_pass http://localhost:8000; | |
proxy_redirect off; | |
#must be set! | |
proxy_ignore_headers X-Accel-Expires Expires Cache-Control; |
This file contains 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
#!/bin/sh | |
installimage -r no -i /root/.oldroot/nfs/images.old/CentOS-69-64-minimal.tar.gz -n node01.domain.tld -p /boot:ext3:256M,/:ext4:10G,/vm:ext4:all -K http://10.0.0.1/key.pub -a | |
yum -y remove selinux\* | |
ln -sf /usr/share/zoneinfo/Europe/Moscow /etc/localtime | |
service ntpd start | |
ntpq -p | |
chkconfig --level 345 ntpd on |
This file contains 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
*nat | |
:PREROUTING ACCEPT [0:0] | |
:POSTROUTING ACCEPT [0:0] | |
:OUTPUT ACCEPT [0:0] | |
-A POSTROUTING -s 192.168.0.0/16 -d 192.168.0.0/16 -j SNAT --to-source 192.168.104.25 | |
-A POSTROUTING -s 192.168.0.0/16 ! -d 192.168.0.0/16 -o eth0 -j SNAT --to-source xx.xx.xx.xx | |
COMMIT |
NewerOlder