Skip to content

Instantly share code, notes, and snippets.

View kenliten's full-sized avatar
😎
Growing

Otoniel Reyes kenliten

😎
Growing
View GitHub Profile
const interval = setInterval(() => {
const a = document.getElementById('business.pagination.nextPage');
const lastPage = parseInt(document.getElementById('business.pagination.lastPage').innerText.split('=').pop());
const left = lastPage - parseInt(a.innerText.split('=').pop());
a.click()
if (left == 0) {
clearInterval(interval);
}
}, 5000);
@kenliten
kenliten / duplicate-checker.js
Last active August 18, 2025 20:17
A simple CLI to check duplicated files in the supplied directory
#!/usr/bin/env node
/**
* Duplicate File Finder CLI
*
* This script recursively scans a directory to find duplicate files based on their content checksum.
* It can list the duplicates in a text file and optionally delete them, keeping the version
* with the shortest path (closest to the root directory).
*
*
@kenliten
kenliten / angular-auth-automation.sh
Created December 28, 2024 11:12
An automation for creating a authentication system for angular (with standalone api) including login, signup, password recovery/reset, and user profile. This is meant to be used along my nestjs auth automation script
#!/bin/bash
echo "1. Setting up tailwindcss
"
yarn add -D tailwindcss postcss autoprefixer
npx tailwindcss init
rm tailwind.config.js
echo "/** @type {import('tailwindcss').Config} */
@kenliten
kenliten / nestjs-auth-automation.sh
Last active July 9, 2025 15:31
NestJS + MongoDB authentication system boilerplate with roles and google strategy
#!/bin/bash
# Section 1: Getting prepared for the work
# Step 1: Install required packages
echo "
1. Getting prepared for the work...
"
yarn add @nestjs/passport @nestjs/jwt passport passport-jwt bcrypt mongoose @nestjs/mongoose uuidgenv4 passport-google-oauth20 dotenv @nestjs/mapped-types cookie-parser
# Step 2: Create directories for users and auth
@kenliten
kenliten / DISCLAIMER.md
Created January 2, 2023 16:59
Uso de inter-process communication (ipc) en Electron JS
@kenliten
kenliten / animated-rainbow-background.css
Created November 7, 2022 11:04
Animated rainbow background
body{
min-height: 100vh;
-webkit-animation:go 5s linear infinite;
-moz-animation:go 5s linear infinite;
-o-animation:go 5s linear infinite;
-ms-animation:go 5s linear infinite;
animation:go 5s linear infinite;
}
@-webkit-keyframes go{

Oh my zsh.

Install with curl

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Enabling Plugins (zsh-autosuggestions & zsh-syntax-highlighting)

  • Download zsh-autosuggestions by
/********************************************************************************
* Copyright (c) 2022 Kenliten (http://kenliten.website) *
* *
* This file is a free document: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 3 of the License, or *
* (at your option) any later version. *
* This file is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
/********************************************************************************
* Copyright (c) 2022 Kenliten (http://kenliten.website) *
* *
* This file is a free document: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 3 of the License, or *
* (at your option) any later version. *
* This file is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
/********************************************************************************
* Copyright (c) 2022 Kenliten (http://kenliten.website) *
* *
* This file is a free document: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 3 of the License, or *
* (at your option) any later version. *
* This file is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *