Skip to content

Instantly share code, notes, and snippets.

Diving deep into web frameworks world

Khalid Almosallamy Mosallamy

Diving deep into web frameworks world
View GitHub Profile
View Start new Ubuntu server for [Flask, nginx, gunicorn, suppercisor]
# Soruce:
# ----------------------------------- Server Setup -----------------------------------
# Update server
apt update && apt upgrade
# Set hostname
hostnamectl set-hostname <hostname>
Mosallamy /
Last active March 7, 2020 12:34
Wkhtmltopdf - Arabic PDF differs between Mac and Linux
#When I deployed my Flask HTML/CSS to PDF application on Ubuntu server, Wkhtmltopdf rendered the same PDF with different #styles.
#The Ubuntu version rendered:
# 1- long Arabic text in one line without wrapping the text
# 2- the CSS alignment was not accurate
# 3- black header was auto generated
#The solution was to uninstall the current version of Wkhtmltopdf and install Wkhtmltopdf With Patched QT Setup.
#---------------------------- Steps:
#---------------------------- A- Unistall Wkhtmltopdf: