Skip to content

Instantly share code, notes, and snippets.

View akash07k's full-sized avatar
😊
New dimension of the code πŸ₯

Akash Kakkar akash07k

😊
New dimension of the code πŸ₯
View GitHub Profile
@akash07k
akash07k / Setup-WslHomeSSD.md
Created February 8, 2026 14:50 — forked from iongion/Setup-WslHomeSSD.md
WSL home drive on real physical disk with ext4

Setup WSL home dir on custom real disk drive

Requirements

  • WSL with systemd enabled
  • ext4 physical drive name and partition number
  • your WSL username
  • And empty /home/<User> - if migrating, move it to /home/<User>.backup and then rsync the contents to the real physical drive after mounting

Actions

@akash07k
akash07k / KeyEventSimulator.js
Created September 10, 2022 16:42 — forked from GlauberF/KeyEventSimulator.js
A function for simulating key event in JavaScript. You just have to choose what key and keyboard event you want to simulate.
/**
* Simulate a key event.
* @param {Number} keyCode The keyCode of the key to simulate
* @param {String} type (optional) The type of event : down, up or press. The default is down
* @param {Object} modifiers (optional) An object which contains modifiers keys { ctrlKey: true, altKey: false, ...}
*/
function simulateKey (keyCode, type, modifiers) {
var evtName = (typeof(type) === "string") ? "key" + type : "keydown";
var modifier = (typeof(modifiers) === "object") ? modifier : {};
@akash07k
akash07k / bitwarden-backup.sh
Created June 13, 2022 15:00 — forked from athphane/bitwarden-backup.sh
Bash script to zip up Vaultwarden data directory and upload to Cloud storage.
#!/bin/bash
#edit these to your config
BWDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
DATETIME="$(date +'%Y-%m-%d_%H-%M-%S')"
FOLDERPATH="$(date +'%Y-%m-%d')"
GZFILE=bitwarden-${DATETIME}.tar.gz
#change working dir to /tmp
cd /tmp/