This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# postgresql environment variables | |
POSTGRES_DB=postgres | |
POSTGRES_PASSWORD=zJxejPcuY62Tu+TOVkUNJKqMsuL1m+eo0FavtZ24 | |
POSTGRES_USER=odoo | |
PGDATA=/var/lib/postgresql/data/pgdata | |
# odoo environment variables | |
HOST=postgres | |
USER=odoo | |
PASSWORD=zJxejPcuY62Tu+TOVkUNJKqMsuL1m+eo0FavtZ24 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
odoo: | |
image: odoo:18.0 | |
env_file: .env | |
depends_on: | |
- postgres | |
ports: | |
- "127.0.0.1:8069:8069" | |
volumes: | |
- data:/var/lib/odoo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
keycode 8 = | |
keycode 9 = Escape NoSymbol Escape | |
keycode 10 = 1 exclam 1 exclam onesuperior exclamdown onesuperior | |
keycode 11 = 2 quotedbl 2 quotedbl twosuperior oneeighth twosuperior | |
keycode 12 = 3 section 3 section threesuperior sterling threesuperior | |
keycode 13 = 4 dollar 4 dollar onequarter currency onequarter | |
keycode 14 = 5 percent 5 percent onehalf threeeighths onehalf | |
keycode 15 = 6 ampersand 6 ampersand notsign fiveeighths notsign | |
keycode 16 = 7 slash 7 slash braceleft seveneighths braceleft | |
keycode 17 = 8 parenleft 8 parenleft bracketleft trademark bracketleft |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{:norm :a1-example | |
:tx-data [{:db/doc "example" | |
:db/ident :example | |
:db/valueType :db.type/string | |
:db/cardinality :db.cardinality/one}] | |
:tx-fn io.replikativ.garantie/neutral-fn} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require '[datahike.api :as d]) | |
(def schema [{:db/ident :name | |
:db/cardinality :db.cardinality/one | |
:db/index true | |
:db/unique :db.unique/identity | |
:db/valueType :db.type/string} | |
{:db/ident :parents | |
:db/cardinality :db.cardinality/many | |
:db/valueType :db.type/ref} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require '[datahike.api :as d]) | |
(import '[java.util Random])) | |
(taoensso.timbre/set-level! :warn) | |
;; Thanks to https://stackoverflow.com/a/64034927/10978897 | |
(defn rand-str | |
^String [^Long len] | |
(let [leftLimit 97 | |
rightLimit 122 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require '[datahike.api :as d]) | |
(def schema [{:db/ident :name | |
:db/cardinality :db.cardinality/one | |
:db/index true | |
:db/unique :db.unique/identity | |
:db/valueType :db.type/string} | |
{:db/ident :parents | |
:db/cardinality :db.cardinality/many | |
:db/valueType :db.type/ref} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require '[datahike.api :as d]) | |
(def schema [{:db/ident :name | |
:db/cardinality :db.cardinality/one | |
:db/index true | |
:db/unique :db.unique/identity | |
:db/valueType :db.type/string} | |
{:db/ident :parents | |
:db/cardinality :db.cardinality/many | |
:db/valueType :db.type/ref} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; -*- mode: emacs-lisp; lexical-binding: t -*- | |
;; This file is loaded by Spacemacs at startup. | |
;; It must be stored in your home directory. | |
(defun dotspacemacs/layers () | |
"Layer configuration: | |
This function should only modify configuration layer settings." | |
(setq-default | |
;; Base distribution to use. This is a layer contained in the directory | |
;; `+distribution'. For now available distributions are `spacemacs-base' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require '[datahike.api :as d]) | |
(def cfg {:store {:backend :file | |
:path "/tmp/history-bug"} | |
:schema-flexibility :read}) | |
(d/delete-database cfg) | |
(d/create-database cfg) |
NewerOlder