Skip to content

Instantly share code, notes, and snippets.

View dsaad68's full-sized avatar
💭
a 🦙 Shepherd

Daniel Saad dsaad68

💭
a 🦙 Shepherd
View GitHub Profile
@dsaad68
dsaad68 / hide-desktop-icons.ahk
Created March 5, 2024 12:31
Hide Desktop Icons with Auto Hotkey
#Requires AutoHotkey 2.0+
#SingleInstance Force
#HotIf WinActive("ahk_class Progman") || WinActive("ahk_class WorkerW")
^+d::DesktopIcons()
#HotIf
DesktopIcons(){
hProgman:=WinExist("ahk_class WorkerW","FolderView")?WinExist():WinExist("ahk_class Progman","FolderView")
hShellDefView:=DllCall("user32.dll\GetWindow","ptr",hProgman,"int",5,"ptr")
@dsaad68
dsaad68 / ssh.md
Last active March 5, 2024 12:32
Windows OpenSSH Equivalent of ssh-copy-id
  1. Generate an SSH Key
ssh-keygen
  1. Create .ssh dir on remote
mkdir ~/.ssh/
@dsaad68
dsaad68 / ngrok.md
Created October 3, 2023 21:34
ngrok

how to ngrok with custom domain

ngrok.exe http http://localhost:7071 --domain=warm-severely-boxer.ngrok-free.app

@dsaad68
dsaad68 / How-to-Arch-WSL.md
Created September 29, 2023 17:23
Install Arch Linux as WSL

1. Install SCoop in the PowerShell

Set-ExecutionPolicy RemoteSigned -Scope CurrentUser # Optional: Needed to run a remote script the first time
irm get.scoop.sh | iex

2. Install using Scoop

scoop bucket add extras 
scoop install archwsl
@dsaad68
dsaad68 / none_remover.py
Created September 3, 2023 18:24
Nested dictionary None Rremover
def dict_none_remover(d:dict) -> dict:
"""
Remove keys with None values from a multi-level nested dictionary.
Parameters
----------
d : dict
The input dictionary from which keys with None values should be removed.
Returns
@dsaad68
dsaad68 / nushell+oh-my-posh.md
Last active July 28, 2023 19:33
Nushell + Oh My Posh

1. Install Nu Shell

# Windows
winget install nushell

2. Install Oh My Posh

winget install JanDeDobbeleer.OhMyPosh -s winget
@dsaad68
dsaad68 / How-to-install-Diesel-CLI.md
Last active July 27, 2023 13:14
How to install Diesel CLI in Windows

1. Install Microsoft Visual C++ Redistributable

From here.

or

choco install vcredist-all
@dsaad68
dsaad68 / conda_4.6_powershell.md
Last active July 27, 2023 13:15 — forked from martinsotir/conda_4.6_powershell.md
Enable conda in powershell

Enabling conda in Windows Powershell

First, in an administrator command prompt, enable unrestricted Powershell script execution (see About Execution Policies):

set-executionpolicy unrestricted

Then makes sure that the conda Script directory in is your Path.