Skip to content

Instantly share code, notes, and snippets.

@bryanjhv
bryanjhv / Crack Sublime Text Windows and Linux.md
Created February 5, 2021 07:45 — forked from JerryLokjianming/Crack Sublime Text Windows and Linux.md
Crack Sublime Text 3.2.2 Build 3211 and Sublime Text 4 Alpha 4094 with Hex

YouTube Channel https://www.youtube.com/c/jerrylokjianming


How to Crack Sublime Text 3.2.2 Build 3211 with Hex Editor (Windows | Without License) ↓

  1. Download & Install Sublime Text 3.2.2 Build 3211
  2. Visit https://hexed.it/
@bryanjhv
bryanjhv / remove-yape-root-check.md
Last active February 28, 2024 02:32
Eliminar chequeo de ROOT de Yape BCP (Android)

Eliminar chequeo de ROOT de Yape BCP (Android)

Algunos puntos / aclaraciones

  • NO trabajo para BCP en este momento ni previo a esta fecha.
  • NO me hago responsable por lo que otros hagan con este script.
  • NO brindo ningún tipo de soporte, si quieres usarlo lee tutoriales.
  • SOLO para uso personal, NO hacerlo comercial. EVITAR piratear.
  • SI lo RE-POSTEAS, hazlo agregando un enlace a este ORIGINAL.
  • ESPERO que BCP mejore su APP en vez de chequeos TONTOS.
@bryanjhv
bryanjhv / Crypt.ts
Created January 18, 2024 21:01
Laravel Encryption Crypt WebCrypto implementation
function s2b(data: string) {
return Uint8Array.from(data, c => c.charCodeAt(0)).buffer
}
function b2s(data: ArrayBufferLike) {
return String.fromCharCode(...new Uint8Array(data))
}
function hex(data: ArrayBufferLike) {
return [...new Uint8Array(data)].map(x => x.toString(16).padStart(2, '0')).join('')
import type { FastifyInstance } from 'fastify'
import fp from 'fastify-plugin'
import type { ZodAny, ZodError, ZodTypeAny } from 'zod'
import { z } from 'zod'
import { fromZodError } from 'zod-validation-error'
declare module 'fastify' {
// TODO: Copy ZodTypeProvider here (output)
interface FastifyTypeProviderDefault {
output: this['input'] extends ZodTypeAny ? z.infer<this['input']> : unknown
import { extname } from 'node:path'
import sharp, { FormatEnum } from 'sharp'
import type { Plugin } from 'vite'
function sharpPlugin(): Plugin {
return {
name: 'vite:sharp',
enforce: 'post',
apply: 'build',
async generateBundle(_, bundle) {
#!/bin/bash
args=(
minimal=yes # build only gpsd
gpsdclients=no # without clients
gpsd_group=uucp # arch linux group
socket_export=yes # fixes gps_unpack
control_socket=yes # for /run/gpsd.sock
)
/*
An example that converts os.Args to argc/argv for C.
Can be used with any []string with the same procedure.
*/
package main
/*
#include <stdio.h>
#include <stdlib.h>
@bryanjhv
bryanjhv / README.md
Last active June 19, 2023 19:51
Spotify song recorder for Linux (tested with Arch/Manjaro).

Spotify recorder

Simple Python script which uses DBus + ALSA to record current Spotify song.

Setup

First, you need a graphical desktop environment.
The setup.sh should be enough for Arch-based distro.
You need Spotify API credentials, find out how to get them.

@bryanjhv
bryanjhv / find-installed-sap-in-active-directory.ts
Last active June 4, 2023 03:54
Find SAP installation in ActiveDirectory using WScript
;(function(WSH) {
function trim(msg) {
return msg.replace(/\s+/g, '')
}
function log(tag, msg) {
WSH.StdOut.WriteLine(`[${tag}] ${msg}`)
}
function fail(msg) {
log('E', msg)
WSH.Quit(1)