How to Create and Push to a Local Git Repository

Ryan Other Leave a Comment

I want to store this one for later so I’m posting it here. If you find it useful feel free to link to it. I wanted to version some files I’m working on but didn’t want to use a git service like BitBucket, GitLab, etc. mainly because they are huge and I don’t want to wait for them to upload …

Allow Access to .well-known Folder For Let’s Encrypt/Certbot When Site Is Protected By HTTP Authentication

Ryan Code, Server

If you’re running Apache web server and you have your site protected with HTTP authentication but still want to allow Let’s Encrypt/Certbot to be able to issue a certificate you will have to allow access to the .well-known folder on your site. Otherwise they may give you an error and fail to issue you a certificate. You can allow access …

Install new ARK server on Ubuntu 16.04

Ryan Server

First provision your server at your desired web host. I recommend using an 8GB Linode VPS. I could not get the server to start on a 4GB but maybe some day they will optimize it enough for that if you aren’t planning to have a lot of players. Linode is great because they have more RAM than some other hosts …

Website downloads instead of displaying

Ryan Server

Recently I noticed a few sites had a page download instead of displaying when they were working perfectly fine before. I’m not 100% sure why but in my case the fix was to go into Virtualmin and toggle the PHP Version to some other version and back to my current one. I don’t know exactly what it changed, maybe it …

Bash Script for Installing / Updating Java JDK RPM

Ryan Code, Server

Here’s a BASH script I wrote which downloads and installs the Java JDK RPM. Tested on CentOS 6.x. If you are looking to install on Ubuntu (or Mint) go here. It also downloads the Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files which are required for some applications. You must replace the version variables in order to download the …

Rdio Replacement

Ryan Other

My wife and I freaked out a little bit when we heard Rdio is going away. Now we have to find an Rdio replacement! Since we live in Canada we can’t get Pandora yet so we can’t even hope to find in Pandora what we found in Rdio. Music is very important in our lives so it’s a pretty big …

Redirect Apache ServerAlias to ServerName

Ryan Server

I had a website that was moved to a new domain name but I wanted to make all the old URLs redirect to the new domain. However, redirecting using a typical .htaccess redirect as shown below wouldn’t work because it was new using the old domain as a ServerAlias to the new domain/ServerName. RewriteEngine on RewriteCond %{HTTP_HOST} ^example.com$ [OR] RewriteCond …

Recursively find and replace php.ini date.timezone

Ryan Server

I recently had to update PHP on a server and the php.ini settings but then the date.timezone wasn’t set in a bunch of servers. So I decided just to search and replace them instead of doing them all individually. find . -name ‘php.ini’ -type f -exec sed -i ‘s/;date.timezone =/date.timezone = “America\/Toronto”/g’ {} + Note the extra \ between America/Toronto …

Building mod_webpresence for ejabberd on CentOS

Ryan Server

I keep forgetting how to setup the mod_webpresence for ejabberd whenever I happen to reinstall everything so I am typing it out here for future reference and maybe it’ll even be useful for others. The instructions aren’t 100% clear for me on the ejabberd-contrib github page since I have always had issues figuring it out. Hopefully these instructions will save …