Skip to content

Instantly share code, notes, and snippets.

View Jiab77's full-sized avatar
🤖
Search, Hack and Dev

Doctor Who Jiab77

🤖
Search, Hack and Dev
View GitHub Profile
@Jiab77
Jiab77 / create-DNS-over-TLS-bridge-with-unbound-stubby-and-systemd-on-ubuntu-server-18.04.md
Last active September 20, 2023 12:17
Create DNS-over-TLS bridge with unbound, stubby and systemd on Ubuntu Server 18.04
@Jiab77
Jiab77 / setup-DNS-over-TLS-with-systemd-on-ubuntu-18.04.md
Last active September 18, 2022 20:48
Setup DNS-over-TLS with systemd on Ubuntu 18.04

Setup DNS-over-TLS with systemd on Ubuntu 18.04

This gist will explain how to setup DNS-over-TLS on your local computer.

Verify systemd version

To make it work, you need at least systemd version 237 or 242.

I'll use the version 242 in this gist.

@Jiab77
Jiab77 / upgrade-systemd-on-ubuntu-18.04.md
Last active December 11, 2023 20:18
Upgrade systemd on Ubuntu 18.04

Upgrade systemd on Ubuntu 18.04

In this document, I will explain how to upgrade the default systemd version from 237 to 242.

The main reason why I needed this was related to the DNS-over-TLS that was not supported in the version 237 but available from version 242.

Later, when playing with Lynis, the security auditing tool, I then discovered that the version 242 was also providing the command systemd-analyze that is used by lynis to detect if existing systemd services are configured correctly in the security context, meaning that the existing services can run as expected but needs few or several changes in their configuration to make them safe without any exploitable attack surfaces.

You can try it once you've installed the version 242 of systemd that way:

@Jiab77
Jiab77 / how-to-fix-GRUB-boot-error-after-BootHole-patch.md
Created August 5, 2020 09:57
How to fix GRUB boot error after BootHole patch

Repair GRUB after BootHole broken patch

Once rebooted after patching, you will kindly greated by error: symbol 'grub_calloc' not found, entering rescue mode and way to boot the OS anymore...

The thing become even more horrible if you are using an encrypted partition plus LVM...

You can skip the steps 2 and 4 if you just have a normal partition scheme with no encryption or LVM.

Recovery steps

@Jiab77
Jiab77 / create-expandable-beowulf-cluster-with-slurm-mpich-and-mpi4py.md
Last active January 29, 2024 15:08
Create an expandable beowulf cluster with SLURM, MPICH and MPI4PY

Create an expandable beowulf cluster with SLURM, MPICH and MPI4PY

The goal of this gist is to explain how I have build a Beowulf cluster based on Raspberry Pi models 3B / 3B+ and 4B.

The cluster will be expendable with other device types. Any working computer can be added to the cluster.

Adding the following packages: Ansible, SSHFS, Slurm, MPICH and MPI4PY will give me to possiblity to run parallel computing tasks using all cluster nodes.

The final goal will be to create a low cost computing platform that can be managed with a web interface that I will create soon. Adding remote clients and compute nodes is also a part of this project.

@Jiab77
Jiab77 / how-to-control-boinc-workload-based-on-the-host-temperature.md
Last active October 3, 2021 11:50
How to control BOINC workload based on the host temperature

How to control BOINC workload based on the host temperature

I will explain here how to start and stop boinc depending on the host temperature.

Context

I'm actually using a NUC to run BOINC and the Rosetta@Home project but this host is getting hot very quick and sometimes it will shutdown because of overheating.

To avoid this, I've requested the help of @AenBleidd, one of the BOINC developers. He gave me idea to use lm-sensors and CRON to run a script that will start / stop BOINC.

@Jiab77
Jiab77 / using-raspberry-pi-3-and-4-to-fight-against-covid-19-with-rosetta-at-home.md
Last active April 27, 2020 02:51
Using Raspberry Pi 3B/3B+/4B to fight against COVID-19 with Rosetta@Home

Using Raspberry Pi 3B/3B+/4B to fight against COVID-19 with Rosetta@Home

The goal of this gist is to explain how I have build a Beowulf cluster based on Raspberry Pi models 3B / 3B+ and 4B.

The cluster will be expendable with other device types. Any working computer can be added to the cluster.

The cluster will be initially used to compute workunits from the Rosetta@Home project.

In this gist I will stay with Raspberry Pi nodes.

@Jiab77
Jiab77 / emby-server-with-va-api.md
Last active May 20, 2021 17:03
Emby Server with VA-API

Emby Server with VA-API

Just a quick gist to keep track of my research on this topic.

Environment

I'm using Ubuntu Server 18.04.2 as operating system.

Download

Go to the download page and select your version: https://emby.media/linux-server.html

For my research, I've used two versions:

@Jiab77
Jiab77 / goaccess.md
Last active July 8, 2022 02:10
Using GoAccess with PHP

Using GoAccess with PHP

This file will contain instructions to run goaccess from a PHP instance.

For more details on GoAccess check these links:

Installation

For this project, I'm using a compiled version of GoAccess with enabled options to reduce the memory usage.

@Jiab77
Jiab77 / real-time-php-fpm-status.md
Last active February 29, 2024 12:48
Real-time PHP-FPM Status

Real-time PHP-FPM Status

This gist will explain you how to enable an undocumented feature of PHP-FPM which will give a real-time performance stats.

Everybody knows the famous phpinfo() and the page it generates, right? Then the real-time PHP-FPM status page design is very similar.

image

Some informations from the top are not displayed to avoid security issues.

Enable PHP-FPM Status