Skip to content

Instantly share code, notes, and snippets.

View quantumchuckles's full-sized avatar
🎯
Focusing

Shyam Pawar quantumchuckles

🎯
Focusing
View GitHub Profile
@quantumchuckles
quantumchuckles / setup_git.txt
Last active December 20, 2024 19:22
This script sets up SSH keys for GitHub authentication and configures Git to sign commits and tags with those keys. It cleans up old SSH, GPG, and Git configurations, then generates new keys and updates Git settings.
# Part 1: Cleanup
# List the contents of the SSH directory
ls -l ~/.ssh
# Remove existing SSH keys and configuration
rm -rf ~/.ssh
# Create a new SSH directory
mkdir ~/.ssh
# Set permissions for the SSH directory to 700 (read/write/execute for owner)
chmod 700 ~/.ssh
# List SSH keys currently added to the SSH agent
{"name":"270425","settings":"{\"settings\":\"{\\n\\t\\\"tabnine.experimentalAutoImports\\\": true,\\n\\t\\\"files.exclude\\\": {\\n\\t\\t\\\"**/.classpath\\\": true,\\n\\t\\t\\\"**/.project\\\": true,\\n\\t\\t\\\"**/.settings\\\": true,\\n\\t\\t\\\"**/.factorypath\\\": true\\n\\t},\\n\\t\\\"[javascript]\\\": {\\n\\t\\t\\\"editor.defaultFormatter\\\": \\\"esbenp.prettier-vscode\\\"\\n\\t},\\n\\t\\\"[json]\\\": {\\n\\t\\t\\\"editor.defaultFormatter\\\": \\\"esbenp.prettier-vscode\\\"\\n\\t},\\n\\t\\\"workbench.colorCustomizations\\\": {\\n\\t\\t\\\"activityBarBadge.background\\\": \\\"#84FFFF\\\",\\n\\t\\t\\\"activityBar.activeBorder\\\": \\\"#84FFFF\\\",\\n\\t\\t\\\"list.activeSelectionForeground\\\": \\\"#84FFFF\\\",\\n\\t\\t\\\"list.inactiveSelectionForeground\\\": \\\"#84FFFF\\\",\\n\\t\\t\\\"list.highlightForeground\\\": \\\"#84FFFF\\\",\\n\\t\\t\\\"scrollbarSlider.activeBackground\\\": \\\"#84FFFF50\\\",\\n\\t\\t\\\"editorSuggestWidget.highlightForeground\\\": \\\"#84FFFF\\\",\\n\\t\\t\\\"textLink.foregro