Rohit Gupta

@rohit-gupta

Joined on Aug 27, 2018

  • /* when document is ready, delegate an event, * even after the element is rendered * after the page is loaded */ $(document).ready(function() { $(document).on('mouseover', '.your-child-element', function() { $(this).focus(); // <- $(this) will return the current element }); });
     Like  Bookmark
  • Build your docker Create a Dockerfile in your project Run the command docker build . -t "my-app/main" Create an a Private App Container and API key for CLI SideMenu-> Container Registry -> Create private container registry - give a name Go to API settings and create new personal access token with write access Copy the auth token
     Like  Bookmark
  • Steps Create a file in root directory of the project Add in these contents Base Image FROM node:14 Create app working directory WORKDIR /usr/src/app
     Like  Bookmark
  • Newer laptops wifi problem In BIOS, disabled secure boot and enable legacy mode. Install curl sudo apt intall curl Install snapcraft packages This will install following : - docker : sudo snap install docker - datagrip : sudo snap install datagrip --classic
     Like  Bookmark
  • Install Linux CLI in Android Download the App called Termux Run these initial commands one by one to update the latest utils. Accept the prompts by entering Y at most situations apt update && apt upgrade apt install coreutils Install Nodejs
     Like  Bookmark
  • Setup Warp on MAC to tunnel using cloudflare DNS : 1.1.1.1 Steps Download WireGaurd from Mac app store Add a new empty tunnel in the app. let the window remain open after it generates a public and private key. Follow next steps copy following code and paste it on a python online compiler. I'm using https://repl.it/languages/python3 to compile. This src code was taken from https://raw.githubusercontent.com/554923619/cloudflare-warp-wireguard-client/master/wgcf.py
     Like  Bookmark
  • # TypeORM Migrations ## Steps for Dev ### 1. Install typeorm globally ```bash sudo npm install -g typeorm ``` ### 2. Make ormconfig.js file and put it in project root. ```javascript module.exports = { "type": "type", // postgres, mysql "host": "localhost", "port": 5432, "username": "username", "password": "password", "database": "test", "dropSchema" : false, "entities": ["./src/domain/**/*.ts"], // path to domain classes "migrationsTableName": "migrations",
     Like  Bookmark
  • Adding a new SSH === ssh-keygen -t rsa -b 2048 -f ~/keys/id_rsa -q -C "" refer : https://www.ssh.com/ssh/keygen/ -t : algo -b bits -f filepath -q silence keygen -C comment
     Like  Bookmark