Skip to content

Instantly share code, notes, and snippets.

View JavaScriptDude's full-sized avatar

Timothy C. Quinn JavaScriptDude

  • Ontario, Canada
View GitHub Profile
@JavaScriptDude
JavaScriptDude / Linux With ZFS Root on Mint
Last active February 14, 2024 20:13
Linux Mint 21.1 ZFS Root Installation Notes
When installing Linux Mint, you can install with ZFS Root by following standard instructions.
However, there is an issue with almost all Linux distributions default ZFS install script where the
allocated spaces for the partitions are a bit too small for real world ZFS Use.
These instructions show how to alter the ZFS setup script to have a more appropriate partition spacing.
Boot into the Linux Mint OS USB stick, and:
```
sudo su
cd /usr/share/ubiquity/
@JavaScriptDude
JavaScriptDude / asyncio_main_example_3_11.py
Last active September 26, 2023 22:57
Asyncio Example for Python 3.11+
# GIT Home: https://gist.github.com/JavaScriptDude/f673980de8e27a39cbffff55dd0c63b2
import sys
import traceback
import asyncio
_verbose = ("--verbose" in sys.argv)
opts = None
# Main - For all your business logic
# Note: do not call sys.exit() directly from here, instead use raise ExitProgram(msg=<msg>, code=<code>)
@JavaScriptDude
JavaScriptDude / SMTP_Python_3_7_plus.py
Last active October 25, 2023 19:47
SMTP Email in Python 3.7+
import smtplib
import os
import json
from email.message import EmailMessage
from validate_email import validate_email
class Mailer():
@JavaScriptDude
JavaScriptDude / vb_collection_iterators.vb
Last active November 5, 2023 03:13
Iterators for Visual Basic Collection Class
' BEGIN VB Collection Hacks
' @copywright Timothy C. Quinn
' @license MIT
' Inspiration: https://stackoverflow.com/a/19497757/286807
' VB Collections don't have a public way to get the keys or have any iterators
' Below is a list of hacks that should be high performance and thread safe
' I doubt that the backend API of Visual Basic for Collections will change as its a really bad data structure to use
' However, this may possibly break in future versions of VB
' I tested up to VB 11
@JavaScriptDude
JavaScriptDude / debian_on_freenas.md
Last active February 5, 2024 23:55
Installing Debian on Freenas / BHYVE

Freenas -> Virutal Machines -> Add

Operating System

  • Guest OS: Linux
  • Name:
  • clock: (def)
  • Boot: (def)
  • shut. timeout: (def)
  • Start on Boot