Some notes and techniques for reverse engineering Webpack (and a little bit about React/Vue/Angular) apps.
| // This works on all devices/browsers, and uses IndexedDBShim as a final fallback | |
| var indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB || window.shimIndexedDB; | |
| // Open (or create) the database | |
| var open = indexedDB.open("MyDatabase", 1); | |
| // Create the schema | |
| open.onupgradeneeded = function() { | |
| var db = open.result; | |
| var store = db.createObjectStore("MyObjectStore", {keyPath: "id"}); |
Some notes and techniques for reverse engineering Webpack (and a little bit about React/Vue/Angular) apps.
Some notes and tools for reverse engineering / deobfuscating / unminifying obfuscated web app code.
Microsoft claims Visual Studio Code (VS Code) is open source, yet it restricts the use of its Marketplace extensions in non-Microsoft products like VSCodium (telemetry/tracking free open source fork), Cursor, Windsurf, Trae, and other VS Code-based IDEs, enforcing what some see as monopolistic control. This guide provides a workaround to enable the VS Code Marketplace in VSCodium and Trae (more to be added soon), allowing you to freely use extensions. Note that using the VS Code Marketplace with non-Microsoft products may violate its terms of use, which state that extensions are intended for use only with Microsoft Visual Studio products. Proceed at your discretion after reviewing the terms.
To configure VSCodium to use the VS Code Marketplace instead of the default OpenVSX Registry, you can either set environment variables or create a custom product.json file.
| import mlx.core as mx | |
| import mlx.nn as nn | |
| from typing import Tuple, Type, Optional, List, Any | |
| import importlib | |
| from transformers import AutoTokenizer | |
| from mlx_lm.utils import load_model, get_model_path | |
| def get_qwen3_embedding_classes(config: dict) -> Tuple[Type[nn.Module], Type]: |
| # ----------------------------------------------------------------------------- | |
| # AI-powered Git Commit Function | |
| # Copy paste this gist into your ~/.bashrc or ~/.zshrc to gain the `gcm` command. It: | |
| # 1) gets the current staged changed diff | |
| # 2) sends them to an LLM to write the git commit message | |
| # 3) allows you to easily accept, edit, regenerate, cancel | |
| # But - just read and edit the code however you like | |
| # the `llm` CLI util is awesome, can get it here: https://llm.datasette.io/en/stable/ | |
| gcm() { |
| function onOpen() { | |
| var ui = DocumentApp.getUi(); | |
| ui.createMenu('Convert to .RST') | |
| .addItem('Convert to .RST and email me the result', 'ConvertToRestructuredText') | |
| .addToUi(); | |
| } | |
| // Adopted from https://github.com/mangini/gdocs2md by Renato Mangini | |
| // License: Apache License Version 2.0 | |
| String.prototype.repeat = String.prototype.repeat || function(num) { |
This repository has a dataset of 184.879 crimes committed in Buenos Aires: https://github.com/ramadis/delitos-caba
Download the raw data like this:
wget 'https://github.com/ramadis/delitos-caba/releases/download/3.0/delitos.json'
Now use Pandas to load that into a dataframe:
| #!/usr/bin/env python3 | |
| """ | |
| Codebase Chat CLI - GPU Accelerated | |
| A command-line interface for interacting with codebases using local LLMs via Ollama. | |
| Supports GPU acceleration for improved performance and ChromaDB for vector indexing. | |
| Features: | |
| - Vector index creation of source code files with ChromaDB and Ollama embeddings | |
| - .codechatignore support for excluding files/folders |