Skip to content

Instantly share code, notes, and snippets.

View weskerty's full-sized avatar
🌴
On Permanent Vacations

laWiskaPY weskerty

🌴
On Permanent Vacations
View GitHub Profile
@weskerty
weskerty / BatteryLOCK.sh
Created October 15, 2026 14:51
Se requiere root (tengo magisk) Poner en /data/adb/service.d/limit.sh y luego dar permisos con: chmod 755 /data/adb/service.d/limit.sh
#!/system/bin/sh
LIMIT=60 # deja de cargar al llegar aquí
RESUME=30 # vuelve a cargar si baja a esto
B=/sys/class/power_supply/battery
(
while true; do
cap=$(cat $B/capacity)
if [ "$cap" -ge "$LIMIT" ]; then
echo 0 > $B/charging_enabled
@weskerty
weskerty / Compress.js
Last active September 2, 2026 00:36
Compress Video H264
const fs = require('fs').promises;
const path = require('path');
const os = require('os');
const { promisify } = require('util');
const { exec: execCB } = require('child_process');
const { bot } = require('../lib');
const exec = promisify(execCB);
const ENC = [
const fs = require('fs');
const fsp = fs.promises;
const path = require('path');
const { promisify } = require('util');
const exec = promisify(require('child_process').exec);
const { bot, pinterestSearch, addExif } = require('../lib');
const LS_MD = '/tmp/ls';
const LS_FB = path.join(process.cwd(), 'media', 'ls');
const LS_NC = 'nice -n 15';
@weskerty
weskerty / gpull.sh
Last active May 16, 2026 06:19
Sincronizacion con Reppositorio, Preferencia por local Siempre sobre escribiendo Remoto en caso de colisión. Límite 1GB, después de eso reinicia el repositorio (borra comits)
#!/usr/bin/env bash
cd "${1:-$(pwd)}" || exit 1
shift 1 2>/dev/null
R='\033[31m';G='\033[32m';Y='\033[33m';B='\033[34m';C='\033[36m';BB='\033[1m';N='\033[0m'
L1=950
L2=900
@weskerty
weskerty / RSS.js
Last active April 4, 2026 12:24
rss post channel & chats... (need `NPM` plugin and send npm rss-parser )
const fs = require('fs').promises;
const path = require('path');
const { bot } = require('../lib');
class RSSManager {
constructor() {
this.client = null;
this.dataDir = null;
this.intervalMs = 60000;
const fs = require('fs').promises;
const path = require('path');
const { promisify } = require('util');
const { exec: execCallback } = require('child_process');
const { bot } = require('../lib');
const exec = promisify(execCallback);
const fmtTime = (s) => {
if (!s || isNaN(s)) return "0";
@weskerty
weskerty / tdl.js
Last active January 30, 2026 15:46
TelegramDownLoader Go
const fs = require('fs').promises;
const {createReadStream, existsSync, statSync} = require('fs');
const path = require('path');
const {exec, spawn} = require('child_process');
const {promisify} = require('util');
const {execSync} = require('child_process');
const {bot, logger} = require('../lib');
const eP = promisify(exec);
const LTO = 300000;
@weskerty
weskerty / Cuevana.js
Last active August 26, 2025 13:27
Descarga Peliculas en Español
const axios = require('axios');
const cheerio = require('cheerio');
const { chromium } = require('playwright');
const fs = require('fs').promises;
const path = require('path');
const os = require('os');
const { promisify } = require('util');
const { exec: execCallback } = require('child_process');
const { bot } = require('../lib');
require('dotenv').config();
@weskerty
weskerty / aMule.js
Last active November 2, 2026 07:12
var __getOwnPropNames = Object.getOwnPropertyNames;
var __commonJS = (cb, mod) => function __require() {
try {
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
} catch (e) {
throw mod = 0, e;
}
};
// node_modules/minisearch/dist/cjs/index.cjs
@weskerty
weskerty / YoBot.js
Last active August 27, 2026 06:18
MultiAccounts on Same Server LyFeLevanter Bot
const fs = require('fs').promises;
const path = require('path');
const { bot, sleep } = require('../lib');
const { restartInstance } = require('../lib/pm2');
const T1 = "Converting, Restarting Bot, wait a moment...";
const T2 = "Session Manager";
const T3 = "Add new session:";