Skip to content

Instantly share code, notes, and snippets.

View pizofreude's full-sized avatar
🏠
Working from home

Hafeez Pizofreude pizofreude

🏠
Working from home
View GitHub Profile
@pizofreude
pizofreude / bash_cheatsheet.md
Created March 13, 2026 11:15
Bash Terminal Cheatsheet for Analytics Engineering

🖥️ Bash Terminal Cheatsheet

Fellow-level reference · Quick lookup, no fluff.


📁 File & Directory Navigation

Command What it does
pwd Print current working directory
@pizofreude
pizofreude / aws_always_free.md
Created March 6, 2026 15:08
Always free AWS services

Always Free AWS Services

After your 12-month Free Tier period expires, you can continue using AWS services that have "Always Free" offers. These services remain free up to specified limits as long as you have a valid AWS account. Some examples of Always Free services include:

  • AWS Lambda - 1 million free requests per month
  • Amazon DynamoDB - 25 GB of storage
  • Amazon SNS - 1 million publishes per month
  • Amazon CloudWatch - 10 custom metrics and alarms
  • AWS CodeCommit - 5 active users per month
  • AWS CodePipeline - 1 active pipeline per month
@pizofreude
pizofreude / reframe-framework.md
Created March 3, 2026 23:53
A structured, Fellow-Level methodology to reverse engineer a Business Requirements Document (BRD) and Product Requirements Document (PRD) from a live website URL or provided screenshots.
framework_name version trigger_keyword description usage author_persona
REFRAME
1.1
REFRAME
A structured, Fellow-Level methodology to reverse engineer a Business Requirements Document (BRD) and Product Requirements Document (PRD) from a live website URL or provided screenshots.
Apply the REFRAME framework to[URL/Screenshots]
Fellow-Level Product Manager and Business Analyst

🚀 START HERE: System Instructions

@pizofreude
pizofreude / reverse_engineering_BRD_PRD.md
Created March 3, 2026 23:29
Framework to reverse engineer BRD & PRD from a live website URL

Reverse engineering a Business Requirements Document (BRD) and a Product Requirements Document (PRD) from a live website is a classic exercise for Product Managers and Business Analysts. Because you are working backward from the final output, you have to separate the "Why" (BRD) from the "What and How" (PRD).

Here is the best, most structured methodology to reverse engineer these documents from a URL.


Phase 1: Reverse Engineer the BRD (The "Why")

@pizofreude
pizofreude / PR.md
Last active October 5, 2025 15:58
Best Practices for PRs

PR Best Practices

Best Practice: Single PR for Related Changes

For all categories of changes that are closely related, they should be in one PR because:

1. Atomic Change Principle

  • The main code change, tests, and documentation all serve the same purpose: e.g. Ref: Issue #619 making ItemSample publicly available
  • They form a complete, logical unit of work
  • Splitting them would create incomplete states in the codebase
@pizofreude
pizofreude / git-cleanup-fork-sync-upstream.md
Created July 11, 2025 03:55
This gist captures the key learning and provides a reusable reference for future fork cleanup scenarios.

How to Clean Up Fork Commits and Sync with Upstream

TIL: When you accidentally add commits to your fork that shouldn't be there (like personal notes), here's how to clean them up and get back in sync with the upstream repository.

The Problem

Your fork shows: "This branch is X commits ahead of upstream:main" but those commits contain changes you don't want to contribute back (like personal notes, experiments, etc.).

Solution: 3 Options to Clean Up

@pizofreude
pizofreude / R_RStudioCloud_RStudioDesktop.md
Last active August 9, 2025 16:01
Cheatsheet for R, RStudio Cloud, RStudio Desktop

📚 R & RStudio: Working Directory Cheatsheet

This cheatsheet covers how to control and troubleshoot the working directory in R, RStudio Desktop, and RStudio Cloud. A correct working directory makes data import, script sourcing, and project management much smoother.


1️⃣ RStudio Desktop: Setting the Working Directory

A. Launch from Terminal with Correct Directory

@pizofreude
pizofreude / UEFI_BIOS_Check.md
Created May 26, 2025 06:51
How to check whether BIOS system support UEFI or not

Windows check whether your system supports UEFI by following these steps:

  1. Press Win + R, type msinfo32, and hit Enter.
  2. In the System Information window, look for BIOS Mode.
  3. If it says UEFI, your laptop supports it! If it says Legacy, it does not.

Rufus

For UEFI supported system, we can opt to GPT for partition scheme. Otherwise, choose MBR.

@pizofreude
pizofreude / Pocket_migration_to_Raindrop.md
Last active May 24, 2025 13:18
Prompt template for migration bookmarks from Pocket to Raindrop

I have exported my bookmarks from Pocket into a CSV file and I will attach it now. Please help me convert it into a format that Raindrop.io can import:

  • For each link, determine a Collection (high-level category) and assign appropriate Tags (subtopics). Collections are broad groups (e.g., Technology, Cooking, Health), while tags are specific keywords (e.g., Python, recipe, wellness).
  • Include any original description or notes from Pocket in the note field if they add useful context.
  • If a link has no clear topic or tags, put it in a generic Collection like Uncategorized or create a new one as needed.
  • You can create new Collections or tags whenever necessary to organize the links logically.
  • The final output should be a CSV file with columns: url, folder, title, note, tags (and optionally created). Use folder for the Collection name. Put multiple tags in quotes (for example, "tag1, tag2").
  • Provide example groupings such as:
    • Technology (Collection) with tags "programming, Python, AI"
  • R
@pizofreude
pizofreude / Linux_Passwords_and_keyboard_layout.md
Created May 21, 2025 03:31
Tips for safest characters for linux keyboard layout and passwords.

Tip: Passwords and keyboard layout It is recommended to only use US ASCII characters. In case of a system error or when you need to start your system in rescue mode, the keyboard may not be localized.

Here are the US ASCII characters:

! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~