Friday, September 17, 2021

various Git Commands

Clone a Repository

 git clone https://github.com/OCV/pat.git


List of Branches

 git branch -a

Checkout a Brach

 git checkout BranchName


Clean the files created by you 

git clean -f   --- to clean files 

git clean -n -f ---list files before you clean....


Pull new contents from Remote to local

git pull branchName

 

Reset the local branch - undo all changes in local

git reset --hard feature/barnchName  --- to repoint to begining.

 git reset --hard origin/master

 git show-branch

Sunday, August 1, 2021

del command prompt doesn't delete directory - use rd instad

 


If you use del with a directory name then it will delete the files in the directory. The directory specified is not deleted.


If a folder name is given instead of a file, all files in the folder will be deleted, but the folder itself will not be removed.

To delete both directories and the files and subdirectories use rd (an alias for rmdir):



Sunday, June 3, 2018

KeyStore.kdb - How to list the certificates and Expiry Dates via command line

Please subscribe on my YouTube Channel.


 ramit.girdhar@ in [~]

$ sudo su idsinst1                        -- comment sudo in as admin or root user.

$ gsk8capicmd_64 -cert -list -db /opt/ibm/ldap/sdskeystore.kdb
Source database password : passw0rd

Certificates found
*****Masked data******
*********list of certificates ***********

The default password for  keystore file (*.kdb) is passw0rd.
If this doesn't work, find the correct password if you are unable to find the password, you are better off creating a new *.kdb file and add certificates to it.


How to Check the Certificate Expiry Data via command line

gskcapicmd -cert  -details  -label <Certificate Name>-db key.kdb

Sunday, May 27, 2018

Cryptography - Encrptiion - Decryption - Cipher - CipherText.




In cryptographyencryption is the process of encoding a message or information in such a way that only authorized parties can access it and those who are not authorized cannot. 

Encryption does not itself prevent interference but denies the intelligible content to a would-be interceptor. 

In an encryption scheme, the intended information or message, referred to as plaintext, is encrypted using an encryption algorithm – a cipher – generating ciphertext that can be read only if decrypted. 


Sunday, April 29, 2018

Adsense - Ad units disappear


The ads stop showing because ad unit goes idle. Means it won't show up in your Adsense account unless you click the 'advanced filters' link and then select the option to show idle ad units.

The review process usually takes at least three weeks, and during that phase ads, don't show up, so relevant units are supposed to go idle (and thus disappear from default view in your account). 

If Google decide, after the review, that your site is suitable for Adsense, then they will begin to show up again. 

Sunday, April 22, 2018

SharePoint - KPI Traffic Light - RAG Indicator

Copy and Paste Below


="<DIV style='font-weight:bold; font-size:24px; font-size:24px; color:"&CHOOSE(LEFT(Status,1),"Green","Red","yellow")&";'>•</DIV>"


To Center Align the contents use below


="<DIV style='font-weight:bold; font-size:24px; font-size:24px;text-align: center; color:"&CHOOSE(LEFT(Status,1),"Green","Red","yellow")&";'>•</DIV>"

Saturday, December 2, 2017

NTFS Missing Free Space- Windows



Quick Solution.

The issue was Shadow Copy Storage in my case.

Run the following command on command prompt.

VSSADMIN LIST SHADOWSTORAGE

Go to step 3 below for more information.



NTFS Missing Free Space- Windows

There could be various reasons which could account for Free disk space usage calculation discrepancy.

First

check to see if your files are all actually visible with the current user account and Explorer settings.  Uncheck the “Hide protected operating system files” and select “Show hidden files and folders”.  When this is completed, look at the disk size again.


Does this accounts for the missing space No, try Step 2.


Second

Run CHKDSK and save the output.  The summary information at the end is what we want to see.


Based on above CHKDSK output we can account for metadata usage by adding up the following.


Still missing Space Yes, then Try step 3

Third)

Is Volume Shadow Copy enabled on ANY of the volumes?
Run the following command on command prompt.

VSSADMIN LIST SHADOWSTORAGE





For above output, you could see that C drive is blocking around 82 GB of disk space to store Shadow Copy on G drive.

This was the issues that I was facing.