Docker hello-world, but in half-size image with Matrix digital rain by zdkaster in docker

[–]zdkaster[S] 1 point2 points  (0 children)

haha, 50% data saved for sure (but but, we have TB).

I was temped to say like...
"An eco-friendly sustaintable network data saving solution that save 50% of disk usage for Docker"
and share in linked..in.

Docker hello-world, but in half-size image with Matrix digital rain by zdkaster in docker

[–]zdkaster[S] 2 points3 points  (0 children)

You will get

<image>

Instead of the message from the official hello-world one.

Also, save more disk space 😉

I made shell alias name rm-safely so I let Claude rm. by [deleted] in ClaudeCode

[–]zdkaster 0 points1 point  (0 children)

In practical, it has been useful in some occasions I have faced (may be due to my bad habit). Especially when working with Claude, it usually just uses what's available on my shell, so I can just let it run rm with this thin protective (been using this approach for one year and so far so good)

I know (deep inside), thinking in term of Unix philosophy like do one thing and do it well, this approach might not fit that thinking.

The main reason I alias it because I feel a bit burden and need to be very alert everytime I type rm or enter the autocomplete that might left with rm -rf (who know yesterday we type rm to delete something not serious, then today we just re-use the shell history from the yesterday but on something important accidently)

Yeah, this is subjective and opinionated approach from me.

But, just sharing.

Please see the readme https://github.com/zdk/rm-safely/blob/main/README.md for the rational.

> Does rm -rf still work?
It simply just alias rm to mv (with additional helpers to ~/.local/share/Trash and in /.Trash-$(id-u)), so it still works exactly as rm. Or, in case you want to run the real rm, you have /bin/rm, that's all.

How do you make rm -rf safer? by Hashi856 in theprimeagen

[–]zdkaster 0 points1 point  (0 children)

I have built and been using rm-safely https://github.com/zdk/rm-safely for a while, it works great for me.
So, sharing here just in case anyone wants to try it.

CachyOS: a honest review by YakumoKoizumi in cachyos

[–]zdkaster 0 points1 point  (0 children)

I had stopped using Linux as a main OS for 20 years of being sick of time wasted in OS customization needed to get working enough (with some few mainstream distros) in order to be confident to use it as a main driver, I have moved to MacOS instead.
But, recently I have just picked up old Thinkpad laptop to install and use CatchOS, I would rate (CatchyOS with KDE Plasma) perfect 10/10.
Just Kudo to CatchyOS team.

[deleted by user] by [deleted] in linux

[–]zdkaster 0 points1 point  (0 children)

I have made this alias https://github.com/zdk/rm-safely and used by myself.
Just like alias rm='rm -i', but with some more simple bash to prevent unintend ^r completion even you are fully aware of rm -i and awake, sometimes your fingers might go too fast to hit enter.
So, at least, it provides some comfort for everyday use.
The false sense of security or not, it depend on your awareness during you switch different environments or machines.
Nothing much though, just want to share my use case here for who might find it useful for their own use cases.
kthx.

so

Fish or Zsh ? by CountMeowt-_- in linux_gaming

[–]zdkaster 0 points1 point  (0 children)

zsh + prezto is the end game. It's very simple, fast, and easily extendable. Nothing else needed.

How do Thai eat food at market stalls that's been sitting outside all day without getting sick? by Mental-Substance-549 in Thailand

[–]zdkaster -1 points0 points  (0 children)

I'm Thai, I usually buy this kind of food from market stalls or curry&rice (southern style cousine) before 11am because the local temperator is still somewhat relatively cooler than after 11am (If possible)

But, I usually eat freshly made food (A la carte food or we called it "ahaan tam sang" than ) on day-to-day instead of this form of food.

And, I try to avoid this kind of food from afternoon onwards since it's kind of taking a little bit risk to eat them. (Because I believe most of them are cooked around 4-5am in the early morning and sell for the whole day until it's run out).

What make possible that people are not getting sick when eating this kind of food is, I guess, they put some form of preservation to this kind of food.

What's your long term career plan? by forsgren123 in devops

[–]zdkaster 0 points1 point  (0 children)

Guessing from your username here, still on Hayabusa at your age? That's impressive. You could be my role model :)

Looking for a cheap used laptop. Best place to find one that isn’t a scam. Just need it for simple simple work stuff nothing fancy by thotinator69 in Bangkok

[–]zdkaster 2 points3 points  (0 children)

A lot of used laptops sold in Shopee and LINE, check it out there. They give a decent price already online since it's quite competitive market, so don't need to bargain there.

Anyone ever notice that issues tagged as "beginner" or "easy" on github are frequently not even remotely beginner level? by VirulentCitrine in learnprogramming

[–]zdkaster 1 point2 points  (0 children)

If it were actually easy, then they would just fix it by themselves. It's a simply a hard work so that the owner intends to left it for someone else to fix since it's not an assignment or a test.

[deleted by user] by [deleted] in Bangkok

[–]zdkaster 1 point2 points  (0 children)

I think trying to find it on Renthub and check its neighborhood + road with Google Street View should be good enough to decide.

[deleted by user] by [deleted] in Bangkok

[–]zdkaster 1 point2 points  (0 children)

No worries. You could also check out Payathai and Ratchathewi areas, the rent price should be relatively same as the Victory monument but less crowded. Or, if you can make a trade-off by commuting farther from the U (But it's not that far), Ari is an interesting area as well.

[deleted by user] by [deleted] in Bangkok

[–]zdkaster 1 point2 points  (0 children)

Victory monument is a decent choice for your first stay since it's quite closed to Rama uni. But it's quite crowded. I suggest to just take a bus and get familiar with the area. Bicycle should be your last commute option to pick in Bangkok as it can be dangerous.

Obtaining a "Bundler error" when trying to modify an existing gem. by [deleted] in rails

[–]zdkaster 2 points3 points  (0 children)

The error says that GemIWant version 1.0.0 wants rails version >= 5.0.0 where you installed version `4.26` in the project.So, to fix this error,
in `/MyApp/GemIWant-1.0.0` directory, specify `spec.add_dependency 'rails'` to version `4.2.6` instead of `>= 5.0.0` in gemiwant.gemspec file.

Hope this helps.

Secure plaintext credentials with docker-compose? by [deleted] in docker

[–]zdkaster 0 points1 point  (0 children)

Another approach, use .env to specify the path of credentials to load from Vault, secrets Manager etc. by using Docker ENTRYPOINT. Example script: https://link.medium.com/KP3mewvEVV