GRPC fallback to Rest API with custom field names

When you generate JSON for Rest API from proto-file, protoc-gen-gofast generates field names for JSON in lowerCamelCase format while most of the Rest APIs use snake_case for that. And if you want to replace some legacy API with your new implementation without breaking backward compatibility, you need to fix it. There could be different ways …

Read more

Integration tests with testcontainers-go

Here is the go library that simplifies integration tests with docker containers — https://github.com/testcontainers/testcontainers-go. That’s how you can use it to test sql — https://github.com/testcontainers/testcontainers-go/blob/master/docs/examples/cockroachdb.md. Project documentation — https://golang.testcontainers.org/features/docker_compose/ The idea is to prepare the environment, build your app, then make requests and check the DB state.

Limit kids access to Android

You can use official apps for this: Family Link for Parents — https://play.google.com/store/apps/details?id=com.google.android.apps.kids.familylink and Family Link for Kids — https://play.google.com/store/apps/details?id=com.google.android.apps.kids.familylinkhelper. You need to create a family group, and all your family members will be shown here — https://families.google.com/families and here — https://play.google.com/store/account/family. If you have troubles with some member’s account while trying to add them …

Read more

How to update your k8s pod limits

Then search for memory (for instance) and update request/limit for it. When you quit, it will be saved automatically for you.

Test Push Notifications

https://github.com/onmyway133/PushNotifications

Load testing tools

https://yandex.ru/dev/tank/ [Tool | Free] https://jmeter.apache.org/ [Tool | Free] http://tsung.erlang-projects.org/ [Tool | Free] https://gatling.io/ [Tool | Free/$] https://k6.io/ [Tool | Free/SaaS] https://locust.io/ [Tool | Free] https://loader.io/ [SaaS | Free/$] https://artillery.io [Tool | Free/$] https://github.com/wg/wrk [Tool | Free]

Ubuntu — play games with joystick

I have Linux Mint, but it should fit any Ubuntu-based distributive.

«Awesome go» resources

A list of good resources for each go specific part — https://github.com/avelino/awesome-go. A list of good tools for go performance or just fast libs — https://github.com/cristaloleg/awesome-go-perf Security lists — https://github.com/guardrailsio/awesome-golang-security, https://github.com/Binject/awesome-go-security

Copy events from one calendar to another

If your employer does not let you import your work google calendar, you can do it manually all the time or try to automate it. I tried zappier for automation for a couple of weeks now. Works nice. https://zapier.com/apps/google-calendar/tutorials/automatically-copy-events-from-one-google-calendar-to-another https://zapier.com/blog/updates/703/google-calendar-integrations

Read logs from docker container