- Guest OS: Linux
- Name:
- clock: (def)
- Boot: (def)
- shut. timeout: (def)
- Start on Boot
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/ |
VMWare Workstation for Linux v16 has issues related to memory fragmentation. This will cause the CPU to choke with 100% after a time. The scripts provided will allow you to fix this at launch of vmware on Linux.
Instructions:
- Put vmware-workstation.sh to a good location on your computer like ~/bin or similar
- Make vmware-workstation.sh executable
- Edit vmware-workstation.desktop to have correct paths based on your setup
- Open shell, cd to directory with .desktop file and run:
desktop-file-install --dir=$HOME/.local/share/applications ./vmware-workstation.desktop
' 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 |
import smtplib | |
import os | |
import json | |
from email.message import EmailMessage | |
from validate_email import validate_email | |
class Mailer(): |
# GIT Home: https://gist.github.com/JavaScriptDude/f3c837fdabaf0e0a72e39ff319c7a3f0 | |
# NOTE: This version works with Python 3.7.9. | |
# For Python 3.11, see https://gist.github.com/JavaScriptDude/f673980de8e27a39cbffff55dd0c63b2 | |
import sys | |
import traceback | |
import asyncio | |
_verbose = ("--verbose" in sys.argv) | |
opts = None |
# 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>) |
import time, sys, os | |
class SingleInstanceChecker: | |
def __init__(self, id): | |
if isWin(): | |
ensure_win32api() | |
self.mutexname = id | |
self.lock = win32event.CreateMutex(None, False, self.mutexname) | |
self.running = (win32api.GetLastError() == winerror.ERROR_ALREADY_EXISTS) |
WkHtmlToX projects uses WebKit as a backend to virutally render a web page and execute its JavaScript to get the final page for printing.
The issue is that the version of WebKit used is very old and this makes debugging JS regressions difficult. WkHtmlToX does offer a way to output the console, but it gives no way to do active debugging and provides no line numbers!
To debug JavaScript using the same WebKit version, I tracked down the version of Chromium that uses a close enough webkit version that this library leverages (534.34). Chromium 13.0.767.1, which is available here as a standalone exe for windows.
If your page does not already have a handler for window.onerror
, add one with the following code in your page boot code.
// Detect old safari version used by QT and Chromium 13.0.767.1
if (naviagtor.userAgent.indexOf("Safari/534.3") > -1) {