Skip to content

Instantly share code, notes, and snippets.

View rome2o's full-sized avatar
🕵️

Ali Kazim rome2o

🕵️
View GitHub Profile
@rome2o
rome2o / flask-python-teachable-api.py
Last active September 13, 2021 07:11
Teachable - Flask (Python) - Import Multiple Users through API - Looping API request in Python
# Hi there,
# Posting this for someone who will need this in future to import some users through API as it is otherwise required to subscribe to a higher package.
# The following is a simple Flask application that would assume you've database with the right values, primary key and auto-increment on IDs.
# A great idea is to sit inside Flask shell and do it. Thumbs up if it was helpful for you!
# -*- coding: utf-8 -*-
@rome2o
rome2o / dokku-cheat-sheet.md
Last active July 5, 2021 03:48
Dokku Cheat Sheet - 2021

Dokku Cheatsheet

Hi! I thought to put this altogether for people who are running Dokku to be able to quickly find some workflows of Dokku.

Last updated: 7 July 2021

Databases

We assume that our primary database is hellodb. When executing the commands, it needs to be replaced with the name of your database. Most of the commands are interchangeable with Postgres and MySQL, just replace mysql with postgres in the command itself.