Thursday, May 28, 2026

Kubectl copy list verify

 export ms1_dir="24624"

export ms2_dir="2327"


case "$1" in


  copy)

    echo "Copying file to pod..."

kubectl cp -n uatcom /home/dev-user-oss/OrderReasonMap.xml uatcom-uat-ms1:/tmp/vfs_cache_oracle/tmp_${ms1_dir}_osmmodel/OracleComms_OSM_O2A_COM_CSO_Solution/2.1.0.3.2/resources/Custom/CustomSolutionConfig/OrderReasonMap.xml

kubectl cp -n uatcom /home/dev-user-oss/OrderReasonMap.xml uatcom-uat-ms1:/tmp/vfs_cache_oracle/tmp_${ms1_dir}_osmmodel/OracleComms_OSM_O2A_COM_CSO_Solution/default/resources/Custom/CustomSolutionConfig/OrderReasonMap.xml

kubectl cp -n uatcom /home/dev-user-oss/OrderReasonMap.xml uatcom-uat-ms2:/tmp/vfs_cache_oracle/tmp_${ms2_dir}_osmmodel/OracleComms_OSM_O2A_COM_CSO_Solution/2.1.0.3.2/resources/Custom/CustomSolutionConfig/OrderReasonMap.xml

kubectl cp -n uatcom /home/dev-user-oss/OrderReasonMap.xml uatcom-uat-ms2:/tmp/vfs_cache_oracle/tmp_${ms2_dir}_osmmodel/OracleComms_OSM_O2A_COM_CSO_Solution/default/resources/Custom/CustomSolutionConfig/OrderReasonMap.xml

;;


  verify)

  echo -e "\n=======Timestamp check $(date)==========\n"

  echo -e "=======MS1==========\n"

  kubectl exec -n uatcom uatcom-uat-ms1 -- ls -ltr /tmp/vfs_cache_oracle/tmp_${ms1_dir}_osmmodel/OracleComms_OSM_O2A_COM_CSO_Solution/2.1.0.3.2/resources/Custom/CustomSolutionConfig/OrderReasonMap.xml

  echo -e "=======MS2==========\n"

  kubectl exec -n uatcom uatcom-uat-ms2 -- ls -ltr /tmp/vfs_cache_oracle/tmp_${ms2_dir}_osmmodel/OracleComms_OSM_O2A_COM_CSO_Solution/2.1.0.3.2/resources/Custom/CustomSolutionConfig/OrderReasonMap.xml

  ;;

  

  list)

    echo "Listing osmmodel directories..."

    echo -e "\n=======MS1 Cache======="

kubectl exec -n uatcom uatcom-uat-ms1 -- ls -ltr /tmp/vfs_cache_oracle

echo -e "\n=======MS2 Cache======="

kubectl exec -n uatcom uatcom-uat-ms2 -- ls -ltr /tmp/vfs_cache_oracle

echo -e "\n***** Update the $0 Script file with the model dir numbers ******\n"

echo -e "\n***** Current values are \n MS1=${ms1_dir} \n MS2=${ms2_dir}\n****** Needs an update ******\n"

    ;;



  *)

    echo "Invalid option"

    echo "Usage: $0 {copy|list|verify}"

    exit 1

    ;;


esac

Tuesday, March 3, 2026

4*4 Helper


Last 2 Edge pieces

UW => Top 2 rows to be rotated.

Rules : Unsolved edge pieces to be in same Rows with same color
Face the cube in such a way, both Unsolved edges to be kept on right side.

UW←
R↑, U←, R↓
F↻ (Clockwise),R↓,F↺ (Anti-Clockwise)
R↑,UW→


OLL Parity (Final Row + is not formed - 3 Edges are set except one Edge in Top Row For eg : Yellow last layer)

R or L => Block of 2 Columns to be rotated

U => Single Row to be rotated

X => Rotate the whole cube one time, Yellow facing away from you.

R↑ U2, X, R↑ U2, R↑ U2

R↓ U2,L↓ U2,R↓ U2

R↑ U2,

R↓ U2,R↓ U2

PLL Parity ( 2 Corners not solved)

r => 3rd column to be rotated

U => Top Row to be rotated

UW => Top 2 Rows to be rotated

r2, U2

r2, UW2

r2, UW2