Skip to content

Instantly share code, notes, and snippets.

View kafaa-dev's full-sized avatar

Kafaa Billahi Syahida kafaa-dev

View GitHub Profile
@kafaa-dev
kafaa-dev / README.md
Created November 28, 2024 04:38
Export pass to JSON.

Goal

The goal was to export all of the passwords stored using pass to JSON format.

Warning

Warning

May contain bugs. This code was written with a focus on the result, and it worked for me.

Why did I focus on the result and not worry about other cases? Because when I wrote this, I just wanted to get the job done.

@kafaa-dev
kafaa-dev / example.js
Last active January 8, 2023 06:24
Generate Random String (JavaScript)
const numbers = '0123456789';
const specials = '`-=[]\\;\',./~!@#$%^&*()_+{}|:"<>?';
const charsLower = 'abcdefghijklmnopqrstuvwxyz';
const charsUpper = charsLower.toUpperCase();
const alphabet = charsLower + charsUpper;
const alphaNumeric = numbers + alphabet;
const all = alphaNumeric + specials;
const random = {
numbers,