shite
letsblockit
Our great sponsors
shite | letsblockit | |
---|---|---|
24 | 61 | |
181 | 797 | |
- | 6.0% | |
7.6 | 9.0 | |
3 months ago | 1 day ago | |
Shell | Go | |
GNU General Public License v3.0 or later | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
shite
-
Ask HN: What's the simplest static website generator?
Pandoc can be your friend. My site maker [1] is built around it.
I think a hundred or so well-chosen lines of your favourite scripting language can do wonders. Mine is ~300 lines of Bash because I over-engineered a thing or two for kicks. The core of it is maybe 50 lines.
[1] https://github.com/adityaathalye/shite
The README documents the architecture and rationale. Maybe it will help you figure out yours. Happy hacking!
-
Useful Uses of Cat
[1] https://evalapply.org
[2] https://github.com/adityaathalye/shite?tab=readme-ov-file#te...
-
500 Lines or Less – Writing a useful program in fewer than 500 line code – AOSA
Bookmarked! These look like amazing study projects; the kind one can copy and learn from. Quite like how they do it in art school. Each one of them looks like it solves a nontrivial problem, and edifies the reader on the basic contours/tenets of the problem/solution space.
I love this kind of stuff, because it shows one _can_ solve a pretty juicy problem with not that much code, honestly. Also because it suggests that the industrial-strength equivalent has a lot more in for use cases, corner cases, and/or optimisations that are not relevant for one's requirements (at least not yet, maybe not ever).
I aspire to write code like that. Useful, concise, but not obtuse. Some of my code is not as significant as those examples, and maybe falls short of my ideals, but it gets a lot done in well under 500 loc. e.g. my website maker in Bash [1] (hot-builds and hot-refreshes without JS), or the JS that drives text art animations for Hanukkah of Data [2].
[1] https://github.com/adityaathalye/shite is about 350 LoC counted this way (excluding the script containing HTML templates).
$ grep -E -v "^$|\\s?#" bin/{events,metadata,templating,utils,hotreload}.sh | wc -l
-
“Make” as a Static Site Generator
I love the code [1]. Mine [2] is a bit over engineered because I wanted hot-reloading (without JS), and it was a delightful yak shave.
But the basic idea is the same --- heredocs for templating, using a plaintext -> html compiler (pandoc in my case), an intermediate CSV for index generation.
Very nice!
[1] https://github.com/karlb/karl.berlin/blob/master/blog.sh
[2] https://github.com/adityaathalye/shite
- FLiP Stack Weekly 28 Jan 2023
- FLiP Stack Weekly 28-Jan-2023
- Show HN: Shite – little hot-reloadin' static site maker from shell
-
Show HN: Shite: The little hot-reloadin' static site maker from shell
xdotool emulates user actions under the X Window System (e.g. typing, mouse around, click etc.).
I'm using it to send keypresses to the browser, as you rightly observe.
So if I want to just reload a page, the browser gets F5.
To GOTO some page, it gets a stream of keystrokes for the URL characters and then Enter.
It's really that simple-minded, and it works!
This case statement covers my usage: https://github.com/adityaathalye/shite/blob/master/bin/hotre...
-
Pandoc [a universal document converter] 3.0
Pandoc powers my little static site maker:
cf. https://github.com/adityaathalye/shite/blob/master/bin/templ...
__shite_templating_compile_source_to_html() {
letsblockit
- Shutting down the letsblock.it project and its official instance
-
Ask HN: Looking for a project to volunteer on? (February 2024)
SEEKING VOLUNTEERS: https://letsblock.it - https://github.com/letsblockit/letsblockit/
A companion project for uBlockOrigin that curates a corpus of content blocking templates, and provides the server to create you personal list of content blocking rules. The official instance just hit 800 active lists and a lot of template suggestions have been filed recently.
The easiest way to contribute is to create new templates, fix or extend existing ones. You need to learn the uBlockOrigin syntax and how to properly target the right elements, happy to mentor! See recent PRs for examples and https://github.com/letsblockit/letsblockit/blob/main/data/fi... for documentation.
The server itself is built with Go and HTMX, it's pretty low-maintenance, but there's interesting improvements if you want to toy with it (need to open issues for these).
- Let's Block It
-
Irish State announce plan to build a porn preference register for most of the EU
I use a combination of:
- https://letsblock.it/ and Ublock Origin
- The Unhook plugin for Firefox
- Blocking channels on my YouTube account when I see something inappropriate
- Adguard Home also blocks certain channels
to try to moderate the YouTube content for my kids. It's not perfect, but it does get rid of a lot of garbage (like YouTube Shorts).
-
Show HN: uBlock Origin filters to remove distractions
You should submit these rules to https://letsblock.it ! AFAIK their distractions rules really only cover YouTube
-
Some veteran YouTube staff think Shorts might ruin YouTube
They're horrible.
Luckily you can use ublock origin and letsblockit, or other browser plugins, to completely erase them from YouTube.
https://letsblock.it
-
Ask HN: What cool software utilities have you created?
https://letsblock.it : it allows you to create your own content blocking rule list from a corpus or community-maintained templates. It allows you to hide pinterest and stackoverflow clones from search results, remove shorts and upcoming streams from youtube, and many more. The project is now two years old and sustaining a slow but steady growth with an active community.
- Let's Block It: Remove low-quality content and useless nags, focus on what matters. Make the web yours again with this collection of community-owned content filters.
-
How to hide the Like count on YouTube videos? [July 2023]
See suggestions from this Github thread.
-
I want help with this filter
If you have any question or suggestion, don’t hesitate to open an issue on GitHub for any question or bug, or send us an email at [email protected].
What are some alternatives?
shell-genie - Your wishes are my commands
hn-search - Hacker News Search
CameraTraps - PyTorch Wildlife: a Collaborative Deep Learning Framework for Conservation.
AdguardFilters - AdGuard Content Blocking Filters
nitter - Alternative Twitter front-end
block-the-eu-cookie-shit-list - Adblock / Adblock plus filter list for blocking cookie notifications
SirTunnel - Minimal, self-hosted, 0-config alternative to ngrok. Caddy+OpenSSH+50 lines of Python.
webannoyances - Fix and remove annoying web elements such as sticky headers, floating boxes, floating videos, dickbars, social share bars and other distracting elements.
imaginAIry - Pythonic AI generation of images and videos
AdblockRules - My adblock rules for use in Adguard and other platforms
logs-benchmark - Logs performance benchmark repo: Comparing Elastic, Loki and SigNoz
simple-translate - WebExtensions for translating text on web pages