Skip to content

Instantly share code, notes, and snippets.

View rahadulx0's full-sized avatar
:copilot:
Focusing

Rahadul Islam rahadulx0

:copilot:
Focusing
View GitHub Profile
# ================================
# Minimal PowerShell Prompt Script
# Path (Razer Green) + Execution Time (right aligned)
# Prompt '>' also Razer Green
# ================================
# Store start time before command execution
$global:LastCommandStart = Get-Date
function Format-Duration([TimeSpan]$duration) {

Git Commands Cheat Sheet

A comprehensive list of commonly used Git commands, organized by category.

Configuration

  • Set user name: git config --global user.name "Your Name"
  • Set user email: git config --global user.email "your.email@example.com"
  • View configuration: git config --list
  • Set default editor: git config --global core.editor "vim"
@rahadulx0
rahadulx0 / manifest.json
Created August 25, 2025 18:54
Chrome Theme: Obsidian Glow
{
"manifest_version": 3,
"name": "Obsidian Glow",
"version": "1.8",
"description": "A sleek and modern theme with deep tones and subtle bluish-green highlights, now with all toolbar and navigation icons in pure white.",
"theme": {
"colors": {
"frame": [4, 18, 25],
"frame_inactive": [3, 12, 20],
"toolbar": [8, 40, 55],
; AutoHotkey v2 Media + Navigation + Apps Control Script
; -------------------- Media Controls --------------------
; F8 - Play/Pause
F8::Send("{Media_Play_Pause}")
; F9 - Volume Down
F9::Send("{Volume_Down}")
; F10 - Volume Up
! 2024-02-12 https://web.whatsapp.com
web.whatsapp.com##.eo2nzah0.d1poss59.gofg5ll1.ihvf49ua.ln8gz9je.lvkpixa0.jxacihee.lhggkp7q.aiput80m.b7n2qyd4.gndfcl4n.sap93d0t.o4u7okr9.i2cterl7.gjuq5ydh.dnb887gk.p357zi0d.nu7pwgvd.ktfrpxia.j7l1k36l.lb5m6g5c.m0h2a7mj.tvf2evcx
! Hide all videos containing the phrase "#shorts"
youtube.com##ytd-grid-video-renderer:has(#video-title:has-text(#shorts))
youtube.com##ytd-grid-video-renderer:has(#video-title:has-text(#Shorts))
youtube.com##ytd-grid-video-renderer:has(#video-title:has-text(#short))
youtube.com##ytd-grid-video-renderer:has(#video-title:has-text(#Short))
! Hide all videos with the shorts indicator on the thumbnail
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"foreground": "#F141A8",
"properties": {
"folder_separator_icon": "/",
@echo off
echo Closing Google Chrome...
taskkill /F /IM chrome.exe /T > nul
echo.
IF NOT EXIST "%WINDIR%\System32\GroupPolicy" goto next
echo Deleting GroupPolicy folder...
RD /S /Q "%WINDIR%\System32\GroupPolicy" || goto error
@echo off
SET st2Path=F:\Software\Installs\sublime_text_build_4180_x64\sublime_text.exe
rem add it for all file types
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text" /t REG_SZ /v "" /d "Open with Sublime Text" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text" /t REG_EXPAND_SZ /v "Icon" /d "%st2Path%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text\command" /t REG_SZ /v "" /d "%st2Path% \"%%1\"" /f
rem add it for folders
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text" /t REG_SZ /v "" /d "Open with Sublime Text" /f
@rahadulx0
rahadulx0 / clean windows.cmd
Last active July 7, 2024 13:35
Uninstall all the bloatwares from newly installed windows 10 & 11. It also brings back the legacy contex menu for better productity and time save..
Get-AppxPackage *Microsoft.YourPhone* -AllUsers | Remove-AppxPackage
Get-AppxPackage *Microsoft.GetHelp* -AllUsers | Remove-AppxPackage
Get-AppxPackage *Microsoft.People* -AllUsers | Remove-AppxPackage
Get-AppxPackage *Microsoft.WindowsCamera* -AllUsers | Remove-AppxPackage
Get-AppxPackage *communicationsapps* | Remove-AppxPackage
Get-AppxPackage *maps* | Remove-AppxPackage
Get-AppxPackage *feedback* | Remove-AppxPackage
Get-AppxPackage *officehub* | Remove-AppxPackage
Get-AppxPackage *getstarted* | Remove-AppxPackage
Get-AppxPackage *skypeapp* | Remove-AppxPackage
@rahadulx0
rahadulx0 / Windows Terminal Settings.json
Last active December 22, 2024 22:00
My personal theme for windows terminal.
{
"$help": "https://aka.ms/terminal-documentation",
"$schema": "https://aka.ms/terminal-profiles-schema",
"actions":
[
{
"command":
{
"action": "copy",
"singleLine": false