#docker_registry
https://www.digitalocean.com/community/tutorials/how-to-set-up-a-private-docker-registry-on-ubuntu-20-04
https://www.digitalocean.com/community/tutorials/how-to-set-up-a-private-docker-registry-on-ubuntu-20-04
Digitalocean
How To Set Up a Private Docker Registry on Ubuntu | DigitalOcean
Learn how to set up a private Docker registry on Ubuntu. Configure authentication, TLS, and persistent storage for secure image hosting.
Udemy_Node_js,_Express,_MongoDB_&_More_The_Complete_Bootcamp_2021.torrent
261.8 KB
Jonasschmedtman Udemy Course
#course
#course
NodeCommunity
https://chartio.com/learn/databases/how-does-indexing-work/ #indexing #database
Advantages
* Speed up SELECT query
* Helps to make a row unique or without duplicates(primary,unique)
* If index is set to fill-text index, then we can search against large string values. for example to find a word from a sentence etc.
Disadvantages* Indexes take additional disk space.
* indexes slow down INSERT,UPDATE and DELETE, but will speed up UPDATE if the WHERE condition has an indexed field. INSERT, UPDATE and DELETE becomes slower because on each operation the indexes must also be updated.#js_generators
Iterate over object values and do calculation
Iterate over object values and do calculation
function * iter(obj) {
for (let [key, value] of Object.entries(obj)) {
if (Object(value) !== value) yield [obj, key, value];
else yield * iter(value);
}
}
// demo
const myObject = {
base: {
serving: {
size: 100
}
},
fat: {
acids: {
monoUnsaturatedFattyAcids: 12,
polyUnsaturatedFattyAcids: 'hello',
saturatedFattyAcids: [1, 2]
},
}
};
for (let [obj, key, value] of iter(myObject)) {
if (typeof value === "number") obj[key] *= 0.5; // multiply by 0.5
}
// The object has been mutated accordingly
console.log(myObject);How to solve
Here we go:
https://robinwinslow.uk/fix-docker-networking-dns
#docker #npm
npm i error thike this on dokcer?Here we go:
https://robinwinslow.uk/fix-docker-networking-dns
#docker #npm
Forwarded from hahacker_news
Manning.Elasticsearch.in.Action.pdf
20.3 MB
๐Elasticsearch in Action (2023)
โ๏ธะะฒัะพั: Madhusudhan Konda
โ๏ธะะฒัะพั: Madhusudhan Konda
Forwarded from hahacker_news
Apress.Deploy.Container.Applications.Using.Kubernetes.pdf
16.1 MB
๐Deploy Container Applications Using Kubernetes: With Integration and Implementations with Aws Eks and Gcp Gke (2023)
โ๏ธะะฒัะพั: Shiva Subramanian
โ๏ธะะฒัะพั: Shiva Subramanian
#postgres #docker #dump #backup
Backup postgres database running on docker.
using gzip - If you want a smaller file size
Restore your databases
Backup postgres database running on docker.
docker exec -t <container_name_or_id> pg_dump -U <username> <db_name> > dump_`date +%Y-%m-%d"_"%H_%M_%S`.sqlusing gzip - If you want a smaller file size
docker exec -t <container_name_or_id> pg_dump -U <username> <db_name> | gzip > dump_`date +%Y-%m-%d"_"%H_%M_%S`.sql.gzRestore your databases
cat your_dump.sql | docker exec -i <container_name_or_id> psql -U <username> -d <db_name>