Skip to content

Instantly share code, notes, and snippets.

@hypeitnow
hypeitnow / yt_downloader.py
Created February 2, 2025 18:05
yt_downloader
#!/usr/bin/env python3
import argparse
import subprocess
import sys
import shutil
import platform
def is_yt_dlp_installed():
"""Check if yt-dlp is available in the system PATH."""
return shutil.which("yt-dlp") is not None
# Referenced videos:
# - Argo CD - Applying GitOps Principles To Manage Production Environment In Kubernetes: https://youtu.be/vpWQeoaiRM4
# - kind - How to run local multi-node Kubernetes clusters: https://youtu.be/C0v5gJSWuSo
# - GitHub CLI - How to manage repositories more efficiently: https://youtu.be/BII6ZY2Rnlc
# - Argo Workflows and Pipelines - CI/CD, Machine Learning, and Other Kubernetes Workflows: https://youtu.be/UMaivwrAyTA
# - Running Jenkins In Kubernetes - Tutorial And Review: https://youtu.be/2Kc3fUJANAc
# - Github Actions Review And Tutorial: https://youtu.be/eZcAvTb0rbA
# - Tekton - Kubernetes Cloud-Native CI/CD Pipelines And Workflows: https://youtu.be/7mvrpxz_BfE
# - Environments Based On Pull Requests (PRs): Using Argo CD To Apply GitOps Principles On Previews: https://youtu.be/cpAaI8p4R60
# - How To Apply GitOps To Everything - Combining Argo CD And Crossplane: https://youtu.be/yrj4lmScKHQ
@hypeitnow
hypeitnow / .config
Last active December 6, 2023 12:23 — forked from cerebrate/.config
.config file for custom kernel 5.15 under WSL
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 5.15.133.1 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="gcc (Ubuntu 12.3.0-1ubuntu1~23.04) 12.3.0"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=120300
CONFIG_CLANG_VERSION=0
CONFIG_AS_IS_GNU=y
CONFIG_AS_VERSION=24000
@hypeitnow
hypeitnow / .aliases
Last active June 7, 2025 22:12
wsl.conf for wsl2
#------------------------------------------------------------------------------
# Environment Settings
#------------------------------------------------------------------------------
export EDITOR='nano'
#------------------------------------------------------------------------------
# File Extraction Function
#------------------------------------------------------------------------------
ex () {
if [ -f $1 ] ; then
using namespace System.Management.Automation
using namespace System.Management.Automation.Language
if ($host.Name -eq 'ConsoleHost')
{
Import-Module PSReadLine
}
#Import-Module PSColors
#Import-Module posh-git
Import-Module -Name Terminal-Icons
@hypeitnow
hypeitnow / ohmyposhv3-v2.json
Created October 12, 2023 17:36 — forked from shanselman/ohmyposhv3-v2.json
ohmyposhv3-v2
{
"final_space": true,
"console_title": true,
"console_title_style": "folder",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"horizontal_offset": 0,
"vertical_offset": 0,
@hypeitnow
hypeitnow / .config
Last active November 30, 2023 20:30 — forked from cerebrate/.config
config file for 6.1.21.2 Kernel under WSL
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 6.1.21.2 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=90400
CONFIG_CLANG_VERSION=0
CONFIG_AS_IS_GNU=y
CONFIG_AS_VERSION=23400
sudo nix-env -p /nix/var/nix/profiles/system --delete-generations old
sudo nix-collect-garbage -d
sudo nix-env -p /nix/var/nix/profiles/system --list-generations
# Remove entries from /boot/loader/entries:
sudo bash -c "cd /boot/loader/entries; ls | grep -v <current-generation-name> | xargs rm"
@hypeitnow
hypeitnow / instructions.md
Created December 25, 2022 17:45 — forked from matthewjberger/instructions.md
Install a nerd font on ubuntu

1.) Download a Nerd Font

2.) Unzip and copy to ~/.fonts

3.) Run the command fc-cache -fv to manually rebuild the font cache

@hypeitnow
hypeitnow / lxd_pxe_boot.log
Last active November 4, 2022 09:04
lxd_pxe_boot
- list:
- lldp:lldp:
label: LLDP neighbors
- lshw:node:
id: maas-enlisting-node
claimed: true
class: system
handle: DMI:0100
- lshw:description:
Computer