Skip to content

Instantly share code, notes, and snippets.

View sanex3339's full-sized avatar
💭
Something happening!

Timofey Kachalov sanex3339

💭
Something happening!
View GitHub Profile
/* Original code
async function fetchData(id, delay) {
await new Promise(resolve => setTimeout(resolve, delay));
return { id: id, data: 'Data-' + id };
}
async function processInParallel() {
// Launch multiple async operations in parallel
const promise1 = fetchData(1, 10);
const promise2 = fetchData(2, 5);
const _b_ = (function () {
var e = [
{
'i': [
{
'o': 0x8,
'a': 0x3
},
{
'o': 0x4b,
// E-Commerce Shopping Cart Application
// Demonstrates comprehensive VM obfuscation with real-world patterns
// Product constructor function (OOP pattern without ES6 classes)
function Product(name, price, category, inStock) {
// Handle default parameter manually (ES5 compatible)
if (inStock === undefined) {
inStock = true;
}
var _b_ = (function () {
var e = [
{
'i': [
{
'o': 0xd3,
'a': 0x0
},
{
'o': 0x4b,
@sanex3339
sanex3339 / mb-jars.mjs
Created February 5, 2025 09:51 — forked from iethree/mb-jars.mjs
Metabase jar helper
const version = process.argv[3];
const edition = process.argv[4] === 'oss' ? 'oss' : 'ee';
const [major, minor] = version.split('.');
const jarName = `metabase-${edition}-${version}.jar`;
const fileExists = fs.existsSync(jarName);
if (!fileExists) {
var a0i = [
'ugq8ESoA',
'tCkyWO9IW4q=',
'oHxdNmouWQe=',
'WO3cIffHvG==',
'nmoSFmkvWQ0=',
'EMCUwCo1',
'W693WRKWW5S=',
'WQddQJlcSKO=',
'W4hcNva=',
This file has been truncated, but you can view the full file.
var a0a = [
'originalInstance',
'bootstrapModuleFactory',
'$controller',
'wks',
'PairsObservable',
'RegExp',
'advance',
'serializeBody',
import { inject, injectable, } from 'inversify';
import { ServiceIdentifiers } from '../../container/ServiceIdentifiers';
import * as eslintScope from 'eslint-scope';
import * as ESTree from 'estree';
import * as estraverse from 'estraverse';
import { IOptions } from '../../interfaces/options/IOptions';
import { IRandomGenerator } from '../../interfaces/utils/IRandomGenerator';
import { IVisitor } from '../../interfaces/node-transformers/IVisitor';
type PrependToArray <Element, TArray extends _Iterator<any, any[]> = []> =
((head: Element, ...args: TArray) => any) extends ((...args: infer TResult) => any)
? TResult
: TArray;
type ArrayLength <TArray extends _Iterator<any, any[]>> = TArray['length'];
type NextIteratorValue <TArray extends _Iterator<any, any[]>> = PrependToArray<any, TArray>;
type _Iterator<
type PrependToArray <Element, TArray extends _Iterator<any, any[]> = []> =
((head: Element, ...args: TArray) => any) extends ((...args: infer TResult) => any)
? TResult
: TArray;
type ArrayLength <TArray extends _Iterator<any, any[]>> = TArray['length'];
type NextIteratorValue <TArray extends _Iterator<any, any[]>> = PrependToArray<any, TArray>;
type _Iterator<Index extends number = 0, Current extends any[] = []> = {