Skip to content

Instantly share code, notes, and snippets.

global {
minor-count 5;
dialog-refresh 1;
usage-count no;
}
common {
}
resource nfs {
protocol C;
disk {
on-io-error pass_on;
}
on rcp-portal-storage-sles12-a {
address 10.0.2.4:7790;
device /dev/drbd_nfs minor 0;
disk /dev/sdb2;
meta-disk internal;
192.168.43.100:/example /srv/www/portal nfs4 auto,rw,timeo=100,actimeo=60 0 0
$ curl -o /dev/null -w "Connect: %{time_connect} TTFB: %{time_starttransfer} Total time: %{time_total} \n" -s http://192.168.43.103/
Connect: 0,000 TTFB: 2,057 Total time: 2,076
extension=apc.so
apc.enabled=1
apc.shm_segments=1
;32M per WordPress install
apc.shm_size=128M
;Relative to the number of cached files (you may need to watch your stats for a day or two to find out a good number)
apc.num_files_hint=7000
@jonvargas
jonvargas / gist:9669a86a942e22e16e1e
Created August 21, 2015 16:25
apache-scm-ldap.conf
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName dev-rcp-scm.alkaid.cr
DocumentRoot /srv/www/scm.recope.net
ErrorLog /var/log/apache2/scm.recope.net-error_log
@jonvargas
jonvargas / zabbix-server.service
Created November 24, 2015 02:25
Zabbix Server systemd's unit file for SUSE Linux Enterprise 12
[Unit]
Description=Zabbix Server
After=syslog.target network.target
[Service]
# Since zabbix forks itself after starting, this is mandatory
Type=forking
# The RuntimeDirectory directive creates the /run/zabbix directory for you,
# but it's supported until systemd version 211, this is 210. As a workaround
root@remote:~# cat /etc/openvpn/server.conf | grep -v "^#" | grep -v "^;" | uniq -u
port 1194
proto udp
dev tap
up "/etc/openvpn/up.sh br0 eth1"
ca ca.crt
cert myservername.crt
<ion-menu [content]="content">
<ion-toolbar>
<ion-title>Menu</ion-title>
</ion-toolbar>
<ion-content>
<ion-list>
<ion-list-header>
Navigate
</ion-list-header>
<Location /.well-known>
Require all granted
</Location>
#
# Matches everything /.well-known (used by Letsencrypt)
<Location ~ /^(?!\.well-known)>
DAV svn
# any "/svn/foo" URL will map to a repository /srv/svn/foo
SVNParentPath /srv/svn/