Skip to content

Instantly share code, notes, and snippets.

Avatar
🤿
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: https://www.youtube.com/watch?v=goToXTC96Co&list=PL-osiE80TeTs4UjLw5MM6OjgkjFeUxCYH&index=13
# ----------------------------------- Server Setup -----------------------------------
# Update server
apt update && apt upgrade
# Set hostname
hostnamectl set-hostname <hostname>
@Mosallamy
Mosallamy / Arabic-Wkhtmltopdf.sh
Last active March 7, 2020 12:34
Wkhtmltopdf - Arabic PDF differs between Mac and Linux
View Arabic-Wkhtmltopdf.sh
#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: