Skip to content

Instantly share code, notes, and snippets.

View Soliez's full-sized avatar

Erik Solis Soliez

View GitHub Profile
@Soliez
Soliez / stdlib_importer.py
Last active April 23, 2026 01:17
Example: Importing the entire python standard library in one shot — My Strategy
"""
Strategy: Importing the entire python standard library in one shot.
Use-Cases: Not a whole lot beyond testing what all IS and IS NOT:
- Available in your environment
- Supported on the running platform
"""
def import_stdlib() -> None:
@Soliez
Soliez / Quote.sh
Created May 23, 2024 05:38
Percent Encode the input text and print the result to STDOUT
#!/bin/bash
# Percent encodes the text input string and prints the result to STDOUT
# Add the following line to your shell profile to execute this script from anywhere
# without having to specify the full path to this script
# alias uti="/path/to/this/script.sh"
if [ $# -eq 0 ]; then
@Soliez
Soliez / UTI.sh
Last active May 23, 2024 05:29
# Uniform Type Identifier (UTI) Lookup Utility
#!/bin/bash
# Get the Uniform Type Identifier (UTI) for the input file
# Add the following line to your shell profile to execute this script from anywhere
# without having to specify the full path to this script
# alias uti="/path/to/this/script.sh"
@Soliez
Soliez / Token Generator.py
Created May 4, 2024 14:19
Function for generating a cryptographically secure token
import hashlib, secrets
def main():
'''
Creates a 32 bit hexadecimal string and returns it's sha256 digest
'''
def create_token() -> str: