Skip to content

Instantly share code, notes, and snippets.

View Valeriucoding's full-sized avatar
🖥️

Valeriu Valeriucoding

🖥️
  • 10:30 (UTC +03:00)
View GitHub Profile
Phase 1: Foundation (Weeks 1-2)
User Trust Score System
Objective: Build credibility profiles for each user
Components:
@Valeriucoding
Valeriucoding / script.bat
Last active September 22, 2025 07:50
Block all inbound and outbound exes in windows firewall
@ setlocal enableextensions
@ cd /d "%~dp0"
for /R %%f in (*.exe, *.dll) do (
netsh advfirewall firewall add rule name="Blocked: %%f" dir=out program="%%f" action=block
netsh advfirewall firewall add rule name="Blocked: %%f" dir=in program="%%f" action=block
)
@Valeriucoding
Valeriucoding / dynamic_select_form.py
Last active December 26, 2024 19:46
Django Admin Autocomplete Select in Django Forms
from django import forms
from django.contrib import admin
from django.contrib.admin.widgets import AutocompleteSelect
from django.forms import ModelForm
from django.urls import reverse
class BaseModelForm(ModelForm):
def __init__(self, *args, load_related_only=False, **kwargs):
super().__init__(*args, **kwargs)
@Valeriucoding
Valeriucoding / srt2list.py
Last active January 14, 2023 10:05
Subtitles to list converter
import re
import sys
def str2txt(srt):
lines = srt.splitlines()
lines = [line for line in lines if (not line.isdigit() and '-->' not in line) and line.strip() !='']
final_lines = []
temp_lines = []
for line in lines: