A command to symlink a package folder. Synopsis npm link (in package dir)npm link [<@scope>/]<pkg>[@<version>]alias: npm ln Description Package linking is a two-step process. First, npm link in a package folder will create a symlink in the global folder {prefix}/lib/node_modules/<package> that links to the package where the npm link command was executed. It will also link any bins in the package …
React Custom Events
When we need to send data between 2 react components without using redux, we can use react-custom-events package. Reference: https://www.npmjs.com/package/react-custom-events
Portainer
Portainer is a platform-agnostic tool for managing containerized applications. It works with Kubernetes, Docker, Docker Swarm, Azure ACI in both data centres and at the edge. Portainer remove the complexity associated with orchestrators so anyone can exploit the power of containers. It can be used to set up and manage environments, deploy applications, monitor application performance and triage problems. Portainer CE (open source) …
Knex.js
Knex.js (pronounced /kəˈnɛks/) is a “batteries included” SQL query builder for Postgres, MSSQL, MySQL, MariaDB, SQLite3, Oracle, and Amazon Redshift designed to be flexible, portable, and fun to use. It features both traditional node style callbacks as well as a promise interface for cleaner async flow control, a stream interface, full featured query and schema builders, transaction support (with savepoints), connection pooling and standardized responses between different query clients and dialects. The project is hosted on GitHub, and …
How to get the difference between two arrays of objects in JavaScript
Sometimes we need to get the difference between two arrays of objects in javascript as well as comparing those 2 arrays. We can refer to the following example to accomplish this idea:
Safe Area on iPhone
Sometimes we are facing an issue on the iPhone devices because of the Toolbar at the bottom of the screen. If we have a sticky button at the bottom of the screen, for example, it’s difficult to click on that button through over iPhone X devices since the toolbar occupies some area of the screen. …
Screen on Linux
Introduction Screen or GNU Screen is a terminal multiplexer. In other words, it means that you can start a screen session and then open any number of windows (virtual terminals) inside that session. Processes running in Screen will continue to run when their window is not visible even if you get disconnected. Install Linux Screen …
International Telephone Input
We can use the following widget to implement the telephone input. https://github.com/jackocnr/intl-tel-input Features Automatically select the user’s current country using an IP lookup Automatically set the input placeholder to an example number for the selected country Navigate the country dropdown by typing a country’s name, or using up/down keys Handle phone number extensions The user …