Skip to content

Instantly share code, notes, and snippets.

@rudyryk
rudyryk / settings.json
Created March 13, 2023 20:28
Minimal .vscode/settings.json for Python project
{
"python.defaultInterpreterPath": "./.venv/bin/python",
"python.linting.enabled": true,
"[python]": {
"editor.insertSpaces": true,
"editor.tabSize": 4
},
"files.exclude": {
".ruff_cache": true,
".pytest_cache": true,
@rudyryk
rudyryk / dump-postgres.sh
Last active May 12, 2023 09:12
Dump PostgresQL database via Docker
#!/bin/sh
export DBUSER=postgres
export DBNAME=database
export DBHOST=localhost
export DBPORT=5432
export DBOPTIONS=
export PGPASSWORD=
docker run --rm -e PGPASSWORD=${PGPASSWORD} postgres:latest pg_dump ${DBOPTIONS} \
@rudyryk
rudyryk / config.py
Last active June 12, 2023 16:51
Jupyter Lab configuration
# Configuration file for lab.
c = get_config() #noqa
#------------------------------------------------------------------------------
# Application(SingletonConfigurable) configuration
#------------------------------------------------------------------------------
## This is an application.
## The date format used by logging formatters for %(asctime)s