Skip to content

Instantly share code, notes, and snippets.

View me-suzy's full-sized avatar

Doar EU me-suzy

  • 05:57 (UTC +02:00)
View GitHub Profile
@me-suzy
me-suzy / regex cauta asta.txt
Last active July 4, 2026 03:55
regex cauta asta.txt
regex notepad++ gaseste toate fisierele html care nu contin asta: <!-- SASA-2 -->
Pentru a găsi toate fișierele HTML care NU conțin textul <!-- SASA-2 -->, trebuie să folosești funcția Find in Files (Caută în fișiere) din Notepad++ cu o expresie regulată de tip "negative lookahead".
Iată pașii exacți și setările necesare:
## Pașii de configurare în Notepad++
1. Apasă Ctrl + Shift + F pentru a deschide fereastra Find in Files.
2. Completează câmpurile exact așa:
@me-suzy
me-suzy / ftp_upload_art.py
Last active July 4, 2026 07:41
ftp_upload_art.py
from __future__ import annotations
import argparse
import ftplib
import getpass
import os
import posixpath
import re
import socket
import sys
@me-suzy
me-suzy / apply_art_links_design.py
Last active July 3, 2026 07:57
apply_art_links_design.py
@me-suzy
me-suzy / replace-flags-en.py
Created July 1, 2026 19:59
replace-flags-en.py
#!/usr/bin/env python3
r"""Replace the English Categories -> BOOKS START block in 2022 ART pages.
Defaults are set for this folder:
source: ..\en\your-painted-smile.html
target: .\2022 - en
Usage:
python replace-flags-en.py --dry-run
python replace-flags-en.py
@me-suzy
me-suzy / replace-flags.py
Created July 1, 2026 19:55
replace-flags.py
#!/usr/bin/env python3
r"""Replace the Categories -> BOOKS START block in Romanian 2022 ART pages.
Defaults are set for this folder:
source: ..\ro\profetia-ghicitoarei-din-desert.html
target: .\2022 - ro
Usage:
python replace-flags.py --dry-run
python replace-flags.py
@me-suzy
me-suzy / Google_Search_Functions.py
Created July 1, 2026 19:44
Google_Search_Functions.py
from google import google
num_page = 3
search_results = google.search("This is my query", num_page)
for result in search_results:
print(result.description)
@me-suzy
me-suzy / google_related_searches.py
Created July 1, 2026 19:43
google_related_searches.py
@me-suzy
me-suzy / google-magic.py
Created July 1, 2026 19:43
google-magic.py
import os
import sys
import time
import random
# import pprint
import codecs
sys.path.append(os.path.dirname(os.path.dirname(__file__)))
# https://github.com/howie6879/magic_google
# pip install magic_google
@me-suzy
me-suzy / google-gsearch.py
Created July 1, 2026 19:43
google-gsearch.py
import codecs
from gsearch.googlesearch import search
# results = search('Github')
results = search('Github', num_results=100)
# print(results)
file = codecs.open("result.txt", "w", "utf-8")
@me-suzy
me-suzy / google-api-client.py
Created July 1, 2026 19:43
google-api-client.py
from googleapiclient.discovery import build
api_key = "**************************************"
cse_id = "***************"
def google_search(search_term, api_key, cse_id, **kwargs):
service = build("customsearch", "v1", developerKey=api_key)
res = service.cse().list(q=search_term, cx=cse_id, **kwargs).execute()
return res