73# First steps after installing Pop!_OS 19.10
Using ansible. Installs pyenv, nvm, keybase, keeweb, vs codium, riot-web, golang
Upgrade & install basics
sudo apt-get update && sudo apt-get upgrade -y| [alias] | |
| co = checkout | |
| cob = checkout -b | |
| coo = !git fetch && git checkout | |
| br = branch | |
| brd = branch -d | |
| brD = branch -D | |
| merged = branch --merged | |
| st = status | |
| aa = add -A . |
| #!/bin/bash | |
| set -eo pipefail | |
| ## Mount this file in /docker-entrypoint-initaws.d so that localstack runs it | |
| ## as part of its entrypoint routine. | |
| echo 'Running AWS verify identity command. See: https://github.com/localstack/localstack/issues/339' | |
| aws ses verify-email-identity --email-address ${EMAIL_ADDRESS} --region ${AWS_REGION} --endpoint-url=http://localhost:4579 | |
| echo "Verified ${EMAIL_ADDRESS}" |
| #!/bin/bash | |
| error_exit() | |
| { | |
| echo "$1" 1>&2 | |
| exit 1 | |
| } | |
| CODEBUILD_PROJECT_NAME=$1 |
| function logClass(target: any) { | |
| // save a reference to the original constructor | |
| var original = target; | |
| // a utility function to generate instances of a class | |
| function construct(constructor, args) { | |
| var c : any = function () { | |
| return constructor.apply(this, args); | |
| } |
| 'use strict'; | |
| const crypto = require('crypto'); | |
| const ENCRYPTION_KEY = process.env.ENCRYPTION_KEY; // Must be 256 bits (32 characters) | |
| const IV_LENGTH = 16; // For AES, this is always 16 | |
| function encrypt(text) { | |
| let iv = crypto.randomBytes(IV_LENGTH); | |
| let cipher = crypto.createCipheriv('aes-256-cbc', Buffer.from(ENCRYPTION_KEY), iv); |
First, install Solaar to see the battery level on the taskbar
sudo apt-get install solaarTo remap the keys, install
sudo apt-get install xbindkeys xautomation| # Editors | |
| .vscode/ | |
| .idea/ | |
| # Vagrant | |
| .vagrant/ | |
| # Mac/OSX | |
| .DS_Store |
| # 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 |
| from datetime import datetime | |
| from sqlalchemy import Column, Integer, DateTime, ForeignKey | |
| from sqlalchemy.orm import relationship | |
| from sqlalchemy.ext.declarative import declared_attr | |
| from flask_security import current_user | |
| class AuditMixin(object): | |
| created_at = Column(DateTime, default=datetime.now) | |
| updated_at = Column(DateTime, default=datetime.now, onupdate=datetime.now) |