Skip to content

Commit c39663a

Browse files
committed
Update
1 parent f5a1db6 commit c39663a

9 files changed

Lines changed: 42 additions & 26 deletions

_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ theme_settings:
135135
nostr:
136136
enabled: true
137137
npub: npub1alptdev5srcw2hxg03567p4k6xs3lgj7f6545suc0rzp0xw98svse7rg94
138+
nprofile: nprofile1qqswls4kuk2gpu89tny8c6d0q6mdrggl5f0ya226gwv833qhn8zncxgprpmhxue69uhkummnw3ezucm0v3hkuctxwshxxmmdqywhwumn8ghj7mn0wd68yttsw43zuam9d3kx7unyv4ezumn9wsq3vamnwvaz7tmjv4kxz7fwdehhxarj9e3xzmnyrks2sw
138139
community: codonaft
139140
max_comment_length: 5000
140141
min_read_pow: 7

_do.cr

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -521,8 +521,6 @@ def health(config)
521521
warn("#{broken_post_urls.size} broken post URLs: #{broken_post_urls}\n")
522522
end
523523

524-
check_domain(site_url)
525-
526524
bancheck = "_bancheck.txt"
527525
custom_hosts =
528526
if File::Info.readable?(bancheck)
@@ -558,7 +556,7 @@ def health(config)
558556
.reject { |i| i.empty? }
559557
.map { |i| URI.parse(i) }
560558
.reject { |i| i.hostname.nil? || i.hostname == "localhost" } + relay_mirrors
561-
wss_uris = (trackers + other_relays + `git grep --only-matching 'wss://[a-zA-Z0-9/._-]*'`
559+
wss_uris = (trackers + other_relays + `git grep --only-matching 'wss://[a-zA-Z0-9/._-]*' | grep -vE '(^|/)(relays|allowed|blocked)\\.json'`
562560
.split('\n')
563561
.map { |i| i.strip.gsub(/.*wss:\/\//, "") }
564562
.reject { |i| i.empty? || IGNORE_HOSTS.any? { |ignored| i.includes?(ignored) } }
@@ -576,20 +574,22 @@ def health(config)
576574
print("#{i} ")
577575
check_icmp(i)
578576
check_ban(i, banlists)
579-
puts
580-
}
581-
wss_uris.each { |i|
582-
print("#{i} ")
583-
check_ban(i.hostname.not_nil!, banlists)
584-
check_ws(i, proxy)
577+
check_domain(i)
585578
puts
586579
}
587580
https_hosts.each { |i|
588581
https_uri = URI.parse("https://#{i}")
589582
check_certificate(https_uri, proxy)
583+
# TODO: check_response_code(https_uri, proxy)
590584
check_ech(https_uri)
591585
puts
592586
}
587+
wss_uris.each { |i|
588+
print("#{i} ")
589+
check_ban(i.hostname.not_nil!, banlists)
590+
check_ws(i, proxy)
591+
puts
592+
}
593593
})
594594
end
595595

@@ -692,12 +692,13 @@ def check_certificate(host : URI, proxy : URI)
692692
end
693693
end
694694

695-
def check_domain(url : URI)
696-
domain = url.hostname
695+
def check_domain(domain)
696+
return unless domain.count('.') == 1
697+
puts
697698
print("domain #{domain} expires on ")
698699
time = `whois #{domain}`
699700
.split("\n")
700-
.select { |i| i.includes?("Expiry Date:") || i.includes?("Expiration Date:") }
701+
.select { |i| i.includes?("Expiry Date:") || i.includes?("Expiration Date:") || i.includes?("paid-till:") }
701702
.map { |i|
702703
start = i.index(": ")
703704
if start.nil?
@@ -710,7 +711,6 @@ def check_domain(url : URI)
710711
.map { |i| Time.parse_rfc3339(i.not_nil!) }
711712
.min
712713
print_expiration(time)
713-
puts
714714
end
715715

716716
def check_ban(host : String, banlists : Set(String))

_includes/footer.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
<ul>
1414
<li><a href="{% if page.lang-en-uri %}{{ page.lang-en-uri }}{% else %}/{% endif %}">&#127760; EN</a></li>
1515
<li><a href="{% if page.lang-ru-uri %}{{ page.lang-ru-uri }}{% else %}/ru{% endif %}">&#127760; RU</a></li>
16-
<li><a href="/terms-and-privacy">⚖️ Terms + Privacy</a></li>
16+
<li><a href="/sponsor">&#9889; Sponsor</a></li>
17+
<li><a href="/terms-and-privacy">&#9878; Terms + Privacy</a></li>
1718
</ul>
1819
</div>
1920

_includes/icons.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
{% endif %}
8181

8282
{% if site.theme_settings.nostr %}
83-
<li><a href="https://yakihonne.com/users/{{ site.theme_settings.nostr.npub }}" title="Nostr" target="_blank">{% include icons/nostr.svg %}</a></li>
83+
<li><a href="https://coracle.social/people/{{ site.theme_settings.nostr.nprofile }}" title="Nostr" target="_blank">{% include icons/nostr.svg %}</a></li>
8484
{% endif %}
8585

8686
{% if site.theme_settings.instagram %}

_posts/2018-01-14-how-to-take-notes-like-a-programmer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ Another approach could be a use of some tricky **fuzzy search** engine.
134134

135135
**UPDATE**: Actually the problem was my confusion about
136136
the [terminology](https://en.wikipedia.org/wiki/Quantile#Specialized_quantiles).
137-
So in *this* case the right solution is to add «quantile» keyword.
137+
So in *this* case the right solution is to add "quantile" keyword.
138138

139139
### Update Structure According to Your Mind Image
140140
Suppose you ain't able to find your note quickly, **even manually**. Possible reasons:

_posts/2024-09-26-installing-alpine-linux-on-pain-in-the-ass-hosting-providers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ iso="alpine-virt-${VERSION}-${ARCH}.iso"
3434
url="${MIRROR}/v${short_version}/releases/${ARCH}/${iso}"
3535

3636
apt -y install wget
37-
wget "${url}" "${url}.sha256" "${url}.asc" "https://alpinelinux.org/keys/ncopa.asc"
37+
wget "${url}"{,.sha256,.asc} "https://alpinelinux.org/keys/ncopa.asc"
3838
sha256sum -c "${iso}.sha256"
3939
gpg --import < ncopa.asc
40-
gpg --verify "${iso}.asc" "${iso}"
40+
gpg --verify "${iso}"{.asc,}
4141

4242
mount -t iso9660 "${iso}" /mnt
4343
cp -a /mnt/* /

_sass/includes/_share_buttons.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ ul.share-buttons {
6565

6666
@keyframes pulse {
6767
from {
68-
opacity: 0.7;
68+
opacity: 1;
6969
}
7070
to {
71-
opacity: 1;
71+
opacity: 0.7;
7272
}
7373
}

pages/sponsor.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,16 @@ Proprietary software they make is currently at its peak of
161161
[manipulative](https://www.reddit.com/r/paypal/comments/1hfg3jr/paypal_refuses_to_change_to_local_currency_at/)
162162
[practices](https://youtu.be/citnomJHr6I).
163163

164+
These "solutions" are no longer usable, at least not
165+
[without](https://github.com/ungoogled-software/ungoogled-chromium#readme)
166+
[tons](https://github.com/OhMyGuus/I-Still-Dont-Care-About-Cookies#readme)
167+
[of](https://github.com/dessant/buster#readme)
168+
[heavy](https://github.com/nang-dev/hover-paywalls-browser-extension#readme)
169+
[workarounds](https://github.com/jswanner/DontF-WithPaste#readme)!
170+
164171
[They](https://youtu.be/7LqaotiGWjQ?t=3426s) are so stuck
165172
in capitalistic [values](https://www.snopes.com/fact-check/sony-patent-mcdonalds)
166-
that barely leave room for long-term delivery of *real* innovations and positive life quality changes.
173+
and self-defense that they barely leave room for long-term delivery of *real* innovations and positive life quality changes.
167174

168175
Typical "new" software products are not new; it's basically blind mediocre ideas copy-pasting.
169176
Truly new software should attempt to introduce innovations that
@@ -178,9 +185,9 @@ When these companies make something that *seems* to be healthy and innovative—
178185
Independent FOSS developers can do something better. I'm targeting the following **principles**:
179186
- **Distraction Minimization**
180187
- 🧠 software must be [mentally](https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4183915/) [ecological](https://youtu.be/Iy7i9ru7HB8?t=15s) and intuitive; it should never intentionally <a href="/how-to-take-notes-like-a-programmer/#whats-the-point" target="_blank">interrupt</a> the creative process!
181-
- 🚫 no more popup traps, mental resource-wasting on CAPTCHA [imitation](https://futurism.com/ai-model-turing-test), sudden unwanted tutorials, [absurdly](https://www.facebook.com/help/124895950923762) <span class='no-wrap'>over-detailed</span> manuals and so on!
188+
- 🚫 no more mental resource-wasting on popup traps, CAPTCHA [{% include span_with_tooltip.html large="true" body="imitation" tooltip="CAPTCHA is useless: bots basically became indistinguishable from humans.<br>Time to change strategy: unexpected spammy load should be transformed into useful computations, with no harm to users, environment, or even businesses!" %}](https://futurism.com/ai-model-turing-test), sudden unwanted tutorials, absurdly <span class='no-wrap'>over-detailed</span> [{% include span_with_tooltip.html large="true" body="manuals" tooltip="Stop building the outdated and overcomplicated UI!<br>Well-designed, intuitive, AI-driven software <i>ideally</i> doesn't require any documentation!" %}](https://www.facebook.com/help/124895950923762) and so on!
182189
- **Data Sovereignty**
183-
- 🔒 *you* own your data, not third parties!
190+
- 🔒 *you* own your [data](https://martin.kleppmann.com/2019/10/23/local-first-at-onward.html), not third parties!
184191

185192
{::options parse_block_html="false" /}
186193
</div>

ru/pages/sponsor.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,15 @@ lang-en-uri: /sponsor/
162162
[манипулятивных](https://www.reddit.com/r/paypal/comments/1hfg3jr/paypal_refuses_to_change_to_local_currency_at/)
163163
<a href="/ru/ideas-for-foss-projects/?t=975" target="_blank">практик</a>.
164164

165+
Этими «решениями» уже стало невыносимо пользоваться, по крайней
166+
[мере](https://github.com/jswanner/DontF-WithPaste#readme)
167+
[без](https://github.com/ungoogled-software/ungoogled-chromium#readme)
168+
[кучи](https://github.com/OhMyGuus/I-Still-Dont-Care-About-Cookies#readme)
169+
[тяжеловесных](https://github.com/dessant/buster#readme)
170+
[костылей](https://github.com/nang-dev/hover-paywalls-browser-extension#readme)!
171+
165172
[Они](https://youtu.be/7LqaotiGWjQ?t=3426s) слишком зациклились
166-
на капиталистических [ценностях](https://www.snopes.com/fact-check/sony-patent-mcdonalds),
173+
на капиталистических [ценностях](https://www.snopes.com/fact-check/sony-patent-mcdonalds) и самозащите,
167174
едва ли оставляя возможность длительно предоставлять *реальные* инновации и позитивные изменения качества жизни.
168175

169176
Типичные «новые» программные продукты на самом деле не новые — это в основном слепое копирование идей сомнительного качества.
@@ -181,9 +188,9 @@ lang-en-uri: /sponsor/
181188

182189
- **Минимизация отвлечения внимания**
183190
- 🧠 ПО должно быть [экологичным](https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4183915/) [ментально](https://youtu.be/Iy7i9ru7HB8?t=15s) и понятным интуитивно; оно никогда не должно намеренно <a href="/how-to-take-notes-like-a-programmer/#whats-the-point" target="_blank">прерывать</a> творческий процесс!
184-
- 🚫 больше никаких всплывающих ловушек, трат ментальных ресурсов на решение [имитации](https://futurism.com/ai-model-turing-test) CAPTCHA, внезапных нежелательных туториалов, [абсурдно](https://www.facebook.com/help/124895950923762) подробных руководств и так далее!
191+
- 🚫 больше никаких трат ментальных ресурсов на всплывающие ловушки, [{% include span_with_tooltip.html large="true" body="имитацию" tooltip="Капча бесполезна: боты в основном уже <span class='no-wrap'>неотличимы от людей.</span><br>Время сменить стратегию: потенциально спамную нагрузку нужно превращать в полезные вычисления, не причиняя вред ни пользователям, ни окружающей среде, ни даже бизнесам!" %}](https://futurism.com/ai-model-turing-test) CAPTCHA, внезапные нежелательные туториалы, абсурдно подробные [{% include span_with_tooltip.html large="true" body="руководства" tooltip="Хватит плодить устаревшие и переусложненные UI!<br>Хорошо спроектированное и интуитивно-понятное ПО с ИИ <i>в идеале</i> вообще не нуждается в документации!" %}](https://www.facebook.com/help/124895950923762) и так далее!
185192
- **Суверенитет данных**
186-
- 🔒 *ты* владеешь своими данными, а не третьи лица!
193+
- 🔒 *ты* владеешь своими [данными](https://martin.kleppmann.com/2019/10/23/local-first-at-onward.html), а не третьи лица!
187194

188195
{::options parse_block_html="false" /}
189196
</div>

0 commit comments

Comments
 (0)