Skip to content

Instantly share code, notes, and snippets.

Artur Pędziwilk wilkart

Block or report user

Report or block wilkart

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@wilkart
wilkart / openbsd62.dmesg.txt
Created Oct 10, 2017
OpenBSD 6.2 on Amazon AWS EC2
View openbsd62.dmesg.txt
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 May 20, 2019
OpenBSD fastest mirror
View openbsd-fastestmirror
#!/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 / openbsd61.dmesg.txt
Created May 12, 2017
OpenBSD 6.1 on Amazon AWS EC2
View openbsd61.dmesg.txt
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
View cakeagent-openbsd.sh
#!/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 ]
View ifconfig.sh
#!/usr/bin/env sh
IP=`ifconfig ${INTERFACE} | grep "inet " | awk '{print $2}'`
echo $IP
@wilkart
wilkart / sendEmail.patch
Last active Aug 16, 2016
sendEmail.pl 1.56 patched to use TLS 1.2
View sendEmail.patch
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 )) {
View keybase.md

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:

You can’t perform that action at this time.