Skip to content

Instantly share code, notes, and snippets.

pankaj@DESKTOP-NBDKP10:~/astonish/AccountsVilla$ node app.js
internal/modules/cjs/loader.js:892
throw err;
^
Error: Cannot find module 'lodash'
Require stack:
- /home/pankaj/astonish/AccountsVilla/apiRoutes/user.js
- /home/pankaj/astonish/AccountsVilla/app.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:889:15)
@pankaj-gecko
pankaj-gecko / xfs
Created October 18, 2021 10:39
modifying block size to 512b is not working -> Defaulting to 4096b
I am trying to experiment with tracks and blocks. I was searching for a filesystem that still supports 512b as block size
and came across xfs.
I tried to chose the block size as 512b but it is defaulting to 4096 everytime.
I know that many filesystem (or may be all) adjust the block size based on the size of partition but could not get much
information that what is the partition when such transitions happen.
Partition size assigned with 'fdisk' : 200M
<pre>meta-data=/dev/sdb isize=256 agcount=4, agsize=15630336 blks
@pankaj-gecko
pankaj-gecko / cd-dvd
Created October 24, 2021 06:43
Burning cd/dvd image on linux using terminal
Playing with Images
=====================
Creating An Image Copy Of A CD-ROM
----------------------------------
If we want to make an iso image of an existing CD-ROM, we can use dd to read all the
data blocks off the CD-ROM and copy them to a local file. Say we had an Ubuntu CD
and we wanted to make an iso file that we could later use to make more copies. After in-
serting the CD and determining its device name (we’ll assume /dev/cdrom), we can
@pankaj-gecko
pankaj-gecko / sqlite
Created November 20, 2021 21:50
SQLITE network connection
As we know SQLITE is a minimalistic database and one of its limitation is that it isn't a network Database.
I was experimenting with cookie files by help of firefox browser on my linux build. Firefox uses SQLITE
for storing cookies on client machine. But it is reasonable that server receives the cookie information
(domain specific) from the client but since the database is SQLITE which is not a network based database
then how does it works when on the first hand it doesn't has network connection functionality?
@pankaj-gecko
pankaj-gecko / Browser Session Storage
Created November 20, 2021 21:53
session storage in browser
I know that the local storage key value pairs I can find (in Linux machines) by looking into
'~/.mozilla/firefox/SESSION_DIRECTORY/webappsstore*.sql' SQLITE database. I was able to find
the local storage key value pairs that I had stored by writing and executing a code in browser.
However, when it came to session storage even though I had not closed the tab but I could not
find the key value pair in '~/.mozilla/firefox/SESSION_DIRECTORY/webappsstore*.sql' database.
Please somebody help.
import Express from 'express';
import { URL } from 'url';
import Hbs from 'hbs';
//This code does not works for me since I am using 'Express' function directly.
const __filename = new URL('',import.meta.url).pathname;
const publicDirectoryPath = new URL('../public', import.meta.url).pathname;
const templateDirectoryPath = new URL('../templates/views', import.meta.url).pathname;
COMMAND : sudo woeusb --device ~/Downloads/Win10_21H2_English_x64.iso /dev/sdb --target-filesystem NTFS
OUTPUT:
WoeUSB v3.3.1
==============================
Mounting source filesystem...
(BWiping all existing partition table and filesystem signatures in /dev/sdb...
(B/dev/sdb: 2 bytes were erased at offset 0x000001fe (dos): 55 aa
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 119.2G 0 disk
|-sda1 8:1 0 50G 0 part /
|-sda2 8:2 0 10G 0 part
|-sda3 8:3 0 5G 0 part
|-sda4 8:4 0 1K 0 part
|-sda5 8:5 0 50G 0 part /home
`-sda6 8:6 0 4.2G 0 part [SWAP]
sdb 8:16 1 29.8G 0 disk
|-sdb1 8:17 1 29.8G 0 part
String myColor;
String yellowColor="yellow";
String blueColor="blue";
String greenColor="green";
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
pinMode(9,OUTPUT);
pinMode(10,OUTPUT);
<3>ERROR : Dropbox root 'rclone_cloud': sync batch commit: failed to commit batch length 3: batch had 3 errors: last error: path/conflict
<3>ERROR : MSDOS/edlin.zip: Failed to copy: upload failed: batch upload failed: path/conflict
<3>ERROR : MSDOS/msdos.orig: Failed to copy: upload failed: batch upload failed: path/conflict
<3>ERROR : MSDOS/msdos: Failed to copy: upload failed: batch upload failed: path/conflict
<3>ERROR : Dropbox root 'rclone_cloud': not deleting files as there were IO errors
<3>ERROR : Dropbox root 'rclone_cloud': not deleting directories as there were IO errors
<3>ERROR : Attempt 1/3 failed with 3 errors and: upload failed: batch upload failed: path/conflict
<3>ERROR : Dropbox root 'rclone_cloud': sync batch commit: failed to commit batch length 2: batch had 2 errors: last error: path/conflict
<3>ERROR : MSDOS/msdos: Failed to copy: upload failed: batch upload failed: path/conflict
<3>ERROR : MSDOS/msdos.orig: Failed to copy: upload failed: batch upload failed: path/conflict