Better HN
topnewbestaskshowjobs
Log inSign up

muzzammildotxyz

35 karma · joined Jun 26, 2017 (9y ago) · 62 submissions

Website: https://muzzammil.xyz

GitHub: @muhammadmuzzammil1998

Twitter: @mmuzzammil1998

Submissions

1.

Show HN: Pack-src – pack source code into clean shareable ZIP(github.com ↗)

1 points · by muzzammildotxyz · 6mo ago · discuss

2.

Show HN: pack-src – pack source code into clean shareable ZIP(github.com ↗)

3 points · by muzzammildotxyz · 6mo ago · discuss

3.

Show HN: Headless-mermaid – A mermaid.js handler for server-side rendering(github.com ↗)

2 points · by muzzammildotxyz · 6y ago · discuss

4.

Show HN: JSON with Comments for Go(github.com ↗)

2 points · by muzzammildotxyz · 7y ago · discuss

5.

Show HN: Generate hashes of online resources(github.com ↗)

1 points · by muzzammildotxyz · 7y ago · discuss

6.

Show HN: Dson.go – Doge Serialized Object Notation in Go(github.com ↗)

2 points · by muzzammildotxyz · 8y ago · discuss

7.

Show HN: Dson.go – Doge Serialized Object Notation in Go(github.com ↗)

1 points · by muzzammildotxyz · 8y ago · discuss

8.

Show HN: Catsay – a cowsay clone with a cat(github.com ↗)

6 points · by muzzammildotxyz · 8y ago · discuss

comment 8y ago · link · parent

Please take a look at this:

https://github.com/muhammadmuzzammil1998/Log-mailer/commit/f...

comment 8y ago · link · parent

https://golang.org/pkg/encoding/json/#MarshalIndent :D

comment 8y ago · link · parent

That's great! :D Thanks!

comment 8y ago · link · parent

Yes, it was a great experience. Just made it to see if I could :)

comment 8y ago · link · parent

Just made it to see if I could :)

comment 8y ago · link · parent

actionscripted, you are a wizard! How did you guess that? :D

comment 8y ago · link · parent

Well, you caught me. I copied and pasted that line from Go Source comments :D

But hey, you can use 1h4ms6ns as intervals :D

Maybe I should parse days... Thanks for the Idea.

comment 8y ago · link · parent

Yup

comment 8y ago · link · parent

what @weavie said. :)

comment 8y ago · link · parent

Or maybe it's just that good :D

jk...

comment 8y ago · link · parent

Gee, thanks for the boost in confidence. :|

comment 8y ago · link · parent

Just made it to see if I could :)

comment 8y ago · link · parent

I just made it get the job done and email was the easiest way to do it. Also, I get emails pretty quickly, there isn't even a delay of 5 minutes.

Thanks for the concern :)

comment 8y ago · link · parent

Yes, these are valid concerns. 1) I don't know how to encrypt logs and send them. If you can help please open a PR on GitHub or walk me through it :)

2) How else should I store it? Should I encrypt the json file with a master key?

3) This is correct but I just wanted a quick way to do it :) Thanks for the concerns.

comment 8y ago · link · parent

No, I meant the readability in .json file. Should I care for that anyway?

Also, great website! :D

comment 8y ago · link · parent

Thanks for your suggestion. :)

comment 8y ago · link · parent

I concur. :D

comment 8y ago · link · parent

Thanks for the suggestion :D

I am not shipping it to any distro or something like that. I was using this for myself and just made it open source.

Thank you for taking your time and reviewing this. As for /r/golang, I will look into it. :)

comment 8y ago · link · parent

Thank you for taking your time to review my code. Yes, it is a beginner's project :D

1) How do I format the JSON for readability or should I ignore that?

2) Thanks for that. Didn't know about it. Any ideas on how I can fix that? Maybe I can check if it is a file and not a directory and ask for input again for y/n?

28.

Show HN: A program to email log files using Go(github.com ↗)

43 points · by muzzammildotxyz · 8y ago · 43 comments

29.

Need beta testers

3 points · by muzzammildotxyz · 8y ago · discuss

123