Have you wondered what it is one thing that separate human from rest of the diversity ?
It is the ability to communicate and preserve that communication, spread that communication. Infact the nature follows the law, if you know something you can’t keep it to yourself, you have to apply it and spread it. That’s why universe is expanding and time flies by. Nothing is still and is at rest, so must be your thoughts.
There are no stupid thoughts and ideas !
Though i could have given example of Gallileo and Leonardo da vinci. But it is the shear imagination of humans that have given birth to miracles and technology. One must live for creativity and its implementation. So what if you failed n times, n+1 time you will succeed provided you don’t repeat the mistakes.
Write like it’s worth, think like it will be implemented.
The mere fact that idea will communicated makes it serious thought. One care and try to polish that idea. Ideas need not to be unique, but progressive
Imagine a scenario where you would prefer to type instead of clicking. That day would be epic. As a developer, it’s our job to use and spend time on command interface it can be shell, bash, or it can be a editor like vim, emacs etc. Lot of optimization has been made since the beginning of these things. Today i will specifically talking about shell/bash prompt.
We generally use 20% of the features available there, to attain maximum efficiency in long term it learning rest 80% will help tremendously. So let’s get down to business.
I. Using search in prompt
One can search through the commands one has previously typed. Just use
, this would enable backward search such that one can search through logged commands.
II. Using alias for long commands or shortcuts
For this one needs to use .bashrc or .zshrc(more about this later) file in the
directory which is
. There you have to add a alias <alias_name>=<your long command>
for eg. for using p for python use
now you can just use p python_script.py to run the python script, or you can add your ssh command to server ip,which are pretty long. Isn’t that handy!
III. Configuring rsa key for auto pushing to github/git network.
You might be typing username and password every time you want to push to github. There is an easy way to do this automatic. One need to paste the key from ~/.ssh/ directory, keep in mind the key ends in .rsa . If you have one already generated and configured with ssh-agent then paste the key in github profile settings under SSH realted area.
If you haven’t done it yet, do it by using key-gen utility
-t is for defining the type of key which rsa in this case
-C is to providing commenting so that you can identify different keys for what we are using email id.
then add generated keys to ssh-agent using
And then follow the procedure to add it on github profile
Additonal link: github-ssh
IV. Using zsh instead of bash
zsh is an shell designed for interactive use, most of its features are from bash, so one can easily use as bash replacement.
One of most fruitful feature is one don’t need to type cd for changing the directory. Just type directory and enter & you are in directory.
Other feature is intelligent autocorrection, supposedly you made some type in case, zsh would auto correct it. For modifying the configuration use file at ~/.zshrc like adding alias or export or path.
V. Using oh-my-zsh framework for zsh
oh-my-zsh is most popular command line utility framework on github. It has premade zsh configuration which you would have to write otherwise in bashrc/zshrc files. you can use lot of themes from lot of community themes.
A screenshot of my terminal using oh-my-zsh is given below
Some useful mentions
I can see full path of my working directory
I can see git repository branch, i am working upon
I can see time stamp for each command
also if my git repos has been modified and there are uncommitment changes, i see all that on one terminal.
Problem arises when you don’t get to know why my program dysfunctional , inspite of correct logic . The problem may be with memory handling or in the thread handling . Learning syntax is half part , gaining proficiency is another part .
What exactly is memory management ?
In C/C++ assigning memory & handling threads can PITA until one reach a level of experience .
Let’s go by an example:
The above code has two errors . It doesn’t pops up during compilation and during execution .
First one : assigning out of bound index of array_alloc a value i.e array_alloc
Second one : not freeing the allocated memory resulting in memory leak .
###Valgrind to rescue !
By definition : The Valgrind tool suite provides a number of debugging and profiling tools that help you make your programs faster and more correct. The most popular of these tools is called Memcheck. It can detect many memory-related errors that are common in C and C++ programs and that can lead to crashes and unpredictable behaviour.
To rescue onself run the executable using valgrind command
The result is as following
There are two errors : Heap error for invalid assign & Leaks relating lost memory .
Valgrind can also be misused to profile your code (pun intended )
Further Valgrind can also be used for Bounty programs (like google chrome).
There are other tools for debugging like GDB which is very elaborate & pro-like . Apart from that Valgrind is there .
As pointed out what’s better than finding out bugs as quickly without any pain .
So who are Brilliant jerks (someone awesome at coding/hacking?)
Yes , they are top coder people , algorithmic strong and overrunning , specialist in their areas but with an collaboration problem with them . They get arrogant for their material and are blame gamers .
This philosphy is very much followed and applicable to startup culture and growth culture companies . Startup is not looking for brilliant geek but also for a team player , who can effectively communicate with the team and maintain the integrity. A culture where you don’t aim at others for the problem , a culture you believe in peer review system .
How to handle them?
The thing is one can’t just trust them the best way is just to avoid these people because it is very much important to preserve the existing resources and something which can go side by side with them . The collaboration part is most important .
Filtering out soon ?
So how one filter them out , it’s simple you can smell them out during the personal interview . Whether the person is trustful ,making false statement & commiting their own mistakes .
Growth is buzz word in todays IT world especially startup world & culture, if one is not continously growing , that is endangering sign. Either someother company may take over you like the cases happened for Kodak. So growth hacking is like “MOVE FAST & BREAK THINGS”. One need to evolve and growt from/with the existing products and service. Its like branching out .
How to Growth hacking?
The hacking word isn’t misleading, infact it is the inspiration for the Growth Culture . It isn’t easy to continously Rise high & higher , so one need to do it either by hook or by crook . That all is matter to find way between the hurdles. So having a hackers way to do the stuff isn’t bad at all. Further this talent isn’t easily visible just through face to face interview generally & one can’t simple induce it just that . So just watch & observe precisely to find it .
One may definitely argue and fight for the cons but the truth is Growth hacking or other alternative Productivity is addictive habit , one you are into it , one does go for it everyday & everytime.
And ofcourse there are options to rollback if anything goes wrong .
Finding solution any-how is main motive ,it can done through being creative or just using the conventional methods.