Shami's Blog

Sysadmin, Because Even Developers Need Heroes

Faster TLS Deployment With Acmetool

2018-02-19 by Mohammad H. Al-Shami

So lately I’ve been using Ansible to manage and bootstrap my servers. I prefer the configuration management part in Salt but orchestration has been much cleaner with Ansible for me. I might take another look at Salt later on but for the time being I run everything on Ansible.


Getting Smtp Working With edX Devstack

2017-11-22 by Mohammad H. Al-Shami

Lately I’ve been tinkering with Open edX at work for a project we’re working on. The customer needed a specific workflow which required emails and all the parameters I found didn’t help. But finally I found the solution here


Go Get Error With Babun Shell

2017-11-21 by Mohammad H. Al-Shami

Quick one here, if you run into the following error when trying to download a go package using Babun

go get -u -v (download)
# cd .; git clone C:\Users\Mohammad Al-Shami\go\src\\cosiner\argv
Cloning into 'C:\Users\Mohammad Al-Shami\go\src\\cosiner\argv'...
fatal: Invalid path '/cygdrive/c/Users/Mohammad Al-Shami/Desktop/go/C:\Users\Mohammad Al-Shami\go\src\\cosiner\argv': No such file or directory
package exit status 128


Installing Edx on Ubuntu Xenial

2017-11-06 by Mohammad H. Al-Shami

So I’ve been tasked with installing the Open edX devstack for work to do some testing. The current documentation is very lacking and it’s been an ordeal. I decided to summerize the process as a reference.


Bad Gateway With Nginx, PHP, and Oracle

2017-10-26 by Mohammad H. Al-Shami

So I got a call from one of our developers telling me one of our Moodle development sites was not working. This particular Moodle instance was configured to use an Oracle backend since that’s what the customer has. Upon checking I got a “Bad Gateway” error.


Automating Hugo Deployments With Webhooks, Bitbucket, and CloudFlare

2017-09-14 by Mohammad H. Al-Shami

I’ve been using Hugo for a while now and love it. I don’t update my blog much and with Hugo I don’t need to spend more time updating the CMS than actually blogging. The markdown files are hosted at BitBucket along with my other code and I use CloudFlare for protection as well as a CDN.


Babun SSH/Git With TinyWall

2017-09-06 by Mohammad H. Al-Shami

I was thinking of a way to make my laptop a bit more secure and started looking into alternative firewalls for Windows. I came across TinyWall which is an alternative front end to the Windows firewall so it’s not as intrusive as the other options. Everything was working well till I tried to pull a git repository from Babun and I got an the following error


Nvidia Drivers On Headless Ubuntu Server 16.04

2017-06-22 by Mohammad H. Al-Shami

I wanted to do some GPU processing using a virtual machine running inside unRAID. First I tried Windows and it worked, but I read that running the code inside Ubuntu 16.04 would be more efficient.


Disable Google Analytics While Running Hugo Test Server

2017-04-24 by Mohammad H. Al-Shami

So while I was writing my previous post I realized that Google Analytics was being called from the localhost server. I also had lots of grief with Disqus back when I migrated to Hexo; It filled my account with posts related to localhost. I wonder why Disqus built it this way.

I hard-coded the Disqus URL in my theme (Both Hexo and Hugo) but then realized I can’t do the same for Google Analytics. I needed a way to disable it altogether. The fix turned out to be quite simple.


Adding Oracle Support PHP On Ubuntu Xenial

2017-04-24 by Mohammad H. Al-Shami

I’ve been recently asked to enable a web server running to PHP to connect to an Oracle database for a client. Sadly this doesn’t work natively on FreeBSD so I’m documenting how I managed to do it on Ubuntu Xenial. This was inspired by this post and this post.


About Me

Dev gone Ops gone DevOps. Any views expressed on this blog are mine alone and do not necessarily reflect the views of my employer.