Posts

Image
                 Configuring a github access token  STEP 1 : Install xclip for copying the token to clipboard( you can skip this if you know how to copy it manually) sudo apt update sudo apt install xclip STEP 2: Generate an ssh key, in your terminal type ssh-keygen accept defaults as the token is being generated, finally you will be given the location of the private key and public key(ends with .pub) generated. STEP 3: copy the public key to clipboard xclip -selection clipboard < /home/your-user/.ssh/id_rsa.pub STEP 4: Go to github.com->settings-> SSH and GPG then generate new ssh key and paste your copied key. STEP 5: (OPTIONAL) write a custom script to simplify cloning using your key. in the terminal type: touch clone;    inside this file put the following NB clone can be any name #!/bin/sh git clone $1 --config core.sshCommand="ssh -i ~/.ssh/id_rsa"   also in the above text replace id_rsa(private key) with the one you generated(the name you saw when you generat
Image
  Teaching Smart People How to Learn by Chris Argyris From the Magazine (May–June 1991)     Any company that aspires to succeed in the tougher business environment of the 1990s must first resolve a basic dilemma: success in the marketplace increasingly depends on learning, yet most people don’t know how to learn. What’s more, those members of the organization that many assume to be the best at learning are, in fact, not very good at it. I am talking about the well-educated, high-powered, high-commitment professionals who occupy key leadership positions in the modern corporation. Most companies not only have tremendous difficulty addressing this learning dilemma; they aren’t even aware that it exists. The reason: they misunderstand what learning is and how to bring it about. As a result, they tend to make two mistakes in their efforts to become a learning organizatio
Image
 12 Factors of a Scalable Microservice . I. Codebase One codebase tracked in revision control, many deploys A twelve-factor app is always tracked in a version control system, such as Git , Mercurial , or Subversion . A copy of the revision tracking database is known as a code repository , often shortened to code repo or just repo . A codebase is any single repo (in a centralized revision control system like Subversion), or any set of repos who share a root commit (in a decentralized revision control system like Git). There is always a one-to-one correlation between the codebase and the app: If there are multiple codebases, it’s not an app – it’s a distributed system. Each component in a distributed system is an app, and each can individually comply with twelve-factor. Multiple apps sharing the same code is a violation of twelve-factor. The solution here is to factor shared code into libraries which can be included through the dependency manager . There is
  How to hide credentials in application.properties create env.properties add it to .gitignore env.properties after that inside it fill the credentials DB_DATABASE =NameofyourappSavedIntoYourDB DB_USER =yourUsername DB_PASSWORD =SuperStrongPassword API_KEY =superkey import it in application.properties this will enable to access it but still not committing the credentials spring .config .import =file:env .properties spring .datasource .url =jdbc: h2 :file:~/${DB_DATABASE} spring .datasource .username =${DB_USER} spring .datasource .password =${DB_PASSWORD}

Questions you should try to answer before meeting any Venturre capitalist.

 Questions you should try to answer before meeting any Venture Capitalist.     Nothing is more instrumental for the startup success than being ready reckoner of information. Doing your homework before meeting an investor improves possibilities for investments. Every investor is human. Investing in startup is more an art than science. There are no formulas or algorithm. Decisions are driven by gut once they hear the startup pitch. The purpose of every meetings is to say enough to get the investor to want to take a next meeting with you. It should say something insightful, or be intriguing to the investor so that they are drawn in and want to know more. There is no scientific study on below list or it's a comprehensive list nor it's foolproof list. It is through my personal journey, experience after investing in 150+ startups individually in last 11 years and 50 startups through 100X.VC Nailing your short pitch or one-liner is an important part of the fundraising
Image
  Why should you choose yarn over npm   What is Yarn? Yarn is a JavaScript package manager created by Facebook. Yarn stands for Yet Another Resource Negotiator. It provides similar functionalities as NPM. It is an alternative to NPM when installing, uninstalling, and managing package dependencies from the NPM registry or GitHub repositories. Installation NPM is bundled with Node.js Runtime . It is Node.js Default Package Manager. In other words, when you install Node.js , NPM gets installed. To install a package using NPM, you use the syntax below. npm install <package name> . The package name can be any package you want to use in your project. For example, to install Express run npm install express . Some more distinct NPM package installation include: npm installs <package name> -- global . These are packages you install into your computer system’s local path and not your project location. Such packages can be used or accessed by any project you create.
Image
  C++ Core Guidelines     March 11, 2021 Editors: Bjarne Stroustrup Herb Sutter This is a living document under continuous improvement. Had it been an open-source (code) project, this would have been release 0.8. Copying, use, modification, and creation of derivative works from this project is licensed under an MIT-style license. Contributing to this project requires agreeing to a Contributor License. See the accompanying LICENSE file for details. We make this project available to "friendly users" to use, copy, modify, and derive from, hoping for constructive input. Comments and suggestions for improvements are most welcome. We plan to modify and extend this document as our understanding improves and the language and the set of available libraries improve. When commenting, please note the introduction that outlines our aims and general approach. The list of contributors is here . Problems: The sets of rules have not been completely checked for completeness, consiste