Skip to content

Instantly share code, notes, and snippets.

View miladj3's full-sized avatar
💭
I loved microsoft

milad jafari miladj3

💭
I loved microsoft
View GitHub Profile
@miladj3
miladj3 / divar_notifier.py
Created May 9, 2025 14:06 — forked from mthri/divar_notifier.py
Divar to Telegram Notifier Bot
"""
Divar to Telegram Notifier Bot
This script monitors a filtered Divar page and sends newly posted items to a specified Telegram channel every 60 seconds.
Setup Instructions:
1. Create a Telegram bot using BotFather.
2. Add the bot to your Telegram group or channel.
3. Promote the bot as an admin in your channel so it can post messages.
4. Use @username_to_id_bot to get the numeric ID of your channel (e.g., -1001234567890).
@miladj3
miladj3 / cursor.sh
Last active June 12, 2025 09:17 — forked from Bishwas-py/cursor.sh
Cursor installer / uninstaller for linux, Fedora, Ubuntu, Arch or distros
#!/bin/bash
# Set default paths and URLs
DOWNLOADS_DIR="$HOME/Downloads"
APPLICATIONS_DIR="$HOME/.local/bin" # More appropriate location for AppImages
ICON_URL="https://www.cursor.com/apple-touch-icon.png"
APPIMAGE_URL="https://downloads.cursor.com/production/53b99ce608cba35127ae3a050c1738a959750865/linux/x64/Cursor-1.0.0-x86_64.AppImage"
ICON_FILENAME="cursor-icon.png"
APPIMAGE_FILENAME="Cursor-1.0.0-x86_64.AppImage"
DESKTOP_FILE="$HOME/.local/share/applications/cursor-editor.desktop"
import { Routes } from '@angular/router';
import { inject, Injectable, signal } from '@angular/core';
export const routes: Routes = [
// 🔐 Authentication-Based Redirect
{
path: '',
redirectTo: () => (inject(AuthService).isAuth() ? 'dashboard' : 'login'),
},
@miladj3
miladj3 / my_personal_agent_prompt.md
Created September 2, 2025 13:36 — forked from mhrlife/my_personal_agent_prompt.md
A system prompt for an AI assistant specialized in computer engineering. Provides PhD-level technical answers with citations, featuring a two-part response format: concise answer + storytelling explanation with formal definitions. Optimized for ADHD-friendly reading. (I use it with Opus 4.1)

You are a personal agent for me. You find answers to computer engineering questions. I am a senior-level programmer with advanced education. You don't give naive or simple answers. Your answers are PhD-level, backed by sources, without any assumptions or guesses.

Speaking Style

Your answer must be in two parts:

  1. Concise Answer: Low verbosity, to-the-point, ADHD-friendly response
  2. Detailed Explanation: Medium verbosity, ADHD-friendly narrative that explains the concept through storytelling.
@miladj3
miladj3 / worker.js
Created September 20, 2025 18:45 — forked from ircfspace/worker.js
Simple GitHub Raw Proxy Worker
export default {
async fetch(request) {
const url = new URL(request.url);
const path = url.pathname.replace(/^\/+/, "");
const parts = path.split("/");
if (parts.length < 4) {
return new Response("Usage: /owner/repo/branch/path/to/file.ext", { status: 400 });
}
const [owner, repo, branch, ...filePathParts] = parts;
const filePath = filePathParts.join("/");
@miladj3
miladj3 / console_easy_excute.js
Created September 29, 2025 08:30 — forked from SamadiPour/console_easy_excute.js
Snappfood Spent money
// Copy paste this line in your browser console to run the script and get the result
fetch('https://gist.githubusercontent.com/SamadiPour/a18b1e186deac76c4a95fa108d02a6ea/raw/snappfood_enhanced.js').then(r => r.text()).then(code => eval(code));