Skip to content

Instantly share code, notes, and snippets.

💭
Working on https://github.com/dlangille/thin_to_thick

Dan Langille dlangille

💭
Working on https://github.com/dlangille/thin_to_thick
Block or report user

Report or block dlangille

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
@dlangille
dlangille / make installworld
Created Sep 9, 2019
when installing from NFS mounted read-only /usr/src and /usr/obj
View make installworld
# make installworld
...
===> stand/i386/btx (install)
===> stand/i386/btx/btx (install)
===> stand/i386/btx/btxldr (install)
===> stand/i386/btx/lib (install)
===> stand/i386/boot2 (install)
installing DIRS BINDIR
install -d -m 0755 -o root -g wheel /boot
@dlangille
dlangille / periodic.conf
Last active Sep 10, 2019
A Nagios check for FreeBSD systems which have https://www.freshports.org/ports-mgmt/pkg installed
View periodic.conf
# I use these settings in /etc/periodic.conf
# for security/405.pkg-base-audit and others
security_status_baseaudit_enable="YES"
security_status_baseaudit_jails="*"
security_status_pkgaudit_expiry=1
pkg_jails='*'
View 1 - untar
[dan@empty:~] $ tar -tzf /tmp/FreshPorts-email-parsing.tar.gz
tmp/FreshPorts/
tmp/FreshPorts/2019.09.05.13.50.02.69461.txt.raw
tmp/FreshPorts/mail.txt
tmp/FreshPorts/process_mail.pl
usr/local/lib/perl5/site_perl/FreshPorts/
usr/local/lib/perl5/site_perl/FreshPorts/process_svn_mail.pm
usr/local/lib/perl5/site_perl/FreshPorts/config.pm
usr/local/lib/perl5/site_perl/FreshPorts/constants.pm
usr/local/lib/perl5/site_perl/FreshPorts/branches.pm
View 1 - fetch issues
$ sudo make fetch
===> NOTICE:
The nagiosql port currently does not have a maintainer. As a result, it is
more likely to have unresolved issues, not be up-to-date, or even be removed in
the future. To volunteer to maintain this port, please create an issue at:
https://bugs.freebsd.org/bugzilla
More information about port maintainership is available at:
View 1 - fetch issues
$ sudo make fetch
===> NOTICE:
The nagiosql port currently does not have a maintainer. As a result, it is
more likely to have unresolved issues, not be up-to-date, or even be removed in
the future. To volunteer to maintain this port, please create an issue at:
https://bugs.freebsd.org/bugzilla
More information about port maintainership is available at:
@dlangille
dlangille / 1 - port commit email
Created Sep 2, 2019
Parsing FreeBSD commit emails for FreshPorts
View 1 - port commit email
From https://docs.freebsd.org/cgi/getmsg.cgi?fetch=1248070+0+current/svn-ports-all+raw
See on FreshPorts: https://www.freshports.org/ports-mgmt/pkg_replace/
From owner-svn-ports-all@freebsd.org Mon Sep 2 16:33:55 2019
Return-Path: <owner-svn-ports-all@freebsd.org>
Delivered-To: svn-ports-all@mailman.nyi.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1])
by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7764BE281B;
Mon, 2 Sep 2019 16:33:55 +0000 (UTC)
View gist:3cac9530676e371a0919b17934cea81d
SELECT P.path || FN.name as file,
F.lstat,
pg_size_pretty( base64_decode_lstat(8, lstat) ) as size
FROM job J, file F, filename FN, path P
WHERE J.jobid = 295603
AND J.jobid = F.jobid
AND F.filenameid = FN.filenameid
AND F.pathid = P.pathid
ORDER BY 1;
View the testport
===> Configuring for py36-convertdate-2.1.3
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "setup.py", line 13, in <module>
readme = open('README.rst').read()
File "/usr/local/lib/python3.6/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 89: ordinal not in range(128)
*** Error code 1
@dlangille
dlangille / postgresql.conf SSL settings
Last active Aug 22, 2019
PostgreSQL default SSL settings
View postgresql.conf SSL settings
ssl = on
#ssl_ciphers = 'HIGH:MEDIUM:+3DES:!aNULL' # allowed SSL ciphers
#ssl_prefer_server_ciphers = on
#ssl_ecdh_curve = 'prime256v1
ssl_dh_params_file = '/usr/local/etc/ssl/dh_params.txt'
ssl_cert_file = '/usr/local/etc/ssl/HOSTNAME.cer'
ssl_key_file = '/usr/local/etc/ssl/HOSTNAME.key'
ssl_ca_file = '/usr/local/etc/ssl/ca.cer'
#ssl_crl_file = ''
View email today
Looking up update.FreeBSD.org mirrors... 3 mirrors found.
Fetching metadata signature for 12.0-RELEASE from update1.freebsd.org... done.
Fetching metadata index... done.
Inspecting system... done.
Preparing to download files... done.
The following files will be updated as part of updating to 12.0-RELEASE-p10:
/boot/kernel/aac.ko
/boot/kernel/aacraid.ko
/boot/kernel/acpi_asus.ko
You can’t perform that action at this time.