Skip to content

Instantly share code, notes, and snippets.

View me-suzy's full-sized avatar

Doar EU me-suzy

  • 04:27 (UTC +01:00)
View GitHub Profile
@me-suzy
me-suzy / Test_Kill_Firefox_si_Ruleaza_Acum.bat
Created February 28, 2026 08:14
Test_Kill_Firefox_si_Ruleaza_Acum.bat
@echo off
REM Test: închide Firefox și pornește PDF Downloader ACUM (fără așteptare).
REM Rulează prin dublu-clic – e în sesiunea ta, deci ar trebui să închidă Firefox.
cd /d "D:\TEST"
echo Închid Firefox și geckodriver...
taskkill /F /IM firefox.exe 2>nul
taskkill /F /IM geckodriver.exe 2>nul
timeout /t 3 /nobreak >nul
echo Pornesc Run_PDF_Downloader.bat
call "D:\TEST\Run_PDF_Downloader.bat"
@me-suzy
me-suzy / wait_until_430_then_run.py
Created February 28, 2026 08:14
wait_until_430_then_run.py
# Pornește la logon (task "At log on"). Așteaptă până la 04:30, apoi închide Firefox și rulează .bat-ul.
# Rulează în sesiunea utilizatorului, deci taskkill vede Firefox.
import subprocess
import time
from datetime import datetime
LOG_DIR = r"D:\TEST\Logs"
BAT_PATH = r"D:\TEST\Run_PDF_Downloader.bat"
TARGET_HOUR = 4
TARGET_MINUTE = 30
@me-suzy
me-suzy / index V.6.php
Last active February 28, 2026 08:45
index V.6.php
<?php
// Simple Dreamweaver-like HTML/PHP editor with code + design view
// NOTE: Set your project root folder here:
$ROOT = 'e:/Carte/BB/17 - Site Leadership/'; // schimbă daca vrei alt folder de lucru
mb_internal_encoding('UTF-8');
function norm_path($p)
{
$p = str_replace(["\\", ".."], ["/", ""], $p);
return ltrim($p, "/");
@me-suzy
me-suzy / Bebe HTML EDITOR index V.5.php
Last active February 28, 2026 01:57
Bebe HTML EDITOR index V.5.php
<?php
// Simple Dreamweaver-like HTML/PHP editor with code + design view
// NOTE: Set your project root folder here:
$ROOT = 'e:/Carte/BB/17 - Site Leadership/'; // schimbă daca vrei alt folder de lucru
mb_internal_encoding('UTF-8');
function norm_path($p)
{
$p = str_replace(["\\", ".."], ["/", ""], $p);
return ltrim($p, "/");
@me-suzy
me-suzy / Bebe HTML Editor v.4 Mini Dreamweaver.html
Last active February 27, 2026 19:20
Bebe HTML Editor v.4 Mini Dreamweaver.html
<?php
// Simple Dreamweaver-like HTML/PHP editor with code + design view
// NOTE: Set your project root folder here:
$ROOT = 'e:/Carte/BB/17 - Site Leadership/'; // schimbă daca vrei alt folder de lucru
mb_internal_encoding('UTF-8');
function norm_path($p)
{
$p = str_replace(["\\", ".."], ["/", ""], $p);
return ltrim($p, "/");
@me-suzy
me-suzy / convert UTF-8-BOM to UTF-8.py.ps1
Created February 27, 2026 04:21
convert UTF-8-BOM to UTF-8.py.ps1
# ============================================================
# Converteste fisiere HTML din orice encoding cu BOM -> UTF-8
# Ruleaza din PowerShell:
# .\convert-to-utf8.ps1
# sau cu alt folder:
# .\convert-to-utf8.ps1 -Folder "e:\Carte\BB\17 - Site Leadership\Principal\ro"
# sau recursiv (subfoldere):
# .\convert-to-utf8.ps1 -Recurse
# ============================================================
@me-suzy
me-suzy / Replace afas.py
Created February 27, 2026 03:53
Replace afas.py
import os
import re
import sys
def process_file(filepath):
with open(filepath, 'r', encoding='utf-8', errors='ignore') as f:
content = f.read()
if '<!-- SASA-2 -->' in content:
return False # already has it
@me-suzy
me-suzy / convert UTF-8-BOM to UTF-8.py
Created February 26, 2026 17:42
convert UTF-8-BOM to UTF-8.py
"""
Converteste fisiere HTML din orice encoding cu BOM -> UTF-8 fara BOM.
Utilizare:
python convert-to-utf8.py
python convert-to-utf8.py --folder "e:\Carte\BB\17 - Site Leadership\Principal\ro"
python convert-to-utf8.py --folder "..." --recurse
python convert-to-utf8.py --folder "..." --dry-run
"""
@me-suzy
me-suzy / Generic bun formule notepad++.txt
Last active February 26, 2026 10:13
Generic bun formule notepad++.txt
Soluṭii REGEX pentru notepad++ mai puṭin cunoscute, dar GENIALE
Selecteaza fisierul care nu contine <!-- SASA-2 -->
Solutie: (?!.*<!-- SASA-2 -->)
aceasta cautare verifica daca <!-- SASA-2 --> nu se gaseste in fisier
Explicația componentelor:
@me-suzy
me-suzy / regex find <!-- SASA-2 -->.txt
Created February 26, 2026 08:21
regex find <!-- SASA-2 -->.txt
Scenariul de înlocuire
Cod inițial (Exemplu):
<p>Nota: Flawless (2007)</p>
</div>
<p align="justify" class="text_obisnuit style3"> </p>
<!-- ARTICOL FINAL -->