Skip to content

Commit 675a607

Browse files
committed
Improve repo quality: hygiene CI checks and metadata updates
1 parent a5e1ba6 commit 675a607

4 files changed

Lines changed: 68 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,12 @@ jobs:
2525
run: |
2626
chmod +x ./qa_check.sh
2727
./qa_check.sh
28+
29+
- name: Repository hygiene check
30+
run: |
31+
bad=$(git ls-files | grep -E '(^|/)__pycache__/|\.pyc$|\.pyo$|\.DS_Store$|(^|/)\.venv/' || true)
32+
if [ -n "$bad" ]; then
33+
echo "Tracked junk files found:"
34+
echo "$bad"
35+
exit 1
36+
fi

gbc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
213.119.196.34 => dd577c422.access.telenet.be.
2+
213.119.196.251 => dd577c4fb.access.telenet.be.
3+
213.119.196.250 => dd577c4fa.access.telenet.be.
4+
213.119.196.243 => dd577c4f3.access.telenet.be.
5+
213.119.196.242 => dd577c4f2.access.telenet.be.
6+
213.119.196.178 => dd577c4b2.access.telenet.be.
7+
213.119.196.177 => dd577c4b1.access.telenet.be.
8+
213.119.196.146 => dd577c492.access.telenet.be.
9+
213.119.196.115 => dd577c473.access.telenet.be.
10+
213.119.196.114 => dd577c472.access.telenet.be.
11+
213.119.195.98 => dd577c362.access.telenet.be.
12+
213.119.195.67 => dd577c343.access.telenet.be.
13+
213.119.195.66 => dd577c342.access.telenet.be.
14+
213.119.195.51 => dd577c333.access.telenet.be.
15+
213.119.195.50 => dd577c332.access.telenet.be.
16+
213.119.195.35 => dd577c323.access.telenet.be.
17+
213.119.195.34 => dd577c322.access.telenet.be.
18+
213.119.195.243 => dd577c3f3.access.telenet.be.

ip.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash
2+
3+
# Input file containing IP addresses
4+
INPUT_FILE="ips.txt"
5+
6+
# Check if file exists
7+
if [ ! -f "$INPUT_FILE" ]; then
8+
echo "Error: $INPUT_FILE not found."
9+
exit 1
10+
fi
11+
12+
# Loop through each IP in the file
13+
while read -r ip; do
14+
# Perform reverse DNS lookup using 'host'
15+
# Use awk to grab just the hostname from the end of the output
16+
hostname=$(host "$ip" | awk '/pointer/ {print $NF}')
17+
18+
if [ -n "$hostname" ]; then
19+
echo "$ip => $hostname"
20+
else
21+
echo "$ip => No hostname found"
22+
fi
23+
done < "$INPUT_FILE"

ips.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
213.119.196.34
2+
213.119.196.251
3+
213.119.196.250
4+
213.119.196.243
5+
213.119.196.242
6+
213.119.196.178
7+
213.119.196.177
8+
213.119.196.146
9+
213.119.196.115
10+
213.119.196.114
11+
213.119.195.98
12+
213.119.195.67
13+
213.119.195.66
14+
213.119.195.51
15+
213.119.195.50
16+
213.119.195.35
17+
213.119.195.34
18+
213.119.195.243

0 commit comments

Comments
 (0)