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 / genie_install.sh
Last active November 27, 2023 14:58
genie_install
#! /usr/bin/env bash
set -e
# change these if you want
UBUNTU_VERSION="23.04"
GENIE_VERSION="2.5"
GENIE_FILE="systemd-genie_${GENIE_VERSION}_amd64"
GENIE_FILE_PATH="/tmp/${GENIE_FILE}.deb"
GENIE_DIR_PATH="/tmp/${GENIE_FILE}"
@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

Podman Installation on Ubuntu 22.04 WSL2

Execute the following command to install Podman:

sudo apt update
sudo apt -y install podman

Execute podman info to initialize rootless Podman:

@hypeitnow
hypeitnow / .p10k.zsh
Created October 12, 2023 18:37 — forked from elmoallistair/.p10k.zsh
powerlevel10k | Personal configuration
# Generated by Powerlevel10k configuration wizard on 2020-10-15 at 21:56 WIB.
# Based on romkatv/powerlevel10k/config/p10k-rainbow.zsh, checksum 00302.
# Wizard options: nerdfont-complete + powerline, large icons, rainbow, unicode,
# 24h time, slanted separators, sharp heads, sharp tails, 2 lines, solid, right frame,
# lightest-ornaments, sparse, many icons, concise, instant_prompt=verbose.
# Type `p10k configure` to generate another config.
#
# Config for Powerlevel10k with powerline prompt style with colorful background.
# Type `p10k configure` to generate your own config based on it.
#
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"