Skip to content

Instantly share code, notes, and snippets.

View pizofreude's full-sized avatar
👏

Hafeez Pizofreude pizofreude

👏
View GitHub Profile
@pizofreude
pizofreude / R_RStudioCloud_RStudioDesktop.md
Created June 26, 2025 16:55
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 { | } ~
@pizofreude
pizofreude / Hotkeys_Windows.md
Last active May 15, 2025 03:54
All things hotkeys in Windows

Windows has a plethora of useful hotkeys that can significantly enhance your productivity. Here are some of the most practical ones, categorized for ease of reference:

Basic Navigation and Window Management

@pizofreude
pizofreude / vs_code_hotkeys.md
Last active April 22, 2025 11:17 — forked from NikitaPokryshko/vs_code_hotkeys.md
VS Code Hotkeys

VSCode Shortcuts

List of helpful shortcuts for faster coding

If you have any other helpful shortcuts, feel free to add in the comments of this gist :)

Official List of all commands

@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/