Syed Aslam

Thoughts, Stories, and Ideas

git: revert an updated file

by Syed Aslam in Git · 2 min read

This is one hard to find out there so here it is. How to remove an updated file from a pull request whose content is changed but is out of the scope for this pull request. Now you want to remove the file from the pull request without deleting the file itself, not delete the file itself, but just revert the inclusion of this file in the pull request because, if you delete the file, then that deletion becomes part of your changeset, which is not what you wanted at all.

git git-revert

Managing multiple SSH keys

by Syed Aslam in Ssh · 5 min read

Managing SSH keys can become cumbersome as soon as you need to use a second key. Traditionally, you would use ssh-add to store your keys to ssh-agent, typing in the password for each key. A better solution is to automate adding keys, store passwords and specify which key to use when accessing certain servers. Use the configuration file to manage multiple ssh keys pairs.

ssh ssh-config

Creating Python Virtual Environments

by Syed Aslam in Python · 2 min read

Python applications will often use packages and modules that don't come as part of the standard library. Applications will sometimes need a specific version of a library. It may not be possible for one Python installation to meet the requirements of every application. The solution for this problem is to create a virtual environment, a self-contained directory tree that contains a Python installation for a particular version of Python, plus a number of additional packages. You can setup as many Python programming environments as you would like.


How to use forked NPM dependencies

by Syed Aslam in Node · 3 min read

When using open-source NPM packages in your project, odds are you will run into a dependency that is missing a feature. This dependency doesn't do quite do what you want or has a bug that needs to be worked around for your use-case. What do you do in these situations, if your team doesn't have the time to create your custom solution to the problem?

Node JavaScript NPM Web-Development