HN user

bebrws

131 karma
Posts26
Comments35
View on HN
github.com 28d ago

Use Claude Chrome Extension from Cursor

bebrws
2pts1
bbarrows.com 1y ago

My comfortable hand held mouse

bebrws
3pts2
bbarrows.com 1y ago

Whisper.cpp and ChatGPT === Interview Helper?

bebrws
2pts2
bbarrows.com 1y ago

Run Last Shell Command by Hitting Enter a Few Times

bebrws
1pts1
bbarrows.com 1y ago

Node.js "preprocessor" script to log from comments

bebrws
1pts1
bbarrows.com 1y ago

Node.js PrePrcoessor – Extend Node.js to support macros/utility functions

bebrws
2pts2
bbarrows.com 1y ago

My Shell Script Version of Zed AI

bebrws
2pts1
bbarrows.com 2y ago

Show HN: Creating a Snake game clone with Rust/Bevy

bebrws
44pts11
bbarrows.com 3y ago

Getting around website paywalls with devtools alone

bebrws
169pts120
bbarrows.com 3y ago

Run your own ChatGPT(EleutherAI/GPT-j-6B) on your MacBook M1

bebrws
7pts2
bbarrows.com 3y ago

Use Chrome DevTools to navigate around website paywalls

bebrws
2pts3
www.npmjs.com 5y ago

React Component Testing Using WebPack and Puppeteer

bebrws
2pts1
bradbarrows.com 5y ago

Managing Kubernetes with Fzf

bebrws
1pts0
bradbarrows.com 5y ago

Why JavaScript's flatMap is so great

bebrws
2pts0
bradbarrows.com 5y ago

Python style list comprehensions in Javascript

bebrws
2pts0
bradbarrows.com 5y ago

Spawn shells and inspect Kubernetes resources with fzf

bebrws
1pts0
github.com 5y ago

Game of Life in Rust using gfx – high FPS

bebrws
1pts0
news.ycombinator.com 5y ago

Conway's Game Of Life in Rust using 2 different graphics libraries

bebrws
1pts0
bradbarrows.com 5y ago

Alacritty – Fastest OS X Terminal Emulator – Terminal like tmux/alacritty config

bebrws
16pts6
github.com 5y ago

Chrome Extension to fuzzy string search all bookmarks and history in

bebrws
1pts0
bradbarrows.com 5y ago

OS X – Script cycript to keep Chrome Debugger window always on top

bebrws
1pts0
bradbarrows.com 5y ago

Keep Chrome Debugger window always on top – OS X

bebrws
2pts0
bradbarrows.com 5y ago

Node command line tool to list GitHub repository traffic statistics

bebrws
2pts0
github.com 5y ago

An fzf clone written in nim, can be used as a library

bebrws
3pts0
bradbarrows.com 6y ago

Setup your own free Wiregaurd VPN in a few minutes

bebrws
2pts0
bradbarrows.com 6y ago

Using SQL to Add OS X Privacy Permissions for Screen Recording Jump Desktop

bebrws
1pts0

I find Claude Chrome's extension to be much more powerful than Cursor's current browser integration. Especially if I need to debug something that requires being logged in to a system that uses SSO for example. This repository will allow you to use Claude's Chrome extension from Cursor against the currently selected tab in your already-open default browser. I created this so that I could take advantage of Claude's Chrome extension from Cursor: Cursor calls a local helper script, the script activates the existing default Chromium browser session, opens the Claude side panel, sends a prompt, reads Claude's final response through macOS Accessibility, and returns that response to Cursor so Cursor can continue coding or editing files.

Using whisper.cpp's stream build I used a few keywords to decide when to send what data to chatGPT which is then written back to your terminal. Crazy with the $150 per Interview web application solutions I saw in the past.

It's as simple to use as running a build and run command.

After running a command in the terminal, I often find myself needing to run the same command again, without wanting or being able to easily re-type the command or use the arrow keys (think mobile). This post contains ZSH scripting that keeps track of the last non-empty ZSH command prompt/buffer and runs it whenever I send a few empty lines by pressing the enter key 2 times in a row.

Yes, I know we should all be good enough to not need to ever use console.log statements, or to even iterate for that matter but sometimes I find myself tired and working on a project and just want to double check my data structure is in the correct state. If I use console.log I risk the chance of forgetting that line of code and submitting it to LeetCode which will cause a failure. Using this comment based approach makes logging easier and is "LeetCode safe" in that no console.log statements will ever be executed.

In this blog post, I show how I created a preprocessor that takes any line starting with “// log -” and creates a temporary intermediary file where those lines are replaced with console.log statements to print any expressions following “// log -”. This approach is useful in several ways. It’s easier than using console.log directly, and when run without using the preprocessor, these log lines are simply ignored. The entire setup is straightforward, utilizing a Node.js environment variable/option to run the preprocessor.

Previously, I used a custom bash script to compile repository files into a single context file, but Zed AI’s implementation is far superior, offering a more streamlined and effective solution. But it never hurts to have an alternative method laying around. Like this little shell script..

This is the route I would usually prefer. However I was very happy I experimented with Bevy though just to see how powerful the type system and dependency injection ( https://promethia-27.github.io/dependency_injection_like_bev... ) in Rust can be.

It opened my eyes to a new style of game development and a new way to think about dependency injection and types.

I have always thought that a majority of the hardest software engineering problems relate in some way to gaming and when I see solutions like this it makes me think I am right.

Thanks tho! I'll def be checking that out.

I made a little proof of concept that used whisper cpp and ChatGPT to take “command” requests and generate Apple scripts which I could then run in OS X

It actually works somewhat well. I think with some more work and thought, something like this, could actually be useful.

Just saw this was for linux and Windows only

Into Thin AirPods 3 years ago

I had my phone stolen and basically did the same thing. I didn't want to approach anyone for fear of starting some altercation. Wish there was a better way to go about this.

With my phone, if I had another device maybe I could have made it make a sound and then started a conversation with the person that way? I didn't know who exactly had it, although I am pretty sure I saw the person just walk away with it. Wasn't sure enough to make an accusation though.

[dead] 3 years ago

Just was trying to get some Siri integration. Learned alot like about AWS Cognito. Got better with lldb and Frida.. Tried to document what I could

I tried to implement this using OpenAI's embeddings then using cosign similarity between produces vectors instead of the vector DB ( as shown in OpenAI's example code here ). I do the same thing where I take the highest ranking code snippets (vectors) and include them in a prompt to ChatGPT with an original prompt. My code is a mess since I just hacked it together after a long day of work but its a small file. Like 100 lines.

I used TreeSitter which I thought was pretty awesome though because it allows for parsing a TON of different languages. I had to parse the languages to create the different code snippet strings. I don't want to create a code snippet of half a function for example..

So TreeSitter parses the code into an AST and I send each different AST node to OpenAI to get the vector (I optimized this so multiple nodes of the same AST type are combined). Send the prompt to OpenAI to get a vector. Find the most similar code snippets to the prompt and include them at the top of a prompt to ChatGPT.

This is the same idea right? If anyones interested it can be found here: https://bbarrows.com/posts/using-embeddings-ada-and-chatgpt-...

https://github.com/bebrws/openai-search-codebase-and-chat-ab...

[dead] 3 years ago

Using FFMPEG to record a short audio clip, then using the openai CLI this post shows how to transcribe your audio and send it to ChatGPT using a short script.

[dead] 3 years ago

Quick script to record audio and send it off to OpenAI for transcription and then to ChatGPT This script records 10 seconds of audio using FFMPEG and then uses the openai cli tool for the rest.

[dead] 3 years ago

Step by step instructions on how to get the GPT-J 6B model running completely locally on a M1 Macbook with just released PyTorch support! Similar to running your own ChatGPT instance on your laptop.

With PyTorch now supporting M1 Macbooks I was able to run EleutherAI/gpt-j-6B locally. I do have an M1 with 64GB of RAM but I believe it only required around 25GB and with the environment variable I have documented it will use allow you to use CPU instead of CUDA I believe.

There are a ton of other approaches that would work with NodeJS that would be even more simple though right? The easiest or first that comes to mind is just have your function that does whatever functionality is required for creating this assetsManifest (whatever both compileServer and compileBrowser depend on). Lets call this createAssetsManifest. Then you have your 2 compile async functions but you just don't await on them and let them run without using the await keyword.

        const manifest = await createAssetsManifest();
        compileBrowser(manifest);
        compileServer(manifest);

I am wondering if since the creation of async/await that the idea behind callbacks and async operations in general in Node has been forgotten.

Not referring to the author or anyone in particular. Just a thought since these keywords might used so often by engineers new to Node that they might not have ever learned what came before?

MiniRust 4 years ago

The end of that first paragraph is beautifully written.