Skip to content

Instantly share code, notes, and snippets.

@mrtrkmn
Last active August 2, 2022 09:30
Show Gist options
  • Save mrtrkmn/b97044dcbfd6c9fc592f3ceb744b4c76 to your computer and use it in GitHub Desktop.
Save mrtrkmn/b97044dcbfd6c9fc592f3ceb744b4c76 to your computer and use it in GitHub Desktop.
Handy Linux Command(s)
#!/bin/bash
sudo kill -9 $(pgrep code) # kills code process through terminal
## START SSH-AGENT FOR PASSWORD PROTECTED PRIVATE KEYS
## TO BE ACCEPTED WITHOUT TYPING PASS AT EACH TIME
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa
####################
# set git committer date to author date
git filter-branch --env-filter 'export GIT_COMMITTER_DATE="$GIT_AUTHOR_DATE"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment