Skip to content

Instantly share code, notes, and snippets.

Swiggy

Machine Coding

  • Form input validations in vanilla js for a credit card payment page

Grofers

I've recently joined Amazon Dublin from India and got opportunities to interview with Meta London, Zalando Berlin & some other companies. I extensively researched about companies hiring internationally which support visa & relocation for Tech roles. So sharing list of companies:

Do consider to STAR, if it helped you.

London

@dhrn
dhrn / sqljs vs sqlite3.js
Last active March 20, 2022 18:16 — forked from 17/test.js
sql.js vs node-sqlite
var fs = require('fs')
var sqljs = require('sql.js')
var sqlite3 = require('sqlite3').verbose()
var count = 1e5
function randomString() {
var str = ''
var chars = 'abcdefghijklmnopqrstuvwxzyABCDEFGHIJKLMNOPQRSTUVWXZY0123456789 '
for (var i = Math.random() * 100; i > 0; i--) {
str += chars[Math.floor(Math.random() * chars.length)]
@dhrn
dhrn / network-boot-via-docker
Last active November 19, 2021 18:53
Linux network boot
docker run -d \
--name=netboot \
-e PUID=1000 \
-e PGID=1000 \
-e MENU_VERSION=1.9.9 `#optional` \
-e PORT_RANGE=30000:30010 `#optional` \
-e SUBFOLDER=/ `#optional` \
-p 3000:3000 \
-p 69:69/udp \
-p 8080:80 `#optional` \
@dhrn
dhrn / logeverything.js
Created November 15, 2021 08:26 — forked from zapthedingbat/logeverything.js
Log every function call to the console
(function() {
var call = Function.prototype.call;
Function.prototype.call = function() {
console.log(this, arguments);
return call.apply(this, arguments);
};
}());
@dhrn
dhrn / install-docker.md
Last active March 19, 2023 15:56 — forked from npearce/install-docker.md
Amazon Linux 2 - install docker & docker-compose

UPDATE (March 2020, thanks @ic): I don't know the exact AMI version but yum install docker now works on the latest Amazon Linux 2. The instructions below may still be relevant depending on the vintage AMI you are using.

Amazon changed the install in Linux 2. One no-longer using 'yum' See: https://aws.amazon.com/amazon-linux-2/release-notes/

Docker CE Install

sudo amazon-linux-extras install docker -y
sudo service docker start
@dhrn
dhrn / build-and-release.yml
Created November 8, 2020 19:42 — forked from gauravssnl/build-and-release.yml
GitHub Actions workflow to build Flutter app and create Release, put this file under `.github/workflows` folder.
on:
push:
branches:
- master
name: Build and Release Apps
jobs:
build:
name: Build Apps
runs-on: macos-latest
@dhrn
dhrn / 00-prerequisites.md
Created October 14, 2019 19:37 — forked from jgreat/00-prerequisites.md
Rancher install with helm

Prerequisits

Describe installs for.

  • rke
  • kubectl
  • helm