Skip to content

Instantly share code, notes, and snippets.

@amostsai
amostsai / install_docker_in_ubuntu_21-10.sh
Created November 12, 2021 05:29 — forked from pablodz/install_docker_in_ubuntu_21-10.sh
Install Docker in Ubuntu 21.10, Install Dockercompose on Ubuntu 21.10
# [🟨OPTIONAL] Uninstall old docker versions
sudo apt-get remove docker docker-engine docker.io containerd runc
# Refresh latest version
sudo apt-get update
# Install pre-req
sudo apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
gnupg \

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@amostsai
amostsai / Flask-Security and Flask-Admin
Last active July 3, 2019 18:06 — forked from skyuplam/gist:ffb1b5f12d7ad787f6e4
Flask-Security and Flask-Admin example by Steve Saporata
# Example of combining Flask-Security and Flask-Admin.
# by Steve Saporta
# April 15, 2014
#
# Uses Flask-Security to control access to the application, with "admin" and "end-user" roles.
# Uses Flask-Admin to provide an admin UI for the lists of users and roles.
# SQLAlchemy ORM, Flask-Mail and WTForms are used in supporting roles, as well.
from flask import Flask, render_template
from flask.ext.sqlalchemy import SQLAlchemy