Skip to content

Instantly share code, notes, and snippets.

View pizofreude's full-sized avatar
👏

Hafeez Pizofreude pizofreude

👏
View GitHub Profile
@pizofreude
pizofreude / TIL_20250418_ProjectStatusIndicator.md
Created April 18, 2025 11:42
How to indicate project status in GitHub README

Indicating the project status in your README is a great way to communicate the current state of your project to potential collaborators, recruiters, or users. You can use a "Project Status" section near the top of your README to make this clear. Here’s how you can do it:

Examples for Indicating Project Status

1. Use a Badge (Preferred for Clear Visuals)

Including a badge is a common way to display project status. You can generate badges using services like shields.io. Here’s an example:

![Project Status](https://img.shields.io/badge/status-in--progress-yellow)
@pizofreude
pizofreude / TIL_20250417_TerraformArtifacts.md
Created April 17, 2025 17:10
Terraform Code Artifacts and Descriptions

Terraform Code Artifacts and Descriptions

  • providers.tf
    Description: The providers.tf file is used to configure and declare provider settings in Terraform. Providers enable Terraform to interact with cloud platforms (e.g., AWS, Azure, GCP) or other services. This file specifies provider versions, regions, and authentication methods.

  • variables.tf
    Description: The variables.tf file defines input variables for Terraform configurations. These variables allow parameterization of values like resource names, regions, or instance types, making configurations more reusable and dynamic.

  • outputs.tf
    Description: The outputs.tf file is used to expose the results of a Terraform run. It outputs values, such as IP addresses, URLs, or resource attributes, for use by other configurations, tools, or workflows.

@pizofreude
pizofreude / TIL_20250417_VCS.md
Created April 17, 2025 15:47
All things VCS

Keeping Empty Folder

Both .gitkeep and .keep can be used to keep an empty directory in version control. However, the difference lies in how Git handles them.

.gitkeep is a file that tells Git to keep the directory it's in as a versioned entity. When you commit a .gitkeep file to a Git repository, Git will keep the directory it's in, even if it's empty.

.keep is a file that tells Git to keep the directory it's in as a versioned entity, but it's not as widely supported as .gitkeep. While both files achieve the same purpose, some Git versions may not recognize .keep as a valid file for keeping directories.

In general, it's recommended to use .gitkeep instead of .keep to ensure that your empty directories are kept in version control across different Git versions and platforms.

@pizofreude
pizofreude / TIL_20250417_Terraform.md
Last active April 17, 2025 17:31
All things Terraform commands

terraform init

Consider that under terraform folder, there are dev/ prod/ global/. So how many times do we need to run terraform init ?

Answer

Based on the transcript, you have the following folders under your terraform folder:

  • dev/
  • prod/
@pizofreude
pizofreude / TIL_20250416_Git_Terraform.md
Created April 16, 2025 18:24
Git and Terraform Workspace Workflow. All things git & terraform.

Git and Terraform Workspace Workflow

When using Terraform with Git, it's common to associate a Terraform workspace with a specific Git branch. This allows you to manage different environments and configurations for each branch.

Here's a general workflow:

  1. Create a new Git branch: Create a new branch from the main branch, e.g., git branch dev.
  2. Create a new Terraform workspace: Run terraform workspace new dev to create a new workspace named "dev".
  3. Switch to the new Terraform workspace: Run terraform workspace select dev to switch to the "dev" workspace.
  4. Make changes and commit to the Git branch: Make changes to your infrastructure configuration files and commit them to the "dev" branch using git add and git commit.
@pizofreude
pizofreude / TIL_20250305_JupyterNotebook.md
Created March 5, 2025 11:28
Jupyter Notebook Keyboard Shortcuts for Windows and Linux

Jupyter Notebook Keyboard Shortcuts for Windows and Linux

General Shortcuts

  • Enter: Enter edit mode
  • Esc: Enter command mode
  • Shift + Enter: Run cell, select below
  • Ctrl + Enter: Run cell
  • Alt + Enter: Run cell, insert below
  • Ctrl + S: Save and checkpoint
@pizofreude
pizofreude / TIL_20250226_dbt.md
Last active February 26, 2025 12:01
All things dbt

dbt Core

set up dbt (Data Build Tool) for using Postgres locally

To set up dbt (Data Build Tool) for using Postgres locally, you need to:

  1. Install dbt on your local machine.
  2. Create a dbt project.
  3. Configure the dbt project to connect to your local Postgres database.
  4. Run dbt commands to test the setup.
@pizofreude
pizofreude / TIL_20230227_HowTo_Markdown.md
Last active April 16, 2025 18:22
Methods to center a clickable hyperlink in Markdown.

How to Center a Clickable Hyperlink in Markdown

Method 1

One way to center a clickable hyperlink in HTML is to use the tag inside a

tag with “text-align:center” style1.

For example:

@pizofreude
pizofreude / TIL_20230216_Python_VirtualEnvironment.md
Last active July 26, 2023 09:55
Python Virtual Environment Setup

Python Virtual Environment

Best practice before creating python project to avoid dependencies error across programs is to code in virtual environment.

Setup

Go to desired directory in the terminal, then type in command line:

Windows:

@pizofreude
pizofreude / TIL_20230214_LaTeX_Hyperlinks.md
Last active February 14, 2023 10:31
Latex: How to make hyperlinks appears blue, underlined, and clickable.