Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View wilkart's full-sized avatar

Artur Pędziwilk wilkart

View GitHub Profile

Keybase proof

I hereby claim:

  • I am wilkart on github.
  • I am wilkart (https://keybase.io/wilkart) on keybase.
  • I have a public key whose fingerprint is BF4A 87A4 F8DA 6FE9 5003 4A2F 1609 F87E C5C1 E965

To claim this, I am signing this object:

#!/bin/bash
##!
##! StatusCake Server Monitoring for OpenBSD
##! based on https://www.statuscake.com/App/Agent/agent.sh
##!
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/etc/cakeagent
if [ -f /etc/cakeagent/auth.log ]
@wilkart
wilkart / openbsd61.dmesg.txt
Created May 12, 2017 14:02
OpenBSD 6.1 on Amazon AWS EC2
OpenBSD 6.1 (GENERIC.MP) #20: Sat Apr 1 13:45:56 MDT 2017
deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 520093696 (496MB)
avail mem = 499712000 (476MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xeb01f (11 entries)
bios0: vendor Xen version "4.2.amazon" date 02/16/2017
bios0: Xen HVM domU
@wilkart
wilkart / openbsd62.dmesg.txt
Created October 10, 2017 09:58
OpenBSD 6.2 on Amazon AWS EC2
OpenBSD 6.2 (GENERIC.MP) #134: Tue Oct 3 21:22:29 MDT 2017
deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 1056964608 (1008MB)
avail mem = 1017962496 (970MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xeb01f (11 entries)
bios0: vendor Xen version "4.2.amazon" date 08/24/2006
bios0: Xen HVM domU
@wilkart
wilkart / openbsd-fastestmirror
Last active September 2, 2022 12:26
OpenBSD fastest mirror
#!/usr/bin/env bash
MIRRORS=$(curl -s https://www.openbsd.org/ftp.html | grep "href=\"https" | grep "nofollow" | awk -F\" '{print $2}')
declare LIST
for MIRROR in ${MIRRORS}; do
SPEED=`curl -w %{time_total} -s --connect-timeout 1 --output /dev/null ${MIRROR}/timestamp`
if [ "$?" == 0 ]; then
printf "$SPEED :: echo $MIRROR > /etc/installurl\n"
fi
@wilkart
wilkart / sendEmail.patch
Last active January 3, 2024 11:29
sendEmail.pl 1.56 patched to use TLS 1.2
67,68c67,68
< "tls_client" => 0, ## If TLS is supported by the client (us)
< "tls_server" => 0, ## If TLS is supported by the remote SMTP server
---
> "tls_client" => 1, ## If TLS is supported by the client (us)
> "tls_server" => 1, ## If TLS is supported by the remote SMTP server
1906c1906
< if (! IO::Socket::SSL->start_SSL($SERVER, SSL_version => 'SSLv3')) {
---
> if (! IO::Socket::SSL->start_SSL($SERVER, SSL_version => 'TLSv1_2', SSL_verify_mode => 0 )) {