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 hashlib | |
import json | |
import os | |
TARGET_DIRS_PATH = [] # <-- Find in these directories | |
def walk_directory(dir_path: str, exclude_names: tuple[str, ...] | list[str] | None = None) -> list[str]: | |
file_paths = [] |
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 io | |
import win32clipboard | |
import PIL.Image as Image | |
def copy_to_clipboard(data: str | Image.Image) -> None: | |
""" Copy `data` as "image/bmp" or "text/plain" to system clipboard """ | |
if isinstance(data, Image.Image): | |
fmt = win32clipboard.CF_DIB | |
with io.BytesIO() as stream: |
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
Function New-ShimLink { | |
<# | |
.SYNOPSIS | |
Function New-ShimLink | |
Create a Shim Link. | |
.EXAMPLE | |
PS:\> New-ShimLink [LinkTargetPath] [LinkNewPath] | |
PS:\> New-ShimLink "C:\Folder\File1.txt" "C:\Folder\ShimLink1.txt" | |
.PARAMETER LinkTargetPath | |
[String, Pos0, Mandatory, Exists] |
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 | |
GOTO :MAIN | |
:SLEEP Function | |
"%WINDIR%\System32\timeout.exe" %1 1>NUL 2>&1 | |
GOTO :EOF | |
REM ============================================================= |
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
Windows Registry Editor Version 5.00 | |
################################################################# | |
; Change the "Edit" context item (in Explorer right-click menu) | |
; to open the selected file using Sublime Text, | |
; optional comments for '*.txt' files and the ST icon. | |
################################################################# | |
#=== HKCR\batfile |
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
#!/bin/bash | |
# ansi_colors.sh | |
# | |
# Wiki (ANSI CSI) https://en.wikipedia.org/wiki/ANSI_escape_code#CSI_(Control_Sequence_Introducer)_sequences | |
# Wiki (ANSI SGR) https://en.wikipedia.org/wiki/ANSI_escape_code#SGR_(Select_Graphic_Rendition)_parameters | |
# Parameter 030-03F (0x30–0x3F) (ASCII 0–9:;<=>?) | |
# Intermediate 020-02F (0x20–0x2F) (ASCII space and !"#$%&'()*+,-./) | |
# Final 040-07E (0x40–0x7E) (ASCII @A–Z[\]^_`a–z{|}~) | |
# | |
# _______________________________________________________________ |
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
#!/bin/bash | |
######## | |
# | |
# Install "figlet" package | |
# & Download figlet fonts | |
# (running as root) | |
# | |
# + Github Repositories: | |
#--> https://github.com/xero/figlet-fonts | |
#--> https://github.com/phracker/figlet-fonts |