Senger CodeLab 🚀

: All Posts

How to parse unix timestamp to timeTime

How to parse unix timestamp to timeTime

Im trying to parse an Unix timestamp but I get out of range error That doesnt really makes sense to me because the layout is correct as in the Go docs package

Read more →

How to protect firebase Cloud Function HTTP endpoint to allow only Firebase authenticated users

How to protect firebase Cloud Function HTTP endpoint to allow only Firebase authenticated users

With the new firebase cloud function Ive decided to move some of my HTTP endpoint to firebase Everything works great But i have the following issue I have two

Read more →

How to set ssh timeout

How to set ssh timeout

Im executing a script connecting via passwordless SSH on a remote host I want to set a timeout so that if the remote host is taking an infinite time to run I

Read more →

How to undo a git pull

How to undo a git pull

I would like to undo my git pull on account of unwanted commits on the remote origin but I dont know to which revision I have to reset back to How can I just

Read more →

How to view log output using docker-compose run

How to view log output using docker-compose run

When I use dockercompose up I can see logs for all containers in my dockercomposeyml file However when I use dockercompose run app I only see console output

Read more →

Import two exported classes with the same name

Import two exported classes with the same name

In typescript using Angular 2 I need to import two classes with the same name but lying in different paths The project is quite too big that I find it hard to

Read more →

Is it a good practice to place C definitions in header files

Is it a good practice to place C definitions in header files

My personal style with C has always been to put class declarations in an include file and definitions in a cpp file very much like stipulated in Lokis answer

Read more →

Is there a way to do repetitive tasks at intervals

Is there a way to do repetitive tasks at intervals

Is there a way to do repetitive background tasks in Go Im thinking of something like Timerscheduletask delay period in Java I know I can do this with a

Read more →

Make error missing separator

Make error missing separator

I am getting the following error running make Makefile168 missing separator Stop What is causing

Read more →