SELinux Tip: Web Contents in User Home
I moved my website to new a server, since I moved my blog to Hugo I only needed small machine with minimal spec, so I downgraded my server to one costing $5 per month instead of $10.
I usually put all my personal projects including the blog under my home directory /home/rayed, and point the Apache web server to serve content from inside it.
So I configured Apache web server as follow:
My "Introduction to Cryptography & PGP" Talk
I had the pleasure to give a talk at The Saudi Federation for Cyber Security and Programming titled “Introduction to Cryptography & PGP”
You can watch Video of the talk, and for the slides:
Art Installation Technology
Have you ever wondered about …
- how a ride in a theme park works
- how the lights in a music show move and synchronize with the music
- how a dancing fountain … dance
- how the interactive art installation move based on your movement?
- how a skyscraper change color during special occasions
If you haven’t I have! and here I am trying to find the technology behind all of these projects.
In this post I’ll keep links and videos related to this subject, I’ll try to keep adding to it as I learn more about the subject, and please share with me any links about resources that could be relevant.
Parsing In Shell Script
Here a small snippet to parse name:value pairs is shell script:
SSH to Virtual Machines
I use VirtualBox a lot during development, create a VM try something, destroy, or abandon it.
I always face a problem connecting to it to from my host machine (e.g. MacOS), you can add a port forwarding to ssh, then add another port for http, then another for DB, and so on.
To solve the forwarding issue, I usually replace the VM network from NAT to “Bridged Network” so my VM can get an IP from my home/work router using DHCP.
Django CRUD (Create, Retrieve, Update, Delete)
One of the most common task when developing web application is to write create, read, update and delete functionality (CRUD) for each table you have.
In this post I briefly cover the step needed to create a CRUD app in Django, the steps we will need are:
Goodbye Wordpress, Hello Hugo
In June 2005 I moved my blog from Blogger.com to self hosted Wordpress blog.
Wordpress served me well the last 13 years, but during that time I had some issues that made the experience less enjoyable.
With the rise of static site generators I was tempted to migrate, but when I tried it, it was much harder that I though, running the generator isn’t that hard part, but mainly migrating my old contents.
But early this year I migrated my whole blog to use Hugo, it wasn’t easy and it took few days of research and trial and errors but I finally managed to do it!
Here I’ll explain my motives for migrations, and also my experience of migrating to Hugo!
Playing with Elasticsearch & Kibana in Docker
An easy way to start an Elasticsearch server with Kibana (Elasticsearch frontend) instance!
GO language Environment Setup
Here I’ll write about setting up a GO language environment in MacOS and CentOS.
Django with Docker: Add Postgres
In the last post I covered starting a new Django project with Docker, and how to build a custom container image for my project, but what I haven’t covered is how to use a Database and how persist your data since all data stored in the container ephemeral and would only exist during the life span of the container.