Entries from June 2021

How To Change Your GIT Name and Email Address Globally and Per Repository

Author: , June 17th, 2021

To update your git user name and email address for all repos:

To update your git user name and email address for a specific repo:

How To Count Strings Inside Another In Perl

Author: , June 16th, 2021

Should result in 3

How To Search the APT Sources for Available Packages

Author: , June 10th, 2021

Search for a string:

List all packages:

How To Convert from AWS Instance Family t2 to t3 with Enhanced Networking on Amazon Linux 1

Author: , June 10th, 2021

I wanted to change instance type from t2 to t3, but got an error when i went to start the instance:

I found this AWS docs page: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/enhanced-networking-ena.html Below are the steps I need to follow on AWS Linux 1. Summary Steps Pre-flight tests on t2 modinfo ena -> see “ERROR: modinfo: could not […]

How To Undo A Conflicting Merge in GIT

Author: , June 8th, 2021

shell> git merge branch-with-messy-changes

shell> git status

shell> git merge –abort shell> git status

IMPORTANT NOTE: Previous versions of git used different commands for this operation: Latest version: git merge –abort Older than version 1.7.4: git reset –merge Older than version 1.6.2: git reset –hard