Sunday, 21 May 2023

Show HN: Pretty code snippets for PowerShell in the terminal https://bit.ly/45j3GCU

Show HN: Pretty code snippets for PowerShell in the terminal I had some fun learning to parse PowerShell code with the built-in abstract syntax tree for this one. I originally wrote it to add some color to the output in PowerShellAI. https://bit.ly/45wUfQu May 21, 2023 at 06:59AM

Show HN: SpaceBadgers – Free and Libre SVG Badges https://bit.ly/3BMQAAq

Show HN: SpaceBadgers – Free and Libre SVG Badges Greetings, Hacker News community! I am thrilled to present SpaceBadgers, a new free and open-source SVG badge generator I've been working on. It's located at badgers.space. SpaceBadgers is born out of the desire to offer more flexibility and customization for project badges, often used in open-source projects. It's fully open source, provided under the permissive MIT license, and will always be provided for free. The core badge worker is written in Rust, and so is the library behind it, which you can also find on crates.io under the name spacebadgers. I am excited to receive your feedback and suggestions. Check it out and let me know what you think in the comments. Contributions are also welcomed and appreciated. You can find the source code here: https://bit.ly/3ojni9g . https://bit.ly/3oldhsd May 21, 2023 at 12:54PM

Show HN: Summary GPT – host a bot to summary Text, URLs, PDFs and videos for you https://bit.ly/3MgC3By

Show HN: Summary GPT – host a bot to summary Text, URLs, PDFs and videos for you An AI-powered text summarization Telegram bot that generates concise summaries of text, URLs, PDFs and YouTube videos. https://bit.ly/3ItboAB May 21, 2023 at 05:06AM

Show HN: Reimplement the Embedded Security CTF Game in Elixir/LiveView https://bit.ly/3WnBlqS

Show HN: Reimplement the Embedded Security CTF Game in Elixir/LiveView I've heard good words about Elixir language and Phoenix/LiveView frameworks here in HN for quite sometimes, but haven't had any chance to use it at work. So, as an exercise, I decided to reimplement from scratch the famous https://bit.ly/3BIsgzB game (which I've been playing on and off for almost a decade). You can try playing it at https://bit.ly/3oiBkba https://bit.ly/3BLxLgU May 21, 2023 at 10:12AM

Show HN: Loofi – Our AI-Powered SQL Query Builder https://bit.ly/3IvjOrj

Show HN: Loofi – Our AI-Powered SQL Query Builder Hi HN Community, We're a team of software engineers who've experienced the complexity of crafting SQL queries. To address this, we've developed a tool that simplifies this process. Introducing Loofi, an AI-powered SQL Query Builder. Loofi streamlines query building and leverages AI algorithms for intelligent recommendations. We value community feedback and invite you to try out Loofi. Your thoughts and suggestions will help us improve our tool. Here's the link to Loofi: https://bit.ly/3Mgps1e For any questions or assistance, feel free to reach out. We're eager to engage with this community. Your valuable feedback is much appreciated! https://bit.ly/3Mgps1e May 21, 2023 at 03:19AM

Saturday, 20 May 2023

Show HN: Drift, a self-hostable Gist and pastebin https://bit.ly/431E24c

Show HN: Drift, a self-hostable Gist and pastebin https://bit.ly/3WqbBdK May 21, 2023 at 12:07AM

Friday, 19 May 2023

Show HN: YouTube Full Text Search – Search all of a channel from the commandline https://bit.ly/43a51Km

Show HN: YouTube Full Text Search – Search all of a channel from the commandline yt-fts is a simple python script that uses yt-dlp to scrape all of a youtube channels subtitles and load them into an sqlite database that is searchable from the command line. It allows you to query a channel for specific key word or phrase and will generate time stamped youtube urls to the video containing the keyword. https://bit.ly/43e1mLz May 20, 2023 at 07:18AM

Show HN: Nonius Clock https://bit.ly/43fnhSr

Show HN: Nonius Clock https://bit.ly/45gZ7ZE May 19, 2023 at 08:00PM

Show HN: A site with trolley problems about famous people https://bit.ly/45ePIC3

Show HN: A site with trolley problems about famous people https://bit.ly/45cmrYN May 20, 2023 at 01:11AM

Show HN: Swap.js – a JavaScript micro-framework (HTML fragments over the wire) https://bit.ly/3Orr1fK

Show HN: Swap.js – a JavaScript micro-framework (HTML fragments over the wire) Hi HN! I created this lib in the need of a simple and tiny framework to easily do AJAX-style navigation / replacement of fragments in the page, in a web application. For people who don't want to use client-side-rendering and complex frameworks à la React, there are nowadays a few "HTML-over-the-wire" libraries, like HTMX, Unpoly or this super-tiny one Swap.js :) One other key thing is that no external tool is needed: no bundler, no webpack, no TypeScript compiler, no minification needed. Just write HTML, JS (+ your preferred server-side language: PHP, Python, etc.) and it works. The framework makes use of fetch (of course) but also MutationObserver API to be able to launch actions when parts of the DOM change. Let me know what you think! https://bit.ly/3Os1DX9 May 18, 2023 at 07:04PM

Show HN: How to Prevent Prompt Injections https://bit.ly/41TgBZd

Show HN: How to Prevent Prompt Injections https://bit.ly/45eDWaP May 19, 2023 at 01:07PM

Show HN: Todo PWA with Pomodoro with keyboard friendly https://bit.ly/3Mk7LOn

Show HN: Todo PWA with Pomodoro with keyboard friendly https://bit.ly/3MiETGp May 19, 2023 at 09:35PM

Show HN: Numtease – My new number word puzzle game https://bit.ly/3BHA3h8

Show HN: Numtease – My new number word puzzle game https://bit.ly/3MC6d3H May 19, 2023 at 09:04AM

Thursday, 18 May 2023

Show HN: Midjourney-Python-API https://bit.ly/3InQanH

Show HN: Midjourney-Python-API This Python client is built for the unofficial MidJourney API, leveraging a Discord self bot and utilizing the Merubokkusu/Discord-S.C.U.M library. Please be mindful that there might be risks associated with the use of self bots, as per issue #66. Key Features: 1: Info retrieval 2: Imagine prompt 3: Image upscale and vectorization by label 4: All message returns via WebSocket, including banned words check and image processing 5: Auto reconnect WebSocket https://bit.ly/3Op2Zlr May 19, 2023 at 03:06AM

Show HN: Lunchtoast – a CLI tool for functional testing of console applications https://bit.ly/41Sb998

Show HN: Lunchtoast – a CLI tool for functional testing of console applications It helps to create tests that check program output with a simple test description format. It's written in C++20 and works on Windows and Linux. https://bit.ly/3pT2tSB May 18, 2023 at 11:28PM

Show HN: PAKman – A new build system built around Alpine Linux Packages https://bit.ly/3IoiaHV

Show HN: PAKman – A new build system built around Alpine Linux Packages https://bit.ly/3MGXRaU May 16, 2023 at 03:23PM

Show HN: Jesth – Next-level human-readable data serialization format https://bit.ly/439eZvC

Show HN: Jesth – Next-level human-readable data serialization format Hi HN ! I'm Alex, a tech enthusiast. I'm excited to show you Jesth, a next-level human-readable data serialization format. This project started out as a markup language for writing the docstrings of functions that would ultimately be consumed by a documentation generator. Basically the idea was to split a docstring into sections like Description and Parameters. Each section would consist of a header in square brackets and a body (lines of text between two headers). Here's what a docstring for a sum function would look like: This function takes in two integers a and b and returns their sum. [parameters] - a: First integer - b: Second integer [return] Sum of a and b The Description section in the example above is actually an anonymous section, i.e., a section with an empty header. Meanwhile, I was thinking of a way to automate part of my dev workflow by storing in a file commands grouped into tasks such as project creation, build, testing, release, et cetera. Similarly with the markup language for my documentation generator, I would use square brackets to define the tasks. Thus, a task would consist of a header and a body which would be a list of commands to be executed sequentially. I built this project and named it Backstage. Here is a hypothetical backstage.tasks file: [release] & test & generate_doc & git_stuff & build # upload to PyPI $ twine upload --skip-existing dist/* [git_stuff] $ git add . $ git commit -m {message} $ git push origin master The example above is illustrative only and would not work. It contains 2 sections "release" and "git_stuff". Running the "release" task from the command line is equivalent to sequentially executing the commands in the "release" section. The documentation generator and the scripting language, despite the obvious similarity in their formats, did not share any parsing code. So, to stop repeating myself, I created a file format and its library named Jesth which stands for "Just Extract Sections Then Hack". The library acts as an incomplete INI file parser that only hands the programmer the sections (as headers and their associated bodies which are lists of strings). No further interpretation of the data is done by the parser, allowing the programmer to unleash their creativity through useful hacks. In its latest iteration, Jesth has matured and also includes a proper and extensively tested hack to convert a compatible section into a dictionary data structure, making Jesth my de facto preferred format for config files. I find Jesth more readable than TOML, YAML, and JSON. Here, encoding a dictionary data structure in its own section with another section containing a prompt for ChatGPT: [prompt] I want you to act as a detective story writer. I will provide you with two dictionary data structures representing the profiles of two people. Your goal is to write a thrilling neo-noir story. My first request is: "guess who the killer and victim is from the profiles, then build a story that includes every detail of the profiles". [profile] # This section can be converted into a dictionary data structure name = 'Jane Doe' birthday = 2000-12-23Z10:17:37Z photo_jpg = (bin) VGhpcyBpcyBub3QgYSBwaG90by4uLiBCdXQgdGhhbmsgeW91 IGZvciB5b3VyIGludGVsbGVjdHVhbCBjdXJpb3NpdHkgOyk= --- books = (dict) romance = (list) 'Happy Place' 'Romantic Comedy' sci-fi = (list) 'Dune' 'Neuromancer' epitaph = (text) According to the law of conservation of energy, no a bit of you is gone; you are just less orderly. --- [profile] name = 'John Doe' birthday = null books = (list) 'American Predator' 'Mindhunter: Inside the FBI's Elite Serial Crime Unit' You can learn more by reading the project's README and playing with the demo. Let me know what you think of this project. https://bit.ly/3Oo7gFN May 18, 2023 at 06:08PM

Show HN: Open-Source ChatGPT Code Interpreter https://bit.ly/3IL5o6z

Show HN: Open-Source ChatGPT Code Interpreter Hi friends! I've been waiting for ChatGPT Code Interpreter access for so long that I decided to just build my own. I figured maybe some of you are in the same boat so decided to do it as an Open Source project. https://bit.ly/3pXjjj1 May 18, 2023 at 03:00PM

Show HN: A ChatGPT-powered colour palette generator https://bit.ly/3Bz5c6l

Show HN: A ChatGPT-powered colour palette generator https://bit.ly/3MePB0I May 18, 2023 at 02:07PM

Show HN: Is Bard Available in EU? https://bit.ly/41I3jyI

Show HN: Is Bard Available in EU? Wonder no more if Google Bard is available in the EU, you can check here. https://bit.ly/45ozlD4 May 18, 2023 at 12:15PM