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
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

Keybase proof

I hereby claim:

  • I am pymmdrza on github.
  • I am immmdrza (https://keybase.io/immmdrza) on keybase.
  • I have a public key ASA0w1v28-8uF4QatU-3ECJvHAUmVlxTHGoNm9EEnC7-ngo

To claim this, I am signing this object:

@Pymmdrza
Pymmdrza / Mmdrza_Bolinger_Meta_v0.1.0.pine
Created March 30, 2025 12:22
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 = []
@Pymmdrza
Pymmdrza / transfer_model.py
Created December 28, 2024 01:27
Backup tools for any website and server create and compress with upload data to ftp, sftp , s3 and r2 with python
# --------------------------------------
# Programmer : github.com/PyMmdrza
# pip install tqdm ftplib boto3 pysftp
# --------------------------------------
import ftplib
import pysftp
import boto3
import tarfile
import zipfile
import os
@Pymmdrza
Pymmdrza / migrate_db_tool.py
Created December 28, 2024 01:01
Wordpress Website Migrate Database 2 website model with python
import mysql.connector
# Source database connection configuration
SOURCE_DB_CONFIG = {
'host': 'source_db_host',
'user': 'source_db_user',
'password': 'source_db_password',
'database': 'source_db_name'
}