Skip to content

Instantly share code, notes, and snippets.

@ySergi
ySergi / ip.py
Created March 17, 2025 14:40
Obtener datos de una IP
import requests
import pandas as pd
from rich.console import Console
from rich.table import Table
from rich import box
def obtener_datos_ip(ip=None):
url = f"https://ip.guide/{ip}" if ip else "https://ip.guide"
try:
respuesta = requests.get(url, timeout=10)
@ySergi
ySergi / getAssets.js
Created September 19, 2024 22:26
Script to get all assests in Quixel Megascans
((async (startPage = 0, autoClearConsole = true) => {
const getCookie = (name) => {
const value = `; ${document.cookie}`;
const parts = value.split(`; ${name}=`);
if (parts.length === 2) return parts.pop().split(';').shift();
}
const callCacheApi = async (params = {}) => {
const defaultParams = {
@ySergi
ySergi / screenshot.lua
Last active September 13, 2024 17:53
[MPV] - Guardar capturas de pantalla en un directorio con el nombre del vídeo
local utils = require 'mp.utils'
function create_screenshot_directory()
local path = mp.get_property_native('path')
local filename = mp.get_property_native('filename/no-ext')
-- Directorio donde se generará el directorio con el nombre del vídeo
local screenshot_directory = 'D:\\Multimedia\\Images\\MPV Screenshots\\' .. filename
-- Crea el directorio si no existe
utils.subprocess({ args = {'mkdir', '-p', screenshot_directory} })
@ySergi
ySergi / string_converter.py
Last active September 13, 2024 17:46
Garbage string converter poorly made with Tkinter
# Import the Tkinter module
import tkinter as tk
# Create a root window
root = tk.Tk()
# Create a label to display the input string
label = tk.Label(root, text="Enter a string:")
label.pack()
Morty Proxy This is a proxified and sanitized view of the page, visit original site.