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
:repositories detected in user-level profiles! [:user] | |
See https://wiki.leiningen.org/Repeatability | |
Compiling simple.main | |
WARNING: update-vals already refers to: #'clojure.core/update-vals in namespace: clojure.tools.analyzer.utils, being replaced by: #'clojure.tools.analyzer.utils/update-vals | |
WARNING: update-keys already refers to: #'clojure.core/update-keys in namespace: clojure.tools.analyzer.utils, being replaced by: #'clojure.tools.analyzer.utils/update-keys | |
WARNING: update-vals already refers to: #'clojure.core/update-vals in namespace: clojure.tools.analyzer, being replaced by: #'clojure.tools.analyzer.utils/update-vals | |
WARNING: update-keys already refers to: #'clojure.core/update-keys in namespace: clojure.tools.analyzer, being replaced by: #'clojure.tools.analyzer.utils/update-keys | |
WARNING: update-vals already refers to: #'clojure.core/update-vals in namespace: clojure.tools.analyzer.passes, being replaced by: #'clojure.tools.analyzer.utils/update-vals | |
WARNING: update-vals already refers to: #'cloju |
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 '[clojure.java.shell :refer [sh]]) | |
(sh "docker" "exec" "global_datalevin" "dtlv" "-d" "/data/data" "copy" "/tmp/global_datalevin_backup") | |
(def timestamp (quot (System/currentTimeMillis) 1000)) | |
(let [[save-backup-to-file-path] *command-line-args*] | |
(when (or (empty? save-backup-to-file-path)) | |
(println "Usage: <save-backup-to-file-path>") | |
(System/exit 1)) |
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
version: "3" | |
volumes: | |
datalevin: | |
services: | |
datalevin: | |
image: huahaiy/datalevin | |
container_name: global_datalevin | |
restart: always |
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
version: "3" | |
volumes: | |
rabbitmq: | |
services: | |
rabbitmq: | |
image: rabbitmq:3-management | |
container_name: global-rabbitmq | |
restart: always |
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
import mysql.connector | |
try: | |
connection = mysql.connector.connect(host='foo.bar.com.br', database='foobar', user='foo', password='foobar2020') | |
# The string that you want to search. | |
seeked_value = "%8439742464%" # Like syntax | |
if connection.is_connected(): | |
db_Info = connection.get_server_info() |