File System Related

How to use multiple ssh keys for different accounts

I wanted to have multiple rsa keys for various different hosts to help prevent hidden connection issues. Issues may arises when an rsa key is changed on one host that may have been used on another host effectively severing the connection without your knowledge. By having different rsa keys when dealing with a host that… Read more How to use multiple ssh keys for different accounts

How To Create a Password Hash with Python passlib

Create a password hash with python passlib A quick and easy way to create a password hash is with python passlib. Install passlib with pip like this: sudo pip install passlib Then, run the command below. Of course, you will replace the text “myplaintextpassword” with YOUR OWN plain text password, right? python -c “from passlib.hash… Read more How To Create a Password Hash with Python passlib

How to Understand PHP Stream Wrapper Context and Options

Some have a difficult time understanding what is meant in PHP by stream wrappers, context options and parameters. Judging by a few conversations with other developers, its obvious there is a bit of confusion about what a stream wrapper is and why it would have a context. While the PHP documentation does adequately describe what… Read more How to Understand PHP Stream Wrapper Context and Options

How To Compress a Directory with the tar Command and Exclude Certain Files, tarball exclude files

When creating a tar-ball (compressing a directory of files), you may exclude certain files by using the –exclude flag. The –exclude flag will also work with a wild card “*”. Here is an example of how to tar-ball a directory from the parent directory and exclude certain files: tar –exclude=”node_modules” –exclude=”.*” -zcvf my-tar-ball.tar.gz ./<directory to… Read more How To Compress a Directory with the tar Command and Exclude Certain Files, tarball exclude files