Sometimes in working on your projects you need to undone some unwanted commits made to master branch. I will show how to do it with GitLab repo.

If you follow regular workflow with git reset to reset to some commit

git reset --hard <commit_hash>
git clean -f -d

and then…

--

--

--

--

Sometimes developers need to explore some JSON files. That can be quite tough and time comsuming. We can do it easier with command line tool jq.

First install it:

sudo apt updatesudo apt install -y jq

Run command:

jq '.' result.json

Result will be pretty nice looking

--

--

Here I will show how to use external libraries like boost in your project and compile it using gcc. I will show it on Ubuntu OS.

First install boost on Linux

sudo apt-get install libboost-all-dev

Now create some C++ script with boost headers

#include <iostream>
#include <boost/thread.hpp>
#include <boost/bind.hpp>
int main()
{
}…

--

--