What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-10-14 02:55:09
nodejs postgresql local connection
const pgp = require('pg-promise')(/* initialization options */); const cn = { host: 'localhost', // server name or IP address; port: 5432, database: 'myDatabase', user: 'myUser', password: 'myPassword' }; // alternative: // var cn = ... Add solution -
Other 2021-10-07 08:20:06
k;k;
[store] [store.primary] connection = "postgresql://graph:${PGPASSWORD}@primary/graph" weight = 0 pool_size = 10 [store.primary.replicas.repl1] connection = "postgresql://graph:${PGPASSWORD}@primary-repl1/graph" weight = 1 [store.primar... Add solution -
Other 2021-09-27 02:23:03
Binary text
A binary-to-text encoding is encoding of data in plain text. More precisely, it is an encoding of binary data in a sequence of printable characters. These encodings are necessary for transmission of data when the channel does not allow binary data (such a... Add solution -
Html 2021-09-17 16:42:01
html embed from mem
<embed class="form-control" src="data:application/pdf;base64,JVBERi0xLjEKJcKlwrHDqwoKMSAwIG9iagogIDw8IC9UeXBlIC9DYXRhbG9nCiAgICAgL1BhZ2VzIDIgMCBSCiAgPj4KZW5kb2JqCgoyIDAgb2JqCiAgPDwgL1R5cGUgL1BhZ2VzCiAgICAgL0tpZHMgWzMgMCBSXQogICAgIC9Db3Vu... Add solution -
Shell/Bash 2021-09-11 14:22:04
mongo install linux
wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add - echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list sudo a... Add solution -
Html 2021-09-11 03:57:02
hhjhjk
-----BEGIN PGP PUBLIC KEY BLOCK----- Version: GnuPG v2 mQGiBD6tnnoRBACRPnFBVoapBrTpPrCNZ2rq3DcmW6n/soQJW47+zP+vcrcxQ1WJ QiWSzLGO+QOIUZSYfnliR22r8HkFX9EUSW3IAcRMJMsaO3wMJ0a+78a9QqWLp6RV 0arcQkuuCvG79h+yJ6NnoAXe1geRt8vNGsaWtsS91CtYlTSs6JVtaRLnYwCg/Ly1 EFgv... Add solution -
Javascript 2021-09-08 17:42:01
how to connect next js with postgresql localhost
const pgp = require('pg-promise')(); // Get the values for these variables from configuration const user = ... const password = ... const host = ... const port = ... const database = ... const db = pgp(`postgres://${user}:${password}@${host}:${port}/${d... Add solution -
Other 2021-09-06 07:40:03
Acrilic material 2
body { margin: 0; font: 1em/1.4 Sans-serif; background: url("https://cdn.pixabay.com/photo/2017/03/27/16/50/beach-2179624_1280.jpg") center center; background-size: 100vw auto; } main { display: flex; align-items: center; justify-... Add solution