A while ago, I wrote about some fun things to do to help secure your servers. Among the things I included was information about SSH banners, and Message of the Day files. At the time, I was not able to generate dynamic content for the Message of the day. Recently, I learned how to accomplish dynamic content on CentOS/Redhat based Linux systems. My goals for this project was to show the following:
- System Information
- User Information
- Weather and Fortune
- System Name
- Warnings and Rules
Over the last few weeks I’ve been working on a Perl English to Pig Latin script. For testing I used the text of The Time Machine by: H.G. Wells from Project Guttenberg. You can get the full code, and the text I used for testing at my GitHub Repo.
I was challenged to write Hangman. It started out with a simple enough idea. Have the computer pick a word from a wordlist, and present the hangman structure, and proceed through the game. As is often the case, while the idea is simple, it took me a bit to figure it out. See my Github Repo for the full code
Recently I upgraded from Jekyll 2.x to 3. When I did the upgrade the plugin I was using to create category pages started reporting depreciation errors. I started looking into creating the category pages a different way, and If I could create them without a plugin, I decided that would be the best way to do it.
I wanted to add a related post feature to my post pages, to help content be found more easily. I decided to make use of my tags, to help group posts together.
In this article I will share how I accomplished this, and where I found the code I used.
When I began using Jekyll to build my websites with I started developing this script to help me manage the build, and upload of new posts.
This script uses the following variables:
- Location of the key
- Location of the local Jekyll Website Files
- Remote username
- Remote server address
- Remote path to to the files on the server
- Port number to connect to.
The script checks for an existing _site directory and deletes it before building the website again. The rsync command looks at md5sums to determine if files have changed, and does not move them over if the content has changed.
The script is available from My Github Account