Skip to content

Instantly share code, notes, and snippets.

View VikashSaharan1's full-sized avatar
💭
Searching new opportunity

Vikash Saharan VikashSaharan1

💭
Searching new opportunity
  • Veritech Info System Pvt. Ltd.
  • Banglore , India
View GitHub Profile
git config --get credential.helper
cmdkey /delete:LegacyGeneric:target=git:https://github.com
@VikashSaharan1
VikashSaharan1 / Git Tagging.md
Last active July 15, 2020 04:52
Git Tagging Information

How to add Git Tagging of your repo

Listing Your Tags

C:>repo_path>git tag --list or C:>repo_path>git tag -l

Creating Tags

Git supports two types of tags: lightweight and annotated.

1. Lightweight Tags:-

@VikashSaharan1
VikashSaharan1 / browser-cache-prevent.md
Created June 29, 2019 08:13
How to prevent Browser angular2

Two way we can prevent angular2 browser cache

  1. you can add a querystring to load your components Example:- @Component({ selector: 'app-test', templateUrl: './test.component.html?p=' + Math.random(), styleUrls: ['./test.component.css?p=' + Math.random()'], });

2.You can add in index.html this code

@VikashSaharan1
VikashSaharan1 / git-commands.md
Last active March 26, 2023 03:43
git commands list

What is a Git?

Git is a distributed version control system that tracks changes in any set of computer files, usually used for coordinating work among programmers collaboratively developing source code during software development. Its goals include speed, data integrity, and support for distributed, non-linear workflows. 

Git is a DevOps tool used for source code management. It is a free and open-source version control system used to handle small to very large projects efficiently. Git is used to tracking changes in the source code, enabling multiple developers to work together on non-linear development.

What is a Git protocol?

      This is a special daemon that comes packaged with Git; it listens on a dedicated port (9418) that provides a service similar to the SSH protocol, but with absolutely no authentication.
      The default SSH port (22) is dedicated to Git and SSH application network traffic.

How to Setup git in your machine

@VikashSaharan1
VikashSaharan1 / jenkins-port-change.md
Last active April 7, 2019 08:43
CHANGING PORT for Jenkins

if you want to change default port jenkins mac use these commands :-

$ sudo defaults write /Library/Preferences/org.jenkins-ci httpPort 7070
$ sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist
$ sudo launchctl load /Library/LaunchDaemons/org.jenkins-ci.plist

change port for jenkins window service when 8080 to new port

  1. Go to the directory where you installed the Jenkins (In default, it is under Program Files/Jenkins)
  2. Open the Jenkins.xml
  3. Search --httpPort=8080 and replace the 8080 with the new port number that you wish
  4. Press Win + R
@VikashSaharan1
VikashSaharan1 / ant-install.md
Created February 25, 2019 09:40
How to install ant on mac
@VikashSaharan1
VikashSaharan1 / JAVA_HOME.md
Created February 16, 2019 09:21
JAVA_HOME is not defined correctly on Mac OSX
    # First open yourr terminal and goto user home directory
      $ cd ~
      $ nano .bash_profile
    # After then put this line
      $ export JAVA_HOME=/usr/libexec/java_home
    # And then press Control + x and After then put this command
      $ source .bash_profile
@VikashSaharan1
VikashSaharan1 / ANGULAR-CLI.md
Last active February 3, 2024 06:16
Angular CLI commands list
Install Angular CLI
  npm install -g @angular-cli
Check Version
  ng version

Angular app initialize

@VikashSaharan1
VikashSaharan1 / npm-commands.md
Last active March 17, 2019 16:19
Most useful NPM commands list

NPM COMMANDS LIST

Check npm version

npm --version

NPM INSTALL

   # Latest npm installing
       
       npm install npm@latest