Skip to content

Instantly share code, notes, and snippets.

View msimerson's full-sized avatar

Matt Simerson msimerson

View GitHub Profile
gfind() {
find -E . \
-type d -regex '.*\.(git|svn|blib|build)$' -prune -o \
-type f -name '*.min.js' -prune -o \
-type d -name node_modules -prune -o \
-type d -name bower_components -prune -o \
-type d -name vendor -prune -o \
-type d -name coverage -prune -o \
-type d -name ignore -prune -o \
-type d -name _site -prune -o \
@msimerson
msimerson / get-node-lts.js
Last active February 5, 2021 17:16
Get Node.js LTS versions
#!/usr/bin/env node
const fs = require('fs')
const path = require('path')
const nodeVersionData = require('node-version-data')
const semver = require('semver')
const majorsLatest = {}
const majorsInitial = {}
@msimerson
msimerson / provision-monitor.txt
Created July 27, 2017 20:10
provision monitor
# sh provision-monitor.sh
loading mail-toaster.conf
mysql enabled
toaster host: vmware.imac27.simerson.net
email domain: imac27.simerson.net
shell: /usr/local/bin/bash
safe name: stage
zroot/jails/base-11.1-RELEASE@p0 snapshot exists
*** stage cleanup ***
# ./provision-squirrelmail.sh
loading mail-toaster.conf
mysql enabled
toaster host: jails.tnpi.net
email domain: theartfarm.com
shell: /bin/sh
safe name: stage
zroot/jails/base-10.3-RELEASE@p14 snapshot exists
*** stage cleanup ***
@msimerson
msimerson / gist:41710e81130a3d5cf2955dd5fe8aadd3
Created December 8, 2016 21:59
Mail Toaster 6 - Roundcube install
# ./provision-roundcube.sh
loading mail-toaster.conf
mysql enabled
toaster host: jails.tnpi.net
email domain: theartfarm.com
shell: /bin/sh
safe name: stage
zroot/jails/base-10.3-RELEASE@p14 snapshot exists
*** stage cleanup ***
@msimerson
msimerson / mt6-provision-sqwebmail.txt
Created December 8, 2016 21:55
Mail Toaster 6 - sample output - provision-sqwebmail
# ./provision-sqwebmail.sh
loading mail-toaster.conf
mysql enabled
toaster host: jails.tnpi.net
email domain: theartfarm.com
shell: /bin/sh
safe name: stage
zroot/jails/base-10.3-RELEASE@p12 snapshot exists
*** stage cleanup ***
fetch https://raw.githubusercontent.com/msimerson/Mail-Toaster-6/master/provision-host.sh && . mail-toaster.sh && sh provision-host.sh
@msimerson
msimerson / gist:40c534999e30102810ac
Last active December 15, 2015 05:00
Mail Toaster 6 - swaks test output
Dec 14 20:45:18 haraka haraka[7560]: [NOTICE] [E0CD6466-E60A-42A2-8612-2F7FF334D884] [core] connect ip=172.16.15.11 port=15715 local_ip=172.16.15.9 local_port=25
Dec 14 20:45:18 haraka haraka[7560]: [INFO] [E0CD6466-E60A-42A2-8612-2F7FF334D884] [karma] score: 0, good: 0, bad: 0, connections: 2, history: 0
Dec 14 20:45:18 haraka haraka[7560]: [ERROR] [E0CD6466-E60A-42A2-8612-2F7FF334D884] [connect.p0f] no p0f results
Dec 14 20:45:18 haraka haraka[7560]: [INFO] [E0CD6466-E60A-42A2-8612-2F7FF334D884] [access] msg:unlisted(conn), fail:invalid domain: monitor
Dec 14 20:45:18 haraka haraka[7560]: [INFO] [E0CD6466-E60A-42A2-8612-2F7FF334D884] [connect.geoip] --, , NaNkm
Dec 14 20:45:18 haraka haraka[7560]: [INFO] [E0CD6466-E60A-42A2-8612-2F7FF334D884] [access] msg:unlisted(conn), fail:invalid domain: monitor, invalid domain: monitor
Dec 14 20:45:18 haraka haraka[7560]: [INFO] [E0CD6466-E60A-42A2-8612-2F7FF334D884.1] [access] msg:unlisted(conn), fail:invalid domain: monitor, invalid domain: monitor, invalid domain: m
@msimerson
msimerson / gist:df6710f2f4fcecb33a44
Created December 15, 2015 04:16
Mail Toaster 6 - sample output - provision-dspam
# sh provision-dspam.sh
mysql enabled
toaster host: imac27.simerson.net
toaster domain: simerson.net
shell: /bin/tcsh
safe name: stage
zroot/jails/base-10.2-RELEASE@p8 snapshot exists
*** stage jail cleanup ***
@msimerson
msimerson / gist:102d5c1fc4c520799535
Last active May 18, 2023 07:12
Mail Toaster 6 - sample output - provision-redis
[~/mt6]# provision redis
172.16.15.16
*** skipping fetch, running from git ***
v: 20230507
loading mail-toaster.conf
mysql enabled
toaster host: freebsd.vmware.imac27.simerson.net
email domain: imac27.simerson.net