Skip to content

Instantly share code, notes, and snippets.

View Monmoy042's full-sized avatar
🎯
Focusing

Khaled Md Saifullah Monmoy042

🎯
Focusing
View GitHub Profile

Root Password Recover in Linux System

Step-1

First we need to reboot the system.

Step-2

Secondly from the grub boot loader we need to press e from the keyboard. Here e means edit.

Step-3

Now go to end of the line number-4 and write rd.break Note: rd = rescue disk

Step-4

Then press Ctrl+X to load the system

Step-5

@mrhm-dev
mrhm-dev / rename.js
Last active July 22, 2021 16:36
Rename bulk amount of files
const fs = require('fs');
const path = require('path');
const filePath = '/Users/hmnayem/Desktop/Demo';
const files = fs.readdirSync(filePath).filter((file) => file.endsWith('.png'));
let count = 54;
const extName = '.png';
files.forEach((file) => {
const oldPath = path.join(filePath, file);