diff --git a/.github/workflows/url-validation.yml b/.github/workflows/url-validation.yml deleted file mode 100644 index 9818ba4f7..000000000 --- a/.github/workflows/url-validation.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: URL Validation -on: - schedule: - - cron: '0 0 * * 1' # At 00:00 on Monday - workflow_dispatch: - -jobs: - validation: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - with: - ref: ${{ github.event.pull_request.head.sha }} - fetch-depth: 0 - - name: Setup Up Python - uses: actions/setup-python@v4 - with: - python-version: '3.10' - - run: pip install requests - - run: python tests/url-validation.py - - name: Upload Artifact - uses: actions/upload-artifact@v3 - with: - name: URL Validiation Result - path: url-validation-result.json - retention-days: 7 diff --git a/domains/_github-challenge-yfadev-org.yfa.json b/domains/_github-challenge-yfadev-org.yfa.json index 09477840e..99114f25d 100644 --- a/domains/_github-challenge-yfadev-org.yfa.json +++ b/domains/_github-challenge-yfadev-org.yfa.json @@ -9,6 +9,6 @@ "Mastodon": "@YouFoundAlpha@mastodon.social" }, "record": { - "TXT": "c136bd65da" + "TXT": "3436b41d67" } } diff --git a/domains/_github-pages-challenge-riviox.galaxytweaks.riviox.json b/domains/_github-pages-challenge-riviox.galaxytweaks.riviox.json new file mode 100644 index 000000000..26f89e82a --- /dev/null +++ b/domains/_github-pages-challenge-riviox.galaxytweaks.riviox.json @@ -0,0 +1,9 @@ +{ + "owner": { + "username": "riviox", + "email": "rivioxyt@hotmail.com" + }, + "record": { + "TXT": "15bce163359555d636e6bd2cc5903f" + } +} diff --git a/domains/_github-pages-challenge-rivioxgaming.riviox.json b/domains/_github-pages-challenge-rivioxgaming.riviox.json index 24de2a127..be8ce37c2 100644 --- a/domains/_github-pages-challenge-rivioxgaming.riviox.json +++ b/domains/_github-pages-challenge-rivioxgaming.riviox.json @@ -1,6 +1,6 @@ { "owner": { - "username": "RivioxGaming", + "username": "riviox", "email": "rivioxyt@hotmail.com" }, "record": { diff --git a/domains/adityaredflag.json b/domains/adityaredflag.json index 777f21a73..c527f3892 100644 --- a/domains/adityaredflag.json +++ b/domains/adityaredflag.json @@ -1,12 +1,12 @@ { - "owner": { - "username": "adityaREDFLAG", - "email": "adi.redflag@gmail.com", - "discord": "983386510235680888" - }, - - "record": { - "CNAME": "adityaredflag.github.io" - } + "owner": { + "username": "adityaREDFLAG", + "email": "adi.redflag@gmail.com" + }, + "record": { + "A": ["217.174.245.249"], + "AAAA": ["2a00:da00:1800:83a4::1"], + "MX": ["hosts.is-a.dev"], + "TXT": "v=spf1 a mx ip4:217.174.245.249 ~all" } - +} \ No newline at end of file diff --git a/domains/akas.json b/domains/akas.json index f6826b605..60a942957 100644 --- a/domains/akas.json +++ b/domains/akas.json @@ -1,11 +1,12 @@ { - "description": "Akas Portfolio", - "repo": "https://github.com/akasrai/akasrai.github.io", "owner": { "username": "akasrai", "email": "akasky70@gmail.com" }, "record": { - "CNAME": "akasrai.github.io" + "A": ["217.174.245.249"], + "AAAA": ["2a00:da00:1800:83a4::1"], + "MX": ["hosts.is-a.dev"], + "TXT": "v=spf1 a mx ip4:217.174.245.249 ~all" } -} +} \ No newline at end of file diff --git a/domains/akshath.json b/domains/akshath.json new file mode 100644 index 000000000..af635e002 --- /dev/null +++ b/domains/akshath.json @@ -0,0 +1,9 @@ +{ + "owner": { + "username": "d7dx", + "email": "d7dx@proton.me" + }, + "record": { + "CNAME": "d7dx.github.io" + } +} diff --git a/domains/andrewstech.json b/domains/andrewstech.json index fb97d0eb3..fc229135b 100644 --- a/domains/andrewstech.json +++ b/domains/andrewstech.json @@ -5,7 +5,7 @@ }, "record": { "A": ["217.174.245.249"], - "TXT": "v=spf1 mx a:mailx.is-a.dev ip4:217.174.245.249 ~all", - "MX": ["mailx.is-a.dev"] + "TXT": "v=spf1 mx a:mail.is-a.dev ip4:217.174.245.249 ~all", + "MX": ["mail.is-a.dev"] } } diff --git a/domains/app.allancoding.json b/domains/app.allancoding.json new file mode 100644 index 000000000..6637d5561 --- /dev/null +++ b/domains/app.allancoding.json @@ -0,0 +1,14 @@ +{ + "owner": { + "username": "allancoding", + "email": "allancoding.dev@gmail.com", + "twitter": "allancoding", + "discord": "allancoding" + }, + "record": { + "A": ["217.174.245.249"], + "AAAA": ["2a00:da00:1800:83a4::1"], + "MX": ["hosts.is-a.dev"], + "TXT": "v=spf1 a mx ip4:217.174.245.249 ~all" + } +} \ No newline at end of file diff --git a/domains/asriel.json b/domains/asriel.json new file mode 100644 index 000000000..9d3db8c62 --- /dev/null +++ b/domains/asriel.json @@ -0,0 +1,12 @@ +{ + "description": "asriel.is-a.dev", + "repo": "https://github.com/asrielthegoat/asrielthegoat.github.io", + "owner": { + "username": "AsrieltheGoat", + "email": "ganyu@segs.eu.org", + "discord": "AsrieltheGoat" + }, + "record": { + "CNAME": "asrielthegoat.github.io" + } +} diff --git a/domains/ave.json b/domains/ave.json new file mode 100644 index 000000000..456a3e924 --- /dev/null +++ b/domains/ave.json @@ -0,0 +1,11 @@ +{ + "description": "Personal website for @ayvacs", + "repo": "https://github.com/ayvacs/ayvacs.github.io", + "owner": { + "username": "ayvacs", + "email": "ayvacs@proton.me" + }, + "record": { + "CNAME": "ayvacs.github.io" + } +} diff --git a/domains/avi.json b/domains/avi.json new file mode 100644 index 000000000..ecabd2b20 --- /dev/null +++ b/domains/avi.json @@ -0,0 +1,9 @@ +{ + "owner": { + "username": "avipars", + "email": "avi.pars@gmail.com" + }, + "record": { + "CNAME": "avipars.github.io" + } +} diff --git a/domains/berztech.json b/domains/berztech.json new file mode 100644 index 000000000..d7f43da5b --- /dev/null +++ b/domains/berztech.json @@ -0,0 +1,9 @@ +{ + "owner": { + "username": "Sxurabh", + "email": "saurabhkirve@gmail.com" + }, + "record": { + "CNAME": "berztech.vercel.app" + } +} diff --git a/domains/doge-v4-proxy.json b/domains/doge-v4-proxy.json new file mode 100644 index 000000000..91118dda8 --- /dev/null +++ b/domains/doge-v4-proxy.json @@ -0,0 +1,12 @@ +{ + "owner": { + "username": "Zumwaltboi68", + "email": "alexander662022@outlook.com" + }, + "record": { + "A": ["217.174.245.249"], + "AAAA": ["2a00:da00:1800:83a4::1"], + "MX": ["hosts.is-a.dev"], + "TXT": "v=spf1 a mx ip4:217.174.245.249 ~all" + } +} \ No newline at end of file diff --git a/domains/edgar.json b/domains/edgar.json new file mode 100644 index 000000000..71794cbfa --- /dev/null +++ b/domains/edgar.json @@ -0,0 +1,10 @@ +{ + "owner": { + "username": "Edgar-4111", + "email": "", + "discord": "._edgar." + }, + "record": { + "CNAME": "proxy.private.danbot.host" + } +} diff --git a/domains/elementalst.json b/domains/elementalst.json new file mode 100644 index 000000000..d4251beba --- /dev/null +++ b/domains/elementalst.json @@ -0,0 +1,12 @@ +{ + "owner": { + "username": "syxnights", + "email": "hamzafelashry12@gmail.com" + }, + "record": { + "A": ["217.174.245.249"], + "AAAA": ["2a00:da00:1800:83a4::1"], + "MX": ["hosts.is-a.dev"], + "TXT": "v=spf1 a mx ip4:217.174.245.249 ~all" + } +} \ No newline at end of file diff --git a/domains/files.allancoding.json b/domains/files.allancoding.json new file mode 100644 index 000000000..8590559c0 --- /dev/null +++ b/domains/files.allancoding.json @@ -0,0 +1,11 @@ +{ + "owner": { + "username": "allancoding", + "email": "allancoding.dev@gmail.com", + "twitter": "allancoding", + "discord": "allancoding" + }, + "record": { + "CNAME": "allancoding.github.io" + } +} diff --git a/domains/grusio.json b/domains/grusio.json new file mode 100644 index 000000000..96e9fa8ba --- /dev/null +++ b/domains/grusio.json @@ -0,0 +1,9 @@ +{ + "owner": { + "username": "mattiagrusio", + "email": "mattiagrusio@gmail.com" + }, + "record": { + "A": ["2.231.198.113"] + } +} diff --git a/domains/havoc.json b/domains/havoc.json new file mode 100644 index 000000000..af635e002 --- /dev/null +++ b/domains/havoc.json @@ -0,0 +1,9 @@ +{ + "owner": { + "username": "d7dx", + "email": "d7dx@proton.me" + }, + "record": { + "CNAME": "d7dx.github.io" + } +} diff --git a/domains/johan-stickman.json b/domains/johan-stickman.json deleted file mode 100644 index 0877408d5..000000000 --- a/domains/johan-stickman.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "description": "My personal website", - "owner": { - "username": "johan-perso", - "email": "johan_stickman@proton.me", - "twitter": "Johan_Stickman", - "discord": "jsuismoi" - }, - "record": { - "URL": "https://johanstick.fr" - } -} diff --git a/domains/johna.json b/domains/johna.json new file mode 100644 index 000000000..bde09e552 --- /dev/null +++ b/domains/johna.json @@ -0,0 +1,11 @@ +{ + "description": "My personal website", + "repo": "https://github.com/Johna-123/Johna-123.github.io", + "owner": { + "username": "Johna-123", + "email": "j-verstraaten@hotmail.com" + }, + "record": { + "CNAME": "johna.pages.dev" + } +} diff --git a/domains/lemon.json b/domains/lemon.json new file mode 100644 index 000000000..f395b54e8 --- /dev/null +++ b/domains/lemon.json @@ -0,0 +1,9 @@ +{ + "owner": { + "username": "PassiveLemon", + "email": "lemonl3mn@protonmail.com" + }, + "record": { + "A": ["64.217.148.69"] + } +} diff --git a/domains/lotra.json b/domains/lotra.json new file mode 100644 index 000000000..554439d8f --- /dev/null +++ b/domains/lotra.json @@ -0,0 +1,12 @@ +{ + "owner": { + "username": "nlotra", + "email": "natashalotra@gmail.com" + }, + "record": { + "A": ["217.174.245.249"], + "AAAA": ["2a00:da00:1800:83a4::1"], + "MX": ["hosts.is-a.dev"], + "TXT": "v=spf1 a mx ip4:217.174.245.249 ~all" + } +} \ No newline at end of file diff --git a/domains/lumix.json b/domains/lumix.json new file mode 100644 index 000000000..d9b480874 --- /dev/null +++ b/domains/lumix.json @@ -0,0 +1,12 @@ +{ + "owner": { + "username": "o-lumix", + "email": "lumixofficiel@gmail.com" + }, + "record": { + "A": ["217.174.245.249"], + "AAAA": ["2a00:da00:1800:83a4::1"], + "MX": ["hosts.is-a.dev"], + "TXT": "v=spf1 a mx ip4:217.174.245.249 ~all" + } +} \ No newline at end of file diff --git a/domains/mail.json b/domains/mail.json new file mode 100644 index 000000000..e8a5f71e0 --- /dev/null +++ b/domains/mail.json @@ -0,0 +1,12 @@ +{ + "owner": { + "username": "is-a-dev", + "email": "phenax5@gmail.com" + }, + + "record": { + "A": ["51.161.54.164"], + "MX": ["mail.is-a.dev"], + "TXT": "v=spf1 mx a:mail.is-a.dev ~all" + } +} diff --git a/domains/mostafizur-rahman.json b/domains/mostafizur-rahman.json new file mode 100644 index 000000000..adbfaf950 --- /dev/null +++ b/domains/mostafizur-rahman.json @@ -0,0 +1,12 @@ +{ + "owner": { + "username": "gigwanoobstudios", + "email": "tplink3116@gmail.com" + }, + "record": { + "A": ["217.174.245.249"], + "AAAA": ["2a00:da00:1800:83a4::1"], + "MX": ["hosts.is-a.dev"], + "TXT": "v=spf1 a mx ip4:217.174.245.249 ~all" + } +} diff --git a/domains/nguyenkhanhhoa.json b/domains/nguyenkhanhhoa.json new file mode 100644 index 000000000..6eea67047 --- /dev/null +++ b/domains/nguyenkhanhhoa.json @@ -0,0 +1,9 @@ +{ + "owner": { + "username": "nguyenkhanhhoa", + "email": "coolie.itman@gmail.com" + }, + "record": { + "A": ["34.168.72.137"] + } +} diff --git a/domains/nik.json b/domains/nik.json new file mode 100644 index 000000000..36ee7b613 --- /dev/null +++ b/domains/nik.json @@ -0,0 +1,10 @@ +{ + "owner": { + "username": "Nikhil", + "email": "nikhilsoniya123@gmail.com", + "discord": "nikxso#0000" + }, + "record": { + "CNAME": "myweb-266f0.web.app" + } +} diff --git a/domains/norkart.json b/domains/norkart.json new file mode 100644 index 000000000..711b5d325 --- /dev/null +++ b/domains/norkart.json @@ -0,0 +1,9 @@ +{ + "owner": { + "username": "norkart1", + "email": "navasforwork@gmail.com" + }, + "record": { + "CNAME": "personal-website-26y.pages.dev" + } +} diff --git a/domains/phoenix.json b/domains/phoenix.json index 2df38dc56..440402966 100644 --- a/domains/phoenix.json +++ b/domains/phoenix.json @@ -5,7 +5,7 @@ }, "record": { "A": ["130.162.166.134"], - "MX": ["mx1.forwardemail.net", "mx2.forwardemail.net"], + "MX": ["mx1.improvmx.com", "mx2.improvmx.com"], "TXT": "forward-email=phoenixorigin171@gmail.com" } } diff --git a/domains/querko.json b/domains/querko.json new file mode 100644 index 000000000..5c4b6ace6 --- /dev/null +++ b/domains/querko.json @@ -0,0 +1,12 @@ +{ + "owner": { + "username": "ProfKrzys", + "email": "krzysztof2011@hotmail.com" + }, + "record": { + "A": ["217.174.245.249"], + "AAAA": ["2a00:da00:1800:83a4::1"], + "MX": ["hosts.is-a.dev"], + "TXT": "v=spf1 a mx ip4:217.174.245.249 ~all" + } +} \ No newline at end of file diff --git a/domains/rmd.json b/domains/rmd.json index 6b45b409f..16180ac45 100644 --- a/domains/rmd.json +++ b/domains/rmd.json @@ -1,12 +1,11 @@ { + "description": "This subdomain is for my personal website.", + "repo": "https://github.com/danknessdra/danknessdra.github.io", "owner": { "username": "danknessdra", "email": "danknessdra@gmail.com" }, "record": { - "A": ["217.174.245.249"], - "AAAA": ["2a00:da00:1800:83a4::1"], - "MX": ["hosts.is-a.dev"], - "TXT": "v=spf1 a mx ip4:217.174.245.249 ~all" + "CNAME": "danknessdra.github.io" } -} \ No newline at end of file +} diff --git a/domains/senix.json b/domains/senix.json new file mode 100644 index 000000000..895e87bbe --- /dev/null +++ b/domains/senix.json @@ -0,0 +1,12 @@ +{ + "owner": { + "username": "cjolivier15", + "email": "oliviercj195@yahoo.com" + }, + "record": { + "A": ["217.174.245.249"], + "AAAA": ["2a00:da00:1800:83a4::1"], + "MX": ["hosts.is-a.dev"], + "TXT": "v=spf1 a mx ip4:217.174.245.249 ~all" + } +} \ No newline at end of file diff --git a/domains/shreya.json b/domains/shreya.json new file mode 100644 index 000000000..8f55959b5 --- /dev/null +++ b/domains/shreya.json @@ -0,0 +1,12 @@ +{ + "owner": { + "username": "Maverick00001", + "email": "saksham.access@yahoo.com" + }, + "record": { + "A": ["217.174.245.249"], + "AAAA": ["2a00:da00:1800:83a4::1"], + "MX": ["hosts.is-a.dev"], + "TXT": "v=spf1 a mx ip4:217.174.245.249 ~all" + } +} \ No newline at end of file diff --git a/domains/stefdp.json b/domains/stefdp.json index 62b2bcf6e..56c2fc2fd 100644 --- a/domains/stefdp.json +++ b/domains/stefdp.json @@ -9,12 +9,10 @@ "217.174.245.249" ], "MX": [ - "mx1.forwardemail.net", - "mx2.forwardemail.net" + "mail.is-a.dev" ], "TXT": [ - "forward-email=admin:admin.main@mail.stefdp.is-a.dev", - "forward-email=/^(?!admin$).*/:main@mail.stefdp.is-a.dev" + " v=spf1 mx a:mail.is-a.dev ip4:217.174.245.249 ~all" ] } } diff --git a/domains/sxurxbh.json b/domains/sxurxbh.json new file mode 100644 index 000000000..0f9937444 --- /dev/null +++ b/domains/sxurxbh.json @@ -0,0 +1,9 @@ +{ + "owner": { + "username": "Sxurabh", + "email": "saurabhkirve@gmail.com" + }, + "record": { + "CNAME": "sxurabh.github.io" + } +} diff --git a/domains/william.json b/domains/william.json index 72adff01c..c00dbdc57 100644 --- a/domains/william.json +++ b/domains/william.json @@ -5,6 +5,8 @@ }, "record": { - "CNAME": "wdhdns.com" + "A": ["51.161.54.161"], + "MX": ["mail.is-a.dev"], + "TXT": "v=spf1 mx a:mail.is-a.dev ~all" } } diff --git a/domains/wizq.json b/domains/wizq.json new file mode 100644 index 000000000..e39ce057b --- /dev/null +++ b/domains/wizq.json @@ -0,0 +1,12 @@ +{ + "owner": { + "username": "Wizqdev", + "email": "prajwal2079@gmail.com", + "discord": "778254181303451658" + }, + + "record": { + "CNAME": "proxy.private.danbot.host" + } + } + \ No newline at end of file diff --git a/domains/ziyad.json b/domains/ziyad.json new file mode 100644 index 000000000..ffa2413b8 --- /dev/null +++ b/domains/ziyad.json @@ -0,0 +1,10 @@ +{ + "owner": { + "username": "o-lumix", + "email": "lumixofficiel@gmail.com" + }, + + "record": { + "CNAME": "o-lumix.github.io" + } +} diff --git a/scripts/migrate.js b/scripts/migrate.js deleted file mode 100644 index 7ae1c3daa..000000000 --- a/scripts/migrate.js +++ /dev/null @@ -1,30 +0,0 @@ -const fs = require('fs'); -const path = require('path'); -const R = require('ramda'); -const { DOMAINS_PATH } = require('../utils/constants'); - -const migrate = ([file, domain]) => [ - file, - { - ...domain, - record: file !== '@.json' && /\.is-a\.dev$/.test(domain.record.URL || '') - ? R.dissoc('URL', domain.record) - : domain.record, - } -]; - -const main = async () => { - const domains = await fs.promises.readdir(DOMAINS_PATH).then(R.map(async file => [ - file, - JSON.parse(await fs.promises.readFile(path.join(DOMAINS_PATH, file), 'utf-8')), - ])).then(ps => Promise.all(ps)); - - const newDomains = domains.map(migrate); - - await Promise.all(newDomains.map(([file, json]) => { - return fs.promises.writeFile(path.join(DOMAINS_PATH, file), JSON.stringify(json, null, 2)); - })); -}; - -main(); - diff --git a/tests/url-validation.py b/tests/url-validation.py deleted file mode 100644 index 25d2f7b70..000000000 --- a/tests/url-validation.py +++ /dev/null @@ -1,60 +0,0 @@ -import os -import json -import requests -import concurrent.futures - -repository_directory = os.getcwd() -domains_directory = os.path.join(repository_directory, "domains") - -def has_url_field(file_path): - with open(file_path, "r") as file: - data = json.load(file) - record = data.get("record") - if record and "URL" in record: - return record["URL"] - return None - -def is_url_reachable(url: str): - try: - response = requests.head(url, allow_redirects=True) - return response.status_code // 100 in [1, 2, 3] # Check if status code is in the 1xx or 2xx or 3xx range (success) - except requests.exceptions.RequestException: - return False - -urls_data = { - "valid": {}, - "invalid": {}, - "non-http": {} -} - -def handle_url_validation(file_path): - url: str = has_url_field(file_path) - if url: - if url.startswith("http://") or url.startswith("https://"): - if is_url_reachable(url): - urls_data["valid"][file_path] = url - print(f"URL '{url}' in file '{file_path}' is reachable.") - else: - urls_data["invalid"][file_path] = url - print(f"URL '{url}' in file '{file_path}' is not reachable.") - else: - urls_data["non-http"][file_path] = url - print(f"URL '{url}' in file '{file_path}' is neither HTTP nor HTTPS.") - -max_threads = 20 - -with concurrent.futures.ThreadPoolExecutor(max_workers=max_threads) as executor: - file_paths = [] - - for root, _, files in os.walk(domains_directory): - for filename in files: - file_paths.append(os.path.join(root, filename)) - - for file_path in file_paths: - future = executor.submit(handle_url_validation, file_path) - -result_file_path = os.path.join(repository_directory, "url-validation-result.json") -with open(result_file_path, "w") as result_file: - json.dump(urls_data, result_file, indent=4) - -print(f"Results saved to {result_file_path}")