Skip to content
Lupe Code

Lupe Code

Moonlight Coding

  • Home
  • Posts

Author: Joshua

Posted on 2020-08-222021-04-06

Thinking Like a Programmer – Roman Numerals

We have a task to take a number and convert it into Roman numerals. That’s easy, right?  Lets work through the problem.

Continue reading “Thinking Like a Programmer – Roman Numerals”

Posted on 2020-06-212020-06-21

Apache Cannot Start as Service, Starts Manually

I recently solved a situation where Apache was unable to start as a service under SystemD using systemctl start httpd, but started no problem using httpd -k start. This issue took place on our fleet of CentOS servers, but only affected one of them.

Continue reading “Apache Cannot Start as Service, Starts Manually”

Posted on 2020-05-302020-05-30

2FA with Authenticator App, No SMS Needed

It is super easy to implement authentication via an app where your users get a new code every 30 seconds.

Continue reading “2FA with Authenticator App, No SMS Needed”

Posted on 2019-09-122020-02-08

Run Multiple Versions of PHP in a Single Apache Vhost

When upgrading to the next release of PHP it’s nice to be able to test it in place. Continue reading “Run Multiple Versions of PHP in a Single Apache Vhost”

Posted on 2019-09-112019-09-11

PHP Array Key Value Shuffle

Recently I had need to shuffle an array, but keep the associative keys. Here’s the simple function to do that. Continue reading “PHP Array Key Value Shuffle”

Posted on 2019-09-072020-08-04

Setting Up a Local Apt Mirror for PPAs

I use the PPAs for both Apache and PHP. I know that when running apt update downloading from the PPAs takes a while. This post describes how to set up a local apt mirror to speed that up.

Continue reading “Setting Up a Local Apt Mirror for PPAs”

Posted on 2019-05-042019-09-07

Enabling TLS v1.3, HTTP2, and Push on Apache 2

Keeping the server spec up to date take regular effort. In this post we will discuss how to set up and enable some of the most recent web technologies.

Continue reading “Enabling TLS v1.3, HTTP2, and Push on Apache 2”

Posted on 2019-03-272019-05-04

Random Password Generator in Javascript

I’ve been wanting to have a simple password generator. There are a few solutions out on the internet, but none quite what I wanted. Here is a simple and customizable JavaScript password generator.

Continue reading “Random Password Generator in Javascript”

Posted on 2018-12-062019-09-07

PSA: Do NOT Use the Repo Version of Prometheus on Ubuntu

The Ubuntu repo has version 0.16, while the current version is 2.5. It’s really out of date and does not work properly.

Continue reading “PSA: Do NOT Use the Repo Version of Prometheus on Ubuntu”

Posted on 2018-11-122019-05-04

Integrating gtest with cygwin and cmake on Windows

I had need to use Google’s C++ unit testing frame work, gtest, in one of my projects.  I spent a lot of time Googling on what folders to include, where to put it, how to configure cmake, etc.  Here’s the guide so you don’t end up pulling out your hair like I did.

Continue reading “Integrating gtest with cygwin and cmake on Windows”

Posts pagination

Page 1 Page 2 Page 3 Next page
Powered by WordPress / WordPress Maintenance Service By Website Helper