- Guest OS: Linux
- Name:
- clock: (def)
- Boot: (def)
- shut. timeout: (def)
- Start on Boot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import smtplib | |
import os | |
import json | |
from email.message import EmailMessage | |
from validate_email import validate_email | |
class Mailer(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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>) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import inspect, time | |
from random import randint | |
from functools import cmp_to_key | |
def main(): | |
perf_test() | |
# test_Comparator() | |
# test_student_comp() | |
students = [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>jQuery UI Dialog - Focus Test</title> | |
<link rel="stylesheet" href="//code.jquery.com/ui/1.13.1/themes/base/jquery-ui.css"> | |
<script src="https://code.jquery.com/jquery-3.6.0.js"></script> | |
<script src="https://code.jquery.com/ui/1.13.1/jquery-ui.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.13.2/underscore-min.js" integrity="sha512-anTuWy6G+usqNI0z/BduDtGWMZLGieuJffU89wUU7zwY/JhmDzFrfIZFA3PY7CEX4qxmn3QXRoXysk6NBh5muQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
NewerOlder