To write data to a file in a Google Cloud Storage bucket using the Google Cloud Storage Python client library, you can use the following code: What does blob mean? In the context of Google Cloud Storage, a blob represents a data object stored in a bucket. It is the fundamental unit of data in […]
Category: Uncategorized
In Python, funcy.collecting refers to a module provided by the Funcy library. Funcy is a functional programming library for Python that aims to enhance and simplify common programming tasks. The funcy.collecting module provides functions for working with collections, such as lists, dictionaries, and other iterable objects. It offers various utilities to collect, transform, and manipulate […]
In DBeaver, you cannot directly run psql meta-commands, such as \l, as part of your SQL query. The \l command is specific to the psql command-line tool and is not recognized by DBeaver. However, you can achieve the same result in DBeaver by executing a regular SQL query against the PostgreSQL database information schema. The […]
To avoid typing passphrase for a specific key over and over again, like when git pull from github, can use this command It will store the key as long as the session is live. Using ps command, we can see the process of /usr/bin/ssh-agent, the ssh-agent will handle passphrase for us.
GCP counterpart The counterpart for Amazon DynamoDB in Google Cloud Platform (GCP) is Google Cloud Bigtable. Both DynamoDB and Cloud Bigtable are NoSQL databases designed for handling large-scale, high-performance workloads. They provide key-value storage with automatic scaling and built-in fault tolerance. Cloud Bigtable is a fully managed, highly scalable NoSQL database service offered by GCP. […]
In Python, the time.monotonic() function returns the value of a monotonic clock. It is used to measure elapsed time in a way that is not affected by system clock adjustments or changes due to time synchronization. The monotonic clock is not affected by system time adjustments, such as changes made by the user or by […]
In a Docker Compose file (docker-compose.yml), the ports section is used to expose network ports for services defined in the file. It allows containers to listen on specified ports and make them accessible from outside the Docker environment. In the given example, the ports section is using the following format: This line maps the host […]
To use Prometheus to monitor a web application and prevent exposing the /metrics endpoint to the public internet, you can follow these steps: By following these steps, you can ensure that the Prometheus metrics endpoint (/metrics) is not accessible to the public internet. The metrics can only be scraped by the Prometheus instance located within […]
Forbes Real Time Billionaires List Intro List of billionaires sorted by the Realtime estimation of net worths by Forbes Screenshot How to Get Forbes Real Time Billionaires List? The Real-Time Billionaires List Permalink of This post