Syed Aslam

Author posts

Managing multiple SSH keys

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 gitconfig

Creating Python Virtual Environments

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.

python

How to use forked NPM dependencies

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

Dynamic Full Page Background Images in Rails

in Rails · 2 min read

Easy way to set a background from a selected number of images in Rails. You can set a background image purely through CSS thanks to the 'background-size' property in CSS3. Using the `html` element is better than `body` as it's always at least the height of the browser window. You set a fixed and centered background on it, then adjust it's size using `background-size` set to the cover keyword.

rails css helpers