Skip to content

Instantly share code, notes, and snippets.

@jftuga
jftuga / certbot_install_ubuntu20+.md
Created April 24, 2022 20:22 — forked from bmatthewshea/certbot_pip_install-debian_ubuntu.md
Ubuntu 20 - CERTBOT without SNAP/SNAPD

CERTBOT - Install using Python PIP

Install Certbot using Python PIP (Package Installer for Python) without using SNAP, APT or SYSTEMD) (Debian/Ubuntu)

This guide will help you install LetsEncrypt / Certbot and a DNS plugin (certbot-dns-route53) using PIP under Debian/Ubuntu.

  • You should already be somewhat familiar with LetsEncrypt, Certbot and any plugin you might need.

  • This guide uses a DNS provider plugin (AWS Route53), but this is really about the install method - not plugins, or validation methods.

@jftuga
jftuga / ssm_parameter_store.py
Created April 22, 2022 14:31 — forked from nqbao/ssm_parameter_store.py
Python class to provide a dictionary-like interface to access AWS SSM Parameter Store easily
# Copyright (c) 2018 Bao Nguyen <b@nqbao.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
@jftuga
jftuga / dataclass_example.py
Created March 24, 2022 02:02
Quick demo of how to use Python 3 dataclasses
r"""
dataclass_demo.py
-John Taylor
2022-03-23
A very quick demo of how to use Python 3 dataclasses.
Shows how to define a dict and a list for a dataclass.
"""
from dataclasses import dataclass, field
@jftuga
jftuga / macbook.md
Last active February 22, 2022 20:40
MacBook Config

Big Sur

App Store

  • SetApp
  • Speedtest
  • WiFi Explorer
  • Xcode

Other Apps

  • Cisco VPN Client
@jftuga
jftuga / build_and_install_visual_studio_extension_from_github_repo.md
Last active December 23, 2021 10:38
Build and Install Visual Studio extension from GitHub Repo

Build and Install Visual Studio extension from GitHub Repo

As root

  • Using Fedora 35
dnf install -y git npm
npm install -g vsce
npm install -g tsc
@jftuga
jftuga / default_gateway.go
Created December 6, 2021 21:18
How to get the default gateway IP address in go
package main
import (
"fmt"
"golang.org/x/net/route"
)
var defaultRoute = [4]byte{0, 0, 0, 0}
func main() {
@jftuga
jftuga / chocolateyInstalls_and_VSCodeExtensions.md
Last active December 5, 2021 17:00
May 2020 Chocolatey installed packages and VSCode extensions

Chocolatey Notes

Install a package

choco install [package] -a (use -a or -y to install without any prompts)

Non-interactive configuration

choco feature enable -n allowGlobalConfirmation (sets global default to not prompt, assume yes)

@jftuga
jftuga / pyinstaller_and_setuptools.md
Last active November 13, 2021 08:47
HOWTO: Create a PyInstaller .exe for a package that uses setup tools

HOWTO: Create a PyInstaller .exe for a package that uses setup tools

Tested with Python 3.10 and PyInstaller 4.7

See also: pyinstaller-setuptools GitHub

Example

Desired package/program is called: alpha.exe

@jftuga
jftuga / Server_Core_App_Compatibility_Feature_on_Demand.md
Last active October 5, 2021 20:46
Windows Server 2022 - Server Core App Compatibility Feature on Demand

I am evaluating Server 2022 and ran across Server Core App Compatibility Feature on Demand (FOD).

Once installed and after a reboot, your Server 2022 Core instance will now be able to run the GUI versions of the following programs:

  • CluAdmin.msc - Cluster Admin
  • colorcpl.exe - Color Management
  • devmgmt.msc - Device Manager
  • diskmgmt.msc - Disk management
  • eventvwr.msc - Event Viewer
  • explorer.exe - File Explorer
//
// Regular Expression for URL validation
//
// Author: Diego Perini
// Created: 2010/12/05
// Updated: 2018/09/12
// License: MIT
//
// Copyright (c) 2010-2018 Diego Perini (http://www.iport.it)
//