Skip to content

Instantly share code, notes, and snippets.

View the-mova's full-sized avatar
🖱️
Setting up my Github

mova the-mova

🖱️
Setting up my Github
View GitHub Profile
@the-mova
the-mova / windows-commands.md
Last active June 2, 2024 23:06
Windows ~ Useful commands

Generate SSH key with ed25519 cryptography algorithm


 ssh-keygen -t ed25519 -C "personal github account ~ the-mova"

Run program (e.g. SSMS) as a different user


runas /netonly /user:domainname\username Ssms.exe
@the-mova
the-mova / github-ssh-config.md
Last active June 2, 2024 23:06
Github ~ SSH Config

SSH config file to setup and use one or more github account(s)

# Personal github account ~ uses public key
Host gh_personal
	HostName github.com
	PreferredAuthentications publickey
	IdentityFile ~/.ssh/gh_personal
	
# Work github account ~ uses public key
@aaossa
aaossa / AutoPull.bat
Created March 27, 2016 04:17
Batch utilities
@ECHO OFF
REM This bat file iterates on the folders in this directory and
REM makes a "git pull" over every folder (only "git repos")
FOR /f "delims=" %%D IN ('dir /a:d-h /b') DO (
CD %%~D
IF EXIST ".git" (
ECHO Repo: %%D
git pull