Skip to content

Instantly share code, notes, and snippets.

@lsmith77
lsmith77 / make-release.sh
Created February 4, 2021 08:45
Script to automate steps for making a release using git-flow and sentry.io (using gitlab.com <-> platform.sh integration to automate the actual deployment)
#!/bin/bash
set -e;
VERSION_REGEXP='([0-9]+)\.([0-9]+)\.([0-9]+)';
case $1 in
release|major|hotfix)
MODE=$1;
echo "Preparing $MODE, stashing changes and updating develop/master";
lando 17:42:25 DEBUG ==> No update available.
lando 17:42:25 VERBOSE ==> starting bootstrap at level app...
lando 17:42:25 VERBOSE ==> config bootstrap beginning...
lando 17:42:25 DEBUG ==> emitting event pre-bootstrap-config
lando 17:42:25 DEBUG ==> plugin lando-core loaded from /snapshot/lando/build/cli/plugins/lando-core/index.js
lando 17:42:25 DEBUG ==> plugin lando-events loaded from /snapshot/lando/build/cli/plugins/lando-events/index.js
lando 17:42:25 DEBUG ==> plugin lando-networking loaded from /snapshot/lando/build/cli/plugins/lando-networking/index.js
lando 17:42:25 DEBUG ==> plugin lando-proxy loaded from /snapshot/lando/build/cli/plugins/lando-proxy/index.js
lando 17:42:25 DEBUG ==> plugin lando-recipes loaded from /snapshot/lando/build/cli/plugins/lando-recipes/index.js
from pydantic import BaseModel
class EntityOut(BaseModel):
category: str
text: str
label: str
class Config:
underscore_attrs_are_private = True
backend intercom1 {
.host = "13.248.193.164";
.port = "80";
.connect_timeout = 5s;
.first_byte_timeout = 5s;
.between_bytes_timeout = 5s;
}
backend intercom2 {
.host = "76.223.11.64";
@lsmith77
lsmith77 / Pipenv
Created December 26, 2022 11:18
AttributeError: 'LazyEval' object has no attribute 'lazy_self' and unable to get the uvicorn server up to complete profile
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[packages]
fastapi = "*"
uvicorn = "*"
blackfire = "*"
spacy = "*"
<script>
const copyListener = (e) => {
e.preventDefault();
};
document.addEventListener("copy", copyListener);
document.addEventListener("cut", copyListener);
function copyToClipboard()
{