Skip to content

Instantly share code, notes, and snippets.

View icodragon's full-sized avatar
🐉

Dragon icodragon

🐉
View GitHub Profile
@icodragon
icodragon / fake-commit.js
Last active July 26, 2023 11:21
Create fake commit (fun)
const util = require("util");
const { exec } = require("child_process");
const execAsync = util.promisify(exec);
Date.prototype.addDays = function (days) {
const date = new Date(this.valueOf())
date.setDate(date.getDate() + days)
return date
}