This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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, "/"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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, "/"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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, "/"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ============================================================ | |
| # 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 | |
| # ============================================================ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| 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 | |
| """ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Scenariul de înlocuire | |
| Cod inițial (Exemplu): | |
| <p>Nota: Flawless (2007)</p> | |
| </div> | |
| <p align="justify" class="text_obisnuit style3"> </p> | |
| <!-- ARTICOL FINAL --> | |
NewerOlder