Quantcast
Channel: Code – Phil Chen
Browsing latest articles
Browse All 13 View Live

String Substitution in PERL vs SED Removing Disk I/O Factor

A lot of systems administrators will use SED for string substitution, when they should try using PERL. When doing string substitutions with SED the string substitutions write to a seperate file, then...

View Article


How to use the PERL Blowfish Encryption Module with Padding Capabilities

If you have a scenerio when encryption is necessary for your data, a perl script utilizing the Crypt::Blowfish module to get the job done may be your answer. The code is pretty straight foward however...

View Article


Notify me someone is logging into my Linux server

If your like me you like to know who is logging into your servers, hopefully this blog entry will help. So the scenerio goes someone has logged into your server through means not legal or ethical at 4...

View Article

Linux Usage Statistics Using Ruby Gem usagewatch

I recently had a Ruby project which needed detailed Linux Usage Statistics, such as CPU, DISK, TCP/UDP, Load, Bandwidth, Disk I/O, and Memory. So I authored and open sourced under (MIT License) a Ruby...

View Article

Working with IP address information using Ruby

I recently needed to create an IP address range in array format, and came across a nice Ruby Class “ipaddr” for working with IP address information. My goal was to white list an IP by cross referencing...

View Article


How to make a Python Web App in Virtualenv using Flask, Gunicorn, NGINX on...

This article will cover creating a scalable Python Flask web application on Ubuntu 18.04 using Gunicorn and NGINX. The web application also leverages Virtualenv to provide an isolated Python...

View Article

A scalable Flask application using Gunicorn on Ubuntu 18.04 in Docker

This article will cover creating a scalable Flask application using Gunicorn on Ubuntu 18.04 in Docker. We loosely are defining Flask application to mean serving up a web page via a GET request,...

View Article

Scaling a Python Flask App with NGINX using Multiple Containers with Docker...

This article will go over scaling a Python Flask application utilizing a multi-container docker architecture. Leveraging Docker Compose we will create a NGINX Docker container that will act as a load...

View Article

Browsing latest articles
Browse All 13 View Live