Skip to content

Instantly share code, notes, and snippets.

root@failserv-vpn:~# sysctl net.ipv6.conf.{all,ens3}.{autoconf,accept_ra,forwarding}
net.ipv6.conf.all.autoconf = 1
net.ipv6.conf.all.accept_ra = 1
net.ipv6.conf.all.forwarding = 2
net.ipv6.conf.ens3.autoconf = 0
net.ipv6.conf.ens3.accept_ra = 1
net.ipv6.conf.ens3.forwarding = 2
root@failserv-vpn:~#
port 443
proto udp6
dev tun6
sndbuf 0
rcvbuf 0
ca ca.crt
cert server.crt
key server.key
dh dh.pem
auth SHA512
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 76
model name : Intel(R) Atom(TM) x5-Z8350 CPU @ 1.44GHz
stepping : 4
microcode : 0x411
cpu MHz : 1229.367
cache size : 1024 KB
physical id : 0
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See coredump.conf(5) for details.
[Coredump]
#Storage=external
#Compress=yes
#ProcessSizeMax=2G
#ExternalSizeMax=2G
4776 execve("/usr/bin/flock", ["flock", "somefile", "cat", "somefile"], 0x7fff03a0f750 /* 20 vars */) = 0
4776 brk(NULL) = 0x558c7713e000
4776 arch_prctl(0x3001 /* ARCH_??? */, 0x7ffc3cf18ee0) = -1 EINVAL (Invalid argument)
4776 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
4776 openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
4776 fstat(3, {st_mode=S_IFREG|0644, st_size=44828, ...}) = 0
4776 mmap(NULL, 44828, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f3e6e20b000
4776 close(3) = 0
4776 openat(AT_FDCWD, "/usr/lib/librt.so.1", O_RDONLY|O_CLOEXEC) = 3
4776 read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 \0\0\0\0\0\0"..., 832) = 832
<IfModule mod_headers.c>
<IfModule mod_setenvif.c>
<IfModule mod_fcgid.c>
SetEnvIfNoCase ^Authorization$ "(.+)" XAUTHORIZATION=$1
RequestHeader set XAuthorization %{XAUTHORIZATION}e env=XAUTHORIZATION
</IfModule>
<IfModule mod_proxy_fcgi.c>
SetEnvIfNoCase Authorization "(.+)" HTTP_AUTHORIZATION=$1
</IfModule>
</IfModule>
@ShapeShifter499
ShapeShifter499 / gist:831bfd85921257711cb0aef6e8957f35
Last active May 8, 2019 21:49
/etc/http/conf/extra/nextcloud.conf
## Start of HTTP (80) insecure settings
<VirtualHost *:80>
ServerAdmin foo@foofarm.com
ServerName nextcloud.example.com
## Set 'DocumentRoot' to the lcoation of Nextcloud so that it's the default service
DocumentRoot /usr/share/webapps/nextcloud
##
ErrorLog /var/log/httpd/nextcloud.example.com.info-error_log
@ShapeShifter499
ShapeShifter499 / gist:bd9ad540d98e5b4a59776fc8344969f0
Created April 25, 2019 09:08
resolvectl query archlinux.org
[root@kumo ~]# resolvectl query archlinux.org
archlinux.org: 2a01:4f8:172:1d86::1 -- link: enp1s0
138.201.81.199 -- link: enp1s0
-- Information acquired via protocol DNS in 19.8ms.
-- Data is authenticated: no
[root@kumo ~]#
[root@kumo ~]# timedatectl
Local time: Tue 2019-04-09 07:07:45 PDT
Universal time: Tue 2019-04-09 14:07:45 UTC
RTC time: Tue 2019-04-09 14:07:45
Time zone: America/Los_Angeles (PDT, -0700)
System clock synchronized: no
NTP service: active
RTC in local TZ: no
[root@kumo ~]#
@ShapeShifter499
ShapeShifter499 / gist:d30dda7bf76b3b4419810e9a1b84babc
Created April 25, 2019 08:53
systemctl status systemd-timesyncd.service
[root@kumo ~]# systemctl status systemd-timesyncd.service
● systemd-timesyncd.service - Network Time Synchronization
Loaded: loaded (/usr/lib/systemd/system/systemd-timesyncd.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2019-04-09 06:50:42 PDT; 16min ago
Docs: man:systemd-timesyncd.service(8)
Main PID: 18531 (systemd-timesyn)
Status: "Idle."
Tasks: 2 (limit: 3987)
Memory: 1.6M
CGroup: /system.slice/systemd-timesyncd.service