For quite some time now, PowerShell has been cross-platform. This means you can now use it on Mac OS and on the many different flavors/distributions of Linux. Here’s how to install PowerShell Core followed by Azure PowerShell on your Ubuntu machine.
Linux & Servers
What is life without Linux? Browse this category to explore content I have created relating to Linux and Servers. This section is pretty broad. It promises content on Ubuntu, cloud VMs, server automation, bash scripting, PowerShell, system/website administration, AWS, etc. Watch this space for my existing and future content on the aforementioned technologies.
Since PowerShell is now open source and cross-platform, we can now perform PowerShell magic right inside Linux boxes. If this isn’t exciting, what is?! Here’s an example of how to execute PowerShell scripts (or commands) from PHP code on a Linux VM.
The regular plugin-based methods for noindexing pages may not work for files and the question becomes: How do we hide (noindex) files in WordPress from search engines? In this article, I explain a solution to this problem and I demonstrate with live example files how you can hide (noindex) other types of media like PDF and Excel files in WordPress.
I have been playing a lot with PowerShell desired state configuration (DSC) recently and so, I decided to write an introductory post on it. In this article, I explain at a high level what PowerShell DSC is all about. And then, I provide a simple example that demonstrates at a basic level how PowerShell desired state configuration works.
On Amazon EC2, the instance type you choose determines the amount of physical memory (RAM) that you get. Larger instance types with lots of RAM are more expensive. So if you want more RAM on a medium or small EC2 instance, you can define some storage space on your disk to act as RAM when needed. The disk area you use for this purpose is called a swap file. This article explains swap files and demonstrates how to set up a 2GB swap file using ephemeral storage on an m3.medium instance of Amazon EC2 that has only 3.75GB of RAM by default.
If you have ever tried to figure out why Linux is running low on memory, you will agree that the memory usage information provided by the kernel is not easy to understand. This post explains what Pss means in the /proc/PID/smaps file.