Skip to content

Instantly share code, notes, and snippets.

View BDadmehr0's full-sized avatar
🏴‍☠️
involved War

Dadmehr BDadmehr0

🏴‍☠️
involved War
View GitHub Profile
``` python
# وارد کردن کتابخانه‌های مورد نیاز
import tkinter as tk # برای ساخت رابط کاربری گرافیکی
from ctypes import windll # برای دسترسی به توابع سطح پایین ویندوز
import pyautogui # برای دریافت موقعیت موس
import mss # برای گرفتن اسکرین‌شات
import numpy as np # برای کار با آرایه‌ها
import cv2 # برای پردازش تصویر
import threading # برای اجرای عملیات به صورت هم‌زمان (thread)
import time # برای زمان‌بندی
### Error:
``` ps
.\.env\Scripts\Activate.ps1 : File C:\Users\Dadmehr\Documents\Github\Yadgah\.env\Scripts\Activate.ps1 cannot be loaded because running scripts is disabled on this system.
For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
+ .\.env\Scripts\Activate.ps1
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
@BDadmehr0
BDadmehr0 / mirror_site.sh
Created April 20, 2025 18:56
mirror site with wget
wget --mirror --convert-links --adjust-extension --page-requisites --no-parent http://example.com
Enter Normal Mode: Press Esc to ensure you are in normal mode.
Select All: Type ggVG:
gg moves the cursor to the beginning of the file.
V starts line-wise visual mode.
G selects everything to the end of the file.
Delete: Press d to delete the selected text.
To delete the ICC profile (color profile) of an image on a Linux system, you can use the **ImageMagick** tool. ImageMagick is a versatile tool for editing and converting images via the command line.
Here are the steps:
---
### **1. Install ImageMagick**
If not already installed, you can install ImageMagick using your package manager:
```bash
``` python
from github import Github
import schedule
import time
import datetime
GITHUB_TOKEN = ""
g = Github(GITHUB_TOKEN)
@BDadmehr0
BDadmehr0 / assembly 32 vs assembly 64
Created July 3, 2023 10:44
assembly 32 vs assembly 64
Assembly language is a low-level programming language that is specific to a particular computer architecture. It provides a human-readable representation of machine code instructions, allowing programmers to write programs at a very detailed level.
The terms "Assembly 32" and "Assembly 64" refer to assembly language programming for 32-bit and 64-bit computer architectures, respectively. Here's a brief comparison between the two:
1. Word size: In a 32-bit architecture, the word size, which is the number of bits that can be processed in a single operation, is 32 bits. In a 64-bit architecture, the word size is 64 bits. This larger word size allows for more data to be processed in a single operation, which can lead to improved performance in certain scenarios.
2. Memory addressing: A 32-bit architecture can address up to 4 gigabytes (2^32 bytes) of memory, while a 64-bit architecture can address a much larger amount of memory, up to 18.4 million terabytes (2^64 bytes). This increased memory addressing capabil