Skip to content

Instantly share code, notes, and snippets.

View Pymmdrza's full-sized avatar
M M D R Z A . C o M

MMDRZA Pymmdrza

M M D R Z A . C o M
View GitHub Profile
@Pymmdrza
Pymmdrza / vscode_setting_update_v1.0.0.json
Created June 25, 2025 12:33
Visual Studio Code Setting Config for Python Javascript and PHP , ... (Private Design)
{
"workbench.colorCustomizations": {
"editor.background": "#22242d",
"editor.foreground": "#D4D4D4",
"editor.selectionBackground": "#3f5e86",
"editor.lineHighlightBackground": "#333a4578",
"editorCursor.foreground": "#5cb5ff",
"terminal.background": "#36373b",
"terminal.foreground": "#D4D4D4",
"terminal.selectionBackground": "#264F78",
@Pymmdrza
Pymmdrza / useragent-generator.py
Created June 21, 2025 12:09
Generate random user agent in python without any extra packages 📦
# credit by : Pymmdrza.github.io
import random
from datetime import date
OS_CHOICES = {
"Macintosh": ["68K", "PPC", "Intel Mac OS X"],
"Windows": [
"Win3.11",
"WinNT3.51",
"WinNT4.0",
@Pymmdrza
Pymmdrza / hugginface_Image_Analyzer_gradio.py
Created May 8, 2025 17:03
Huggingface Image Analyzer With Transformers and Gradio
import gradio as gr
from transformers import pipeline
pipeline = pipeline(task="image-classification", model="julien-c/hotdog-not-hotdog")
def predict(input_img):
predictions = pipeline(input_img)
return input_img, {p["label"]: p["score"] for p in predictions}
gradio_app = gr.Interface(
import requests
import xml.etree.ElementTree as ET
from colorthon import Colors as Fore
import sys
rd, gr, gy, bl, yl, cy, wh = Fore.RED, Fore.GREEN, Fore.GREY, Fore.BLUE, Fore.YELLOW, Fore.CYAN, Fore.WHITE
r = Fore.RESET
# Define Class
@Pymmdrza
Pymmdrza / Mmdrza_Bolinger_Meta_v0.1.0.pine
Last active May 4, 2025 18:03
Mmdrza Bolinger Meta (Pine Script) for tradingview Strategy Auto Class Entry
//@version=5
strategy(shorttitle="MMDRZA Bollinger Meta 0.1.0", title="Mmdrza - Bollinger Bands Strategy with New Algorithm for any chart", overlay=true, commission_type=strategy.commission.percent, commission_value=0.1, slippage=0, default_qty_type=strategy.percent_of_equity, default_qty_value=100)
// Inputs
length = input.int(20, minval=1, title="Length")
maType = input.string("SMA", "Basis MA Type", options = ["SMA", "EMA", "SMMA (RMA)", "WMA", "VWMA"])
src = input(close, title="Source")
mult = input.float(2.0, minval=0.001, maxval=50, title="StdDev")
offset = input.int(0, "Offset", minval = -500, maxval = 500)
#!/bin/bash
install_blockhub() {
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root" >&2
exit 1
fi
# check if is Mac OS
if [ "$(uname)" = "Darwin" ]; then
echo "This script must be run on Linux" >&2
@Pymmdrza
Pymmdrza / Ollama_FineTuning_Generate.py
Created March 4, 2025 08:41
Python Script for Fine Tuning and Traning Ollama Models
import json
import requests
import sys
from pathlib import Path
def query_ollama(prompt, model='mistral', context=''):
url = 'http://localhost:11434/api/generate'
data = {"model": model, "stream": False, "prompt": context+prompt}
response = requests.post(url, json=data)
response.raise_for_status()
@Pymmdrza
Pymmdrza / Log_Deep_Gemini.md
Created February 12, 2025 22:30
Log All Chat Data From Dual Ai Model Deepseek R1 with Gemini 2.0 Flash

Log Chat Dual Ai Model (Deepseek R1 vs Gemini 2.0 Flash)

All Data Log Chat From Chat Deepseek R1 vs. Gemini 2.0 Flash

Start Prompt

SYSTEM : You are chatting with another AI model. With each other's help, you should be able to write a complete script or program in Python for trading digital currencies as futures.


@Pymmdrza
Pymmdrza / Encrypte_Python_Source_Code.py
Created December 31, 2024 17:36
Encrypted Python Source Code Files with Cython to c , pyd
# github.com/Pymmdrza
# Encrypt and Compiled Command need Install : cython + wheel after install pack run in Root path Your Project:
# python Encrypte_Python_Source_Code.py build_ext --inplace
# Output : Generated And Converetd all Python Source code to C lang + Encrypte File with format : .pyd
# -----------------------------------------------------------
from setuptools import setup, Extension
from Cython.Build import cythonize
import os
modules = []