HackerTrans
TopNewTrendsCommentsPastAskShowJobs

adrianscheff

no profile record

Submissions

Show HN: AdCopyX – Winning Ads in Minutes

adcopyx.com
2 points·by adrianscheff·el año pasado·0 comments

Animal Themed Affirmations App, Using AI for Content

easyaffirm.com
1 points·by adrianscheff·hace 2 años·1 comments

[untitled]

1 points·by adrianscheff·hace 4 años·0 comments

[untitled]

1 points·by adrianscheff·hace 4 años·0 comments

Godot Signals In-Depth Guide

gamedev.live
2 points·by adrianscheff·hace 4 años·1 comments

Convenient Utils Linux. Finally, just 5 chars (showu) to see all users, haha

github.com
1 points·by adrianscheff·hace 5 años·0 comments

Text Processing Recipes. Vim,tr,cat,sort,shuf,seq,PR,fmt,cut,nl,sed,Awk,grep

github.com
4 points·by adrianscheff·hace 5 años·0 comments

Simple-Awk. A simple and practical guide to Awk

github.com
3 points·by adrianscheff·hace 5 años·1 comments

Useful sed scripts and patterns

github.com
528 points·by adrianscheff·hace 5 años·121 comments

Wizardly Tips Vim (powerful list of tips and tricks)

github.com
4 points·by adrianscheff·hace 5 años·0 comments

comments

adrianscheff
·hace 2 años·discuss
Hi! I made an affirmations web app, using AI generated photos of animals (playground), and mostly chatGPT for the affirmations themselves.

For those curios, the backend is Go+Echo+Templ, frontend is Materialize+jQuery.
adrianscheff
·hace 5 años·discuss
Hello! I'm the author. This is similar in vein to useful-sed, a surprisingly successful github repo (which can be found here https://github.com/adrianscheff/useful-sed).

If you have any questions, suggestions or simply feedback - let me know.

Thank you!
adrianscheff
·hace 5 años·discuss
Thanks, I've modified to use .sed scripts instead. I used bash scripts because I remembered (incorrectly it seems) that sed scripts were unsafe.
adrianscheff
·hace 5 años·discuss
Hey there! Thank you for the input! I'm sorry you feel that asking for donations is unwarranted. I agree wholeheartedly that FSF deserves all the love it can get. I'm not asking to get rich or take the spotlight - I'm asking so I can keep improving that guide & create more.

I didn't added explanations (although I wanted too) since this was intended as a quick tips page for sed. I think there are much better guides than I could ever make (including the info page). In a way it works better since it's more digestible.

Thank you for the link you provided - it looks awesome! I'll look into it and append the existing guide if needed (while giving credits of course)
adrianscheff
·hace 5 años·discuss
Thank you for the constructive feedback, I've corrected the mistakes pointed out. I've also changed -r to -E based on your (and some other people's) advice.
adrianscheff
·hace 5 años·discuss
Ha, you got me there. I remembered incorrectly that sed scripts where bad practice and one should use bash instead. I've corrected the mistake.

What other good practice suggestions do you have? (if you're comfortable answering and have the time)
adrianscheff
·hace 5 años·discuss
Thank you for your feedback! Personally I very rarely use the ; operator since it works badly with braces and commands that use files. However I've added an example using the ; operator.

PS: May I humbly point out that the command you provided will actually print up to line 10 and then a duplicate line. Like I said, unexpected (even though it seems logical). :)
adrianscheff
·hace 5 años·discuss
Haha, one of the reasons I wrote this. It's also a way of practicing and reminding myself sed.
adrianscheff
·hace 5 años·discuss
I'm glad to hear that. I'm learning (and re-learning) sed myself, specially after long periods of not using it. So in a way I've written it for me too.

Btw, there is one more use case of a variable delimiter which is more arcane (and you can combine it with the other custom delimiter) `sed -s '\_/bin/bash_s:grep:egrep:' myfile.txt`
adrianscheff
·hace 5 años·discuss
Thank you for the feedback and the constructive criticism. Regarding the hold space I found it very confusing to use and understand. IMO it represents the 80/20 of sed (80% effort for 20% results).

You're right, I'm using -r even when it's not necessary. To my defense I think it's a good habit to have since without it regex expressions are painful to write. I didn't considered that using -E it's a better choice but I'll correct that now. (one might argue again that typing -r is easier than -E :D ).

Regarding the definition of words - I also thought of that when I wrote that snippet. I know it's not the complete regex for a word and that word regex patterns might differ. And I was probably a bit lazy - but I'll correct it presently.

I'd also like to say that I didn't write this as an absolute and ultimate reference. If I'm honest I wrote this as much to teach others as to solidify this knowledge myself. Now since it seems it gained traction I'm kinda obligated to make this better, no? Darn. :)

PS: if you'd like to help me make this better please submit a pull request or leave a comment here. Looking at your profile I see that you try to limit your online time so I probably shouldn've asked. :P
adrianscheff
·hace 5 años·discuss
I'm seeing all kinds of negative feedback here but wasn't my case. (some people saying that it's created to steal your photos which is a bit absurd).

Sure enough, it asked me to create an account which is understandable, I don't complain. I have a multitude of Google accounts and I used one of them.

I waited for around 10-15 minutes and I used a photo of a statue of Caesar. The results were very, very impressive. https://imgur.com/WOeOYR3

Awesome job OP. There must be some amazing tech at work!
adrianscheff
·hace 5 años·discuss
Interesting and congratulations for launching! :)

ON a side note the bags look ugly, I was expecting them to be resized and appearing as held by hands. Instead I got this: https://imgur.com/a/xsJAKR6

Is this something you're aware of? PS: I really like the wrinkling on clothes.