Tested on Ubuntu Linux: Mint 20 Ulyana 20.04 focal
This file contains hidden or 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 atexit | |
import logging | |
import sys | |
from abc import ABC | |
from abc import abstractmethod | |
from argparse import ArgumentParser | |
from argparse import FileType | |
from argparse import Namespace | |
from typing import Optional |
This file contains hidden or 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
@echo off | |
SETLOCAL | |
For /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set STAMP_DATE=%%c-%%a-%%b) | |
For /f "tokens=1-4 delims=./" %%a in ("%TIME%") do (set STAMP_TIME=%%a%%b) | |
set STAMP=%STAMP_DATE%_%STAMP_TIME% | |
set STAMP=%STAMP::=_% | |
set CHROME_TMP=%TMP%\chrome_tmp_%STAMP% |
This file contains hidden or 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
- Insert a USB flash drive into a running computer. | |
- Open a Command Prompt window as an administrator. | |
- Type `diskpart`. | |
- In the new command line window that opens, to determine the USB flash drive number or drive letter, at the command prompt, type `list disk`, and then click ENTER. | |
The list disk command displays all the disks on the computer. Note the drive number or drive letter of the USB flash drive. | |
- At the command prompt, type `select disk <X>`, where X is the drive number or drive letter of the USB flash drive, and then click ENTER. |
This file contains hidden or 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
"""Encoders for 'any' type of data that is not supported by default (+tests).""" | |
import datetime | |
import decimal | |
import enum | |
import inspect | |
import ipaddress | |
import json | |
import pathlib | |
import sqlite3 | |
import textwrap |
This file contains hidden or 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
# ========================================================================= | |
# Instructions: How to install and configure 'yt-dlp' on Windows 10 machine | |
# | |
# NOTE: Lines starting with # are treated as comments | |
# ------------------------------------------------------------------------- | |
# | |
# | |
# ========================================================================= | |
# Part I. "Install Prerequisites" | |
# ------------------------------------------------------------------------- |
This file contains hidden or 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
# ====================================================================================================================== | |
# EditorConfig is awesome: https://EditorConfig.org | |
# ---------------------------------------------------------------------------------------------------------------------- | |
# | |
# Must be specified in the preamble. Set to "true" to stop the .editorconfig file search on the current file. The value is case insensitive. | |
# root = true | |
# | |
# Set to "latin1", "utf-8", "utf-8-bom", "utf-16be" or "utf-16le" to control the character set. Use of "utf-8-bom" is discouraged. | |
# charset = utf-8 | |
# |
This file contains hidden or 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
REM ============================================================================ | |
REM USAGE: | |
REM * Save this file as "setx_python_vars.bat" | |
REM * Open the file, perform the relevant updates, save the changes and close it | |
REM * Open CMD as Administrator | |
REM * CD into the same folder | |
REM * Type "setx_python_vars.bat" without the quotes and hit ENTER | |
REM * Wait for the script to complete and hit ENTER again | |
REM * Close CMD | |
REM * Open CMD as Administrator |
This file contains hidden or 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
# Description: | |
# This script removes unwanted Apps that come with Windows. | |
# If you do not want to remove certain Apps, comment out the corresponding lines below. | |
# This is customized version of Bruce Eckel's remove-default-apps.ps1 script. | |
# The original script is hosted at: https://github.com/BruceEckel/tools/blob/master/remove-default-apps.ps1 | |
# | |
# NOTE: Use at your own risk! | |
# | |
# Usage: | |
# * Save the contents of this file as `remove-default-windows-apps.ps1` |