How to configure your Mac to use DNS over TLS in five easy steps:
-
Install Stubby with Homebrew (https://dnsprivacy.org/wiki/display/DP/DNS+Privacy+Daemon+-+Stubby):
brew install stubby -
Edit the configuration file:
| ``` | |
| $ git push server main | |
| + export DOKKU_HOST_ROOT=/home/dokku | |
| + DOKKU_HOST_ROOT=/home/dokku | |
| + export DOKKU_DISTRO | |
| ++ . /etc/os-release | |
| ++ echo ubuntu | |
| + DOKKU_DISTRO=ubuntu | |
| + export DOCKER_BIN=docker | |
| + DOCKER_BIN=docker |
How to configure your Mac to use DNS over TLS in five easy steps:
Install Stubby with Homebrew (https://dnsprivacy.org/wiki/display/DP/DNS+Privacy+Daemon+-+Stubby):
brew install stubby
Edit the configuration file:
| # Poetry needs to be installed globally | |
| poetry init | |
| poetry add \ | |
| matplotlib \ | |
| pandas \ | |
| wordcloud \ | |
| tqdm \ | |
| python-dotenv \ |
| // Type assertions, before I discovered https://www.npmjs.com/package/type-assertions | |
| type AssertExtends<A, B> = A extends B ? true : false | |
| export const assertExtends = <A, B>(_: AssertExtends<A, B>): void => {} | |
| export const assertInstance = <B>( | |
| a: any, | |
| _: AssertExtends<typeof a, B> | |
| ): void => {} | |
| assertExtends<'abc', string>(true) |
From https://hackmd.io/@nirvana/deploy_python_m1
Build image with linux platform for heroku servers. Replace {NAME_OF_HEROKU_APP} with your own tag:
docker buildx build --platform linux/amd64 -t {NAME_OF_HEROKU_APP} .Tag your app with the url for your apps registry. make sure to use the name of your Heroku app in the url and tag name:
docker tag {NAME_OF_HEROKU_APP} registry.heroku.com/{NAME_OF_HEROKU_APP}/web| { | |
| // Common | |
| "editor.formatOnSave": true, | |
| "editor.codeActionsOnSave": { | |
| "source.fixAll.eslint": "explicit", | |
| "source.organizeImports": "explicit", | |
| }, | |
| // Python | |
| "python.analysis.typeCheckingMode": "basic", | |
| "files.exclude": { |
Supabase migrations are imperative. We want to declaratively write DB definitions declaratively and generate migrations as diffs. This tool accomplishes this.
This is a basic script to diff a set of schemas to generate new migrations for a supabase project. The expected file layout is
- supabase/baseline/baseline.sql
- supabase/migrations/[timestamp]_[name].sql
- supabase/schema/[order]_[name].sql
| { | |
| "Version": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Effect": "Allow", | |
| "Action": "*", | |
| "Resource": "*" | |
| }, | |
| { | |
| "Effect": "Deny", |