HackerTrans
TopNewTrendsCommentsPastAskShowJobs

bebrws

no profile record

Submissions

Use Claude Chrome Extension from Cursor

github.com
2 points·by bebrws·21 วันที่ผ่านมา·1 comments

My comfortable hand held mouse

bbarrows.com
3 points·by bebrws·2 ปีที่แล้ว·2 comments

Whisper.cpp and ChatGPT === Interview Helper?

bbarrows.com
2 points·by bebrws·2 ปีที่แล้ว·2 comments

Run Last Shell Command by Hitting Enter a Few Times

bbarrows.com
1 points·by bebrws·2 ปีที่แล้ว·1 comments

Node.js "preprocessor" script to log from comments

bbarrows.com
1 points·by bebrws·2 ปีที่แล้ว·1 comments

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

bbarrows.com
2 points·by bebrws·2 ปีที่แล้ว·2 comments

My Shell Script Version of Zed AI

bbarrows.com
2 points·by bebrws·2 ปีที่แล้ว·1 comments

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

bbarrows.com
44 points·by bebrws·2 ปีที่แล้ว·11 comments

[untitled]

1 points·by bebrws·3 ปีที่แล้ว·0 comments

[untitled]

1 points·by bebrws·3 ปีที่แล้ว·0 comments

[untitled]

1 points·by bebrws·3 ปีที่แล้ว·0 comments

[untitled]

1 points·by bebrws·3 ปีที่แล้ว·0 comments

[untitled]

1 points·by bebrws·3 ปีที่แล้ว·0 comments

Getting around website paywalls with devtools alone

bbarrows.com
169 points·by bebrws·3 ปีที่แล้ว·120 comments

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

bbarrows.com
7 points·by bebrws·3 ปีที่แล้ว·2 comments

Use Chrome DevTools to navigate around website paywalls

bbarrows.com
2 points·by bebrws·3 ปีที่แล้ว·3 comments

[untitled]

1 points·by bebrws·4 ปีที่แล้ว·0 comments

comments

bebrws
·21 วันที่ผ่านมา·discuss
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.
bebrws
·2 ปีที่แล้ว·discuss
Handheld, or best on the lap. Has some nice zoom and scroll functionality.
bebrws
·2 ปีที่แล้ว·discuss
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.
bebrws
·2 ปีที่แล้ว·discuss
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.
bebrws
·2 ปีที่แล้ว·discuss
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.
bebrws
·2 ปีที่แล้ว·discuss
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.
bebrws
·2 ปีที่แล้ว·discuss
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..
bebrws
·2 ปีที่แล้ว·discuss
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.
bebrws
·2 ปีที่แล้ว·discuss
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
bebrws
·3 ปีที่แล้ว·discuss
Just some calming awesomeness?
bebrws
·3 ปีที่แล้ว·discuss
Reminds me of The Expanse when the DJ makes music from Eros
bebrws
·3 ปีที่แล้ว·discuss
Fire the miiiiissssillllleeeezzzzz
bebrws
·3 ปีที่แล้ว·discuss
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.
bebrws
·3 ปีที่แล้ว·discuss
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
bebrws
·3 ปีที่แล้ว·discuss
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...
bebrws
·3 ปีที่แล้ว·discuss
From what I understand this seems useful if you have a model that will accept a large or unlimited number of tokens. I was looking into doing the same thing with ChatGPT and went with ada to find snippets related to the prompt and then to include those with a prompt to ChatGPT: https://bbarrows.com/posts/using-embeddings-ada-and-chatgpt-...

Does ChatGPT 4 now accept more tokens maybe?
bebrws
·3 ปีที่แล้ว·discuss
Using OpenAI's brand new API's to search through any of your local codebases (that ChatGPT is not trained on!). This is what Github CoPilot View is working on as well actually: https://githubnext.com/projects/copilot-view/

I am very happy with the results.
bebrws
·3 ปีที่แล้ว·discuss
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.
bebrws
·3 ปีที่แล้ว·discuss
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.
bebrws
·3 ปีที่แล้ว·discuss
Added this comment to the post if that is ok. Let me know here if it isn't. Thank you!