Add this in your ini file:
[alembic]
exclude_tables =
spatial_ref_sys,
foo, bar
In env.py
:
def get_list_from_config(config, key):
#!/usr/bin/env bash | |
# https://github.com/protocolbuffers/protobuf/releases | |
PROTOC_VERSION=21.9 | |
PLATFORM=linux-x86_64 | |
wget --output-document protoc.zip https://github.com/protocolbuffers/protobuf/releases/download/v21.9/protoc-21.9-linux-x86_64.zip | |
unzip protoc.zip -d protoc | |
sudo mv protoc/bin/protoc /usr/local/bin/ | |
sudo mv protoc/include/google /usr/local/include/ |
{ | |
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
"blocks": [ | |
{ | |
"alignment": "left", | |
"segments": [ | |
{ | |
"type": "text", | |
"style": "diamond", | |
"leading_diamond": "\ue0b6", |
sudo nala install libfftw3-dev libconfig-dev libasound2-dev libpulse-dev cmake -y |
from plumbum import ProcessExecutionError, local | |
from dataclasses import dataclass, field | |
import re | |
from tomlkit import parse | |
poetry = local['poetry'] | |
deps = {} | |
deps['outdated'] = poetry('show', '--outdated' ).splitlines() |
encrypt file: | |
keybase encrypt circleoncircles -i {{file}} -o {{file}}.encrypted | |
decrypt file: | |
keybase decrypt -i {{file}}.encrypted -o {{file}} | |
# encrypt all configs | |
encrypt-all: | |
#!/bin/bash | |
files=(".env" "telegraph/cmix-jetson.conf" "config.toml") |
from tomlkit import parse | |
with open('Pipfile', 'r') as stream: | |
doc = parse(stream.read()) | |
with open('requirements.txt', 'w') as stream: | |
lines = [] | |
for pkg, detail in doc['packages'].items(): | |
if detail=='*': | |
lines.append(pkg) |
Add this in your ini file:
[alembic]
exclude_tables =
spatial_ref_sys,
foo, bar
In env.py
:
def get_list_from_config(config, key):
import base64 | |
import hashlib | |
import hmac | |
import simplejson as json | |
def base64_url_decode(inp): | |
padding_factor = (4 - len(inp) % 4) % 4 | |
inp += "="*padding_factor | |
return base64.b64decode(unicode(inp).translate(dict(zip(map(ord, u'-_'), u'+/')))) |
[tool.poetry] | |
name = "paperstrip-python" | |
version = "0.1.6" | |
description = "" | |
authors = ["CircleOnCircles <[email protected]>"] | |
[tool.poetry.dependencies] | |
python = "^3.7" | |
numpy = "^1.16" | |
opencv-python = "^4.1" |
output.markdown('# C2 ช่วยสรุปบัญชีรายวันค่าา~'); | |
output.markdown(''); | |
let date = await input.textAsync('นายท่านอยากสรุปบัญชีวันไหนหราา (e.g.2020-05-21)'); | |
// output.text(`Welcome to the scripting block, ${date}.`); | |
// let date = "2020-05-21" | |
async function sumTable(table_name, view_name, struc) { | |
let table = base.getTable(table_name); |