Skip to content

Instantly share code, notes, and snippets.

@davidlesieur
davidlesieur / deploying-kerkoapp-on-ubuntu-20.04.md
Last active December 30, 2023 21:05
Deploying KerkoApp on Ubuntu 20.04 with nginx and gunicorn

Deploying KerkoApp 0.9 on Ubuntu 20.04 with nginx and gunicorn

⚠️ Update: The instructions below are superseded by the Kerko documentation.

These instructions will detail the steps and configurations required to get [KerkoApp] running on an Ubuntu 20.04 web server, using Gunicorn as the WSGI container and nginx as a HTTP proxy.

The general setup is the same as any [Flask] application, but some

@hollodotme
hollodotme / convert_databases_utf8.php
Last active April 8, 2024 23:13
Converting mysql string data form latin1 to utf8 for utf8 data stored in utf8 tables via latin1 connection
<?php
/**
* Requires php >= 5.5
*
* Use this script to convert utf-8 data in utf-8 mysql tables stored via latin1 connection
* This is a PHP port from: https://gist.github.com/njvack/6113127
*
* @link : http://www.ridesidecar.com/2013/07/30/of-databases-and-character-encodings/
*
* BACKUP YOUR DATABASE BEFORE YOU RUN THIS SCRIPT!