Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 2 additions & 30 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -20,38 +20,10 @@ indent_size = 4
trim_trailing_whitespace = false
max_line_length = 100

[*.yml]
[*.{yml,yaml}]
indent_style = space
indent_size = 2

[*.yaml]
indent_style = space
indent_size = 2

[Makefile]
indent_style = tab

[*.json]
indent_style = space
indent_size = 2

[*.js]
indent_style = space
indent_size = 2

[*.ts]
indent_style = space
indent_size = 2

[*.html]
indent_style = space
indent_size = 2

[*.css]
indent_style = space
indent_size = 2

[*.sh]
end_of_line = lf
indent_style = space
indent_size = 4
indent_size = 2
48 changes: 8 additions & 40 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,55 +1,23 @@
# Set default behavior to automatically normalize line endings
# Default behavior
* text=auto

# Rust source files
# Rust and configuration
*.rs text eol=lf
*.toml text eol=lf
Cargo.lock text eol=lf

# Documentation
# Documentation and text
*.md text eol=lf
*.txt text eol=lf

# Configuration files
*.yml text eol=lf
*.yaml text eol=lf
# Configuration formats
*.{yml,yaml} text eol=lf
*.json text eol=lf
*.editorconfig text eol=lf

# Shell scripts
*.sh text eol=lf

# Makefiles
Makefile text eol=lf

# Binary files (don't normalize)
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.svg binary
*.woff binary
*.woff2 binary
*.ttf binary
*.eot binary

# Archives
*.zip binary
*.tar.gz binary
*.7z binary

# Executables
*.exe binary
*.dll binary
*.so binary
*.dylib binary

# Lock files
Cargo.lock text eol=lf

# Git files
# Git and version control
.gitignore text eol=lf
.gitattributes text eol=lf

# CI/CD files
# CI/CD
.github/** text eol=lf
2 changes: 1 addition & 1 deletion .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ jobs:
./procon-cli generate --output adblock.txt

# Gera a lista no formato hosts
./procon-cli generate --format hosts --output hosts.txt
./procon-cli generate --format hosts --output hosts
```
files: artifacts/**/*
draft: false
Expand Down
22 changes: 16 additions & 6 deletions .github/workflows/generate-lists.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,24 +40,34 @@ jobs:

- name: Generate lists with Procon CLI
run: |
cd lists
cd data
../procon-cli generate --format adblock --output adblock.txt
../procon-cli generate --format hosts --output hosts.txt
../procon-cli generate --format hosts --output hosts

- name: Check for changes
id: check_changes
run: |
if [ -n "$(git status --porcelain lists/)" ]; then
# Extract only site listings (ignore headers with timestamps)
grep '^||' data/adblock.txt > /tmp/adblock_sites.txt 2>/dev/null || true
grep '^0\.0\.0\.0' data/hosts > /tmp/hosts_sites.txt 2>/dev/null || true

# Get previous versions from git
git show HEAD:data/adblock.txt | grep '^||' > /tmp/adblock_sites_old.txt 2>/dev/null || true
git show HEAD:data/hosts | grep '^0\.0\.0\.0' > /tmp/hosts_sites_old.txt 2>/dev/null || true

# Compare only the site listings (ignore timestamp in headers)
if ! diff -q /tmp/adblock_sites.txt /tmp/adblock_sites_old.txt >/dev/null 2>&1 || \
! diff -q /tmp/hosts_sites.txt /tmp/hosts_sites_old.txt >/dev/null 2>&1; then
echo "changes=true" >> $GITHUB_OUTPUT
echo "📝 Changes detected in lists"
echo "📝 Changes detected in site listings"
else
echo "changes=false" >> $GITHUB_OUTPUT
echo "✅ No changes detected in lists"
echo "✅ No changes in site listings (only timestamp updated)"
fi

- name: Commit and push changes
if: steps.check_changes.outputs.changes == 'true'
run: |
git add lists/adblock.txt lists/hosts.txt
git add data/adblock.txt data/hosts
git commit -m "📋 Update lists - $(date +"%d/%m/%Y %H:%M:%S (GMT%:z)")"
git push
35 changes: 2 additions & 33 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,51 +19,20 @@ ehthumbs.db
Thumbs.db

# Temporary files
*.tmp
*.temp
*.bak
*.backup
*.{tmp,temp,bak,backup}

# Log files
*.log
logs/

# Environment files
.env
.env.local
.env.*.local

# Test coverage
*.profraw
coverage/

# Build artifacts from various tools
build/
dist/
*.exe
*.dll
*.so
*.dylib

# Package files
*.deb
*.rpm
*.tar.gz
*.zip

# CI/CD artifacts
.github/artifacts/
.github/cache/

# Local development files
scratch/
notes/
todo.txt

# Generated documentation
book/
docs/build/

# Backup files
*.orig
*.rej
*.{orig,rej}
9 changes: 0 additions & 9 deletions .roo/rules-architect/AGENTS.md

This file was deleted.

9 changes: 0 additions & 9 deletions .roo/rules-ask/AGENTS.md

This file was deleted.

9 changes: 0 additions & 9 deletions .roo/rules-code/AGENTS.md

This file was deleted.

9 changes: 0 additions & 9 deletions .roo/rules-debug/AGENTS.md

This file was deleted.

17 changes: 0 additions & 17 deletions AGENTS.md

This file was deleted.

1 change: 1 addition & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- sempre que estiver prestes a implementar um planejamento, me lembre de mudar para o modelo Haiku, caso ja nao esteja
74 changes: 0 additions & 74 deletions GEMINI.md

This file was deleted.

10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ As listas são atualizadas automaticamente de segunda a sexta-feira. Para se pro

| Formato | Descrição | Link |
|---------|-----------|------|
| **AdBlock** (recomendado) | Lista de filtros para bloqueadores como uBlock Origin, AdGuard | [Download](https://raw.githubusercontent.com/glauberlima/procon-blocklist/main/lists/adblock.txt) |
| **Hosts** | Arquivo hosts para bloqueio em nível de sistema | [Download](https://raw.githubusercontent.com/glauberlima/procon-blocklist/main/lists/hosts.txt) |
| **AdBlock** (recomendado) | Lista de filtros para bloqueadores como uBlock Origin, AdGuard | [Download](https://raw.githubusercontent.com/glauberlima/procon-blocklist/main/data/adblock.txt) |
| **Hosts** | Arquivo hosts para bloqueio em nível de sistema | [Download](https://raw.githubusercontent.com/glauberlima/procon-blocklist/main/data/hosts) |

### ⚙️ Como Adicionar a Lista ao seu Bloqueador

Expand All @@ -40,11 +40,11 @@ Este método bloqueia os sites em todo o sistema operacional.

- **Linux / macOS:**
```bash
sudo curl https://raw.githubusercontent.com/glauberlima/procon-blocklist/main/lists/hosts.txt >> /etc/hosts
sudo curl https://raw.githubusercontent.com/glauberlima/procon-blocklist/main/data/hosts >> /etc/hosts
```
- **Windows (usando PowerShell como Administrador):**
```powershell
curl https://raw.githubusercontent.com/glauberlima/procon-blocklist/main/lists/hosts.txt >> C:\Windows\System32\drivers\etc\hosts
curl https://raw.githubusercontent.com/glauberlima/procon-blocklist/main/data/hosts >> C:\Windows\System32\drivers\etc\hosts
```

## ✨ Sobre o Projeto
Expand Down Expand Up @@ -78,7 +78,7 @@ A ferramenta `procon-cli` permite gerar as listas localmente.
./target/release/procon-cli generate

# Gerar lista Hosts e salvar em um arquivo
./target/release/procon-cli generate --format hosts --output hosts.txt
./target/release/procon-cli generate --format hosts --output hosts
```

### Contribuição
Expand Down
File renamed without changes.
File renamed without changes.
Loading