Skip to content

Instantly share code, notes, and snippets.

View pizofreude's full-sized avatar
👏

Hafeez Pizofreude pizofreude

👏
View GitHub Profile
@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.
@pizofreude
pizofreude / keybase.md
Created February 1, 2023 05:22
Prove my GitHub with Keybase.

Keybase proof

I hereby claim:

  • I am pizofreude on github.
  • I am pizofreude (https://keybase.io/pizofreude) on keybase.
  • I have a public key ASDTcfq5kpVsFsvFqcAXYoBFZPfrSjxm49eS3usYkxRJCQo

To claim this, I am signing this object:

@pizofreude
pizofreude / Backup_aliases.sh_GitBash.md
Last active January 21, 2023 16:50
Backup for Additional Aliases in aliases.sh

alias npp='/c/Program\ Files/Notepad++/notepad++.exe' alias cls='clear'

@pizofreude
pizofreude / index.htm
Last active October 2, 2022 06:12 — forked from vampireneo/index.htm
HTML for embed another page by iframe, without border
<html>
<head>
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
</head>
<body style="margin:0px;padding:0px;overflow:hidden">
<!-- <iframe src="__URL_HERE__" frameborder="0" style="overflow:hidden;overflow-x:hidden;overflow-y:hidden;height:100%;width:100%;position:absolute;top:0px;left:0px;right:0px;bottom:0px" height="100%" width="100%"></iframe> -->
<iframe class="gas-cards-iframe" src="https://www.blocknative.com/gas-iframe" style="width:100%;height:500px;display:block"></iframe>
</body>
</html>