├── App_Development └── Andriod_App │ └── README.adoc ├── Async_Programming └── README.md ├── Automotive └── Autosar │ └── README.md ├── BlockChain ├── Ethereum │ └── README.md └── README.adoc ├── Build-System └── Cmake │ ├── Commands │ └── README.md │ ├── Examples │ ├── Porting │ │ └── Windows_to_Linux │ │ │ └── README.md │ └── d-b-32 │ │ └── CMakeLists.txt │ └── README.md ├── DS_Questions ├── Algorithms │ ├── Backtracking │ │ ├── README.md │ │ ├── backtracking.jpeg │ │ └── backtracking1.jpeg │ ├── Binary_Search │ │ └── README.adoc │ ├── Boyer_Moore │ │ ├── Find_Majority_Element │ │ │ └── README.adoc │ │ └── README.md │ ├── DFS │ │ └── README.md │ ├── Divide_and_Conquer │ │ └── README.md │ ├── Dynamic_Programming │ │ ├── README.adoc │ │ └── nth-fibonacci.JPG │ ├── Graphs │ │ └── Ordering │ │ │ └── Toplogical_Sort │ │ │ ├── Other_algo.md │ │ │ └── README.adoc │ ├── Greedy │ │ └── README.md │ ├── IntervalScheduling_or_IntervalGreedy │ │ └── README.md │ ├── README.md │ ├── Recursion │ │ └── README.md │ ├── Sliding_Window │ │ └── README.md │ └── Traversals │ │ ├── BFS │ │ ├── Graphs │ │ │ └── Iterative │ │ │ │ └── README.md │ │ └── README.md │ │ ├── DFS │ │ └── Graphs │ │ │ └── README.md │ │ ├── Graph_Traversals │ │ └── README.adoc │ │ └── README.md ├── Data_Structures │ ├── Graphs │ │ ├── ConnectedComponents_DisjointSet │ │ │ └── README.md │ │ ├── Creating_Represent_Directed_Undirected.md │ │ ├── Directed_Undirected │ │ │ ├── Directed │ │ │ │ └── De_Bruijn_Graph │ │ │ │ │ ├── README.md │ │ │ │ │ └── de_Bruijn_graph.JPG │ │ │ └── Hypercube │ │ │ │ ├── From_Point_to_Tesseract.gif │ │ │ │ └── README.md │ │ └── README.adoc │ ├── Hash_Tables │ │ ├── Implementations │ │ │ ├── 2-left_2-Choice_HashTable │ │ │ │ ├── 2-left-hashing.JPG │ │ │ │ └── README.md │ │ │ ├── Cuckoo_Hashing │ │ │ │ └── README.md │ │ │ └── d-left-hashing │ │ │ │ └── README.md │ │ ├── README.adoc │ │ ├── hashtableExample.c │ │ └── images │ │ │ └── ht_implementation_array_of_linked_lists.jpg │ ├── Linked_Lists │ │ ├── Copy │ │ │ └── Copy_List_with_Random_Pointer.adoc │ │ ├── Delete │ │ │ ├── Delete_Node_in_a_LL_when_head_not_given.adoc │ │ │ ├── Middle │ │ │ │ └── Forward_list-O(n).md │ │ │ ├── Remove_Nth_Node_From_End_of_List.adoc │ │ │ └── Remove_Present_if_Greater_present_on_right.adoc │ │ ├── Doubly_LinkedList │ │ │ └── Using_Double_Pointer │ │ │ │ └── AddDelete_AfterPosition.md │ │ ├── Find │ │ │ ├── Middle │ │ │ │ ├── Find Middle Node.md │ │ │ │ └── Middle_of_the_Linked_List.adoc │ │ │ └── Palindrome_Linked_List.adoc │ │ ├── Loop │ │ │ └── Linked-list-cycle.adoc │ │ ├── Merge │ │ │ ├── 2_sorted_linked_lists.md │ │ │ ├── Merge_In_Between_Linked_Lists.adoc │ │ │ ├── Merge_k_Sorted_Lists.md │ │ │ └── Two-forward_lists.cpp │ │ ├── Numbers │ │ │ ├── Add_Two_Numbers_II.md │ │ │ ├── Double_a_Number_Represented_as_a_Linked_List.adoc │ │ │ └── add_two_numbers.md │ │ ├── Print │ │ │ └── Flatten_Nested_List_Iterator.adoc │ │ ├── README.adoc │ │ ├── Reverse │ │ │ ├── Reverse-sublist-inside-ll.md │ │ │ ├── Reverse.adoc │ │ │ └── print-reverse-without-reversing.cpp │ │ ├── Sort │ │ │ └── Singley linkedlist in constant time.md │ │ ├── Split_Rearrange_Partition │ │ │ ├── Partition_list.adoc │ │ │ └── Split_Linked_List_in_Parts.adoc │ │ ├── browser-history_lc.md │ │ ├── insert │ │ │ └── Insert Greatest Common Divisors in Linked List.adoc │ │ ├── intersection │ │ │ ├── README.md │ │ │ └── using_hash.md │ │ └── rotate │ │ │ └── linkedlist-by-k-positions.md │ ├── Monotonic_Stack_Queue │ │ └── README.adoc │ ├── Probabilistic_Data_Structures │ │ ├── Bloom_Filter │ │ │ ├── Characteristics_of_BF │ │ │ │ └── README.md │ │ │ ├── False_Positive │ │ │ │ └── README.md │ │ │ ├── Implementations │ │ │ │ └── Compressed_Bloom_Filter │ │ │ │ │ └── README.md │ │ │ ├── Operations_Insert_Delete_Union │ │ │ │ ├── Pseudo_code │ │ │ │ │ └── README.md │ │ │ │ └── README.md │ │ │ └── README.md │ │ └── README.md │ ├── Queue │ │ ├── Implement_Queue_using_Stacks.adoc │ │ ├── Priority_Queue │ │ │ ├── README.adoc │ │ │ ├── images │ │ │ │ ├── max-heap.PNG │ │ │ │ └── t │ │ │ ├── maxHeap.md │ │ │ └── minHeap.cpp │ │ └── README.md │ ├── README.md │ ├── Stacks │ │ ├── 3-stacks-using-1-array.cpp │ │ ├── Design a Stack With Increment Operation.adoc │ │ ├── Questions │ │ │ ├── Stack_using_two_queues.adoc │ │ │ └── minStack.md │ │ └── infix-to-postfix.cpp │ └── Trees │ │ ├── BinaryTree │ │ ├── Ansectors │ │ │ ├── Lowest_Common_Ansector.md │ │ │ ├── Maximum_Difference_Between_Node_and_Ancestor.adoc │ │ │ └── kth_Ansector_of_Node_in_BT_using_Binary_Lifting.md │ │ ├── Balanced │ │ │ └── Balanced_Binary_Tree.md │ │ ├── Compare │ │ │ └── Leaf_Similar_Trees.adoc │ │ ├── Convert │ │ │ └── to_Doubly_LL │ │ │ │ └── using-inorder.cpp │ │ ├── Create │ │ │ ├── Create_Binary_Tree_From_Descriptions.adoc │ │ │ ├── bt_using_array.md │ │ │ └── using-struct.md │ │ ├── Delete │ │ │ └── Delete_Nodes_And_Return_Forest.adoc │ │ ├── Distance_Path_Cost │ │ │ ├── Nodes_at_Distance_K.md │ │ │ ├── Path_Cost │ │ │ │ ├── LongestUniValuePath_On1Side.md │ │ │ │ ├── LongestUniValuePath_OnBothSide.md │ │ │ │ ├── MinCostPath-nChildren.md │ │ │ │ ├── Print_all_paths.adoc │ │ │ │ └── Sum_Root_to_Leaf_Numbers.adoc │ │ │ ├── Sum │ │ │ │ └── Range_Sum_of_BST.adoc │ │ │ └── maximum_path_sum.cpp │ │ ├── Find_in_bt │ │ │ ├── Amount_of_Time_for_Binary_Tree_to_Be_Infected.adoc │ │ │ ├── Find_Bottom_Left_Tree_Value.adoc │ │ │ ├── Good_Nodes_Count_nodes_having_highest_val_on_path.md │ │ │ ├── Linked List in Binary Tree.adoc │ │ │ ├── Pseudo-Palindromic_Paths_in_a_Binary_Tree.adoc │ │ │ └── tree-part-of-another-tree.c │ │ ├── Flip │ │ │ ├── Check-FlipEquivalent-BT.md │ │ │ ├── README.md │ │ │ └── flip-binary-tree.cpp │ │ ├── Fold │ │ │ └── foldable_bt.cpp │ │ ├── Height_Diameter │ │ │ ├── DiameterOf_Binary_Tree.adoc │ │ │ ├── Maximum_Depth_of_BinaryTree.md │ │ │ ├── Minimum_Depth_of_Binary_Tree.md │ │ │ └── height-of-tree.c │ │ ├── Identical │ │ │ └── 2_trees_are_identical_or_not.adoc │ │ ├── Invert.md │ │ ├── Print_show │ │ │ ├── Find_Leaves_of_Binary_Tree.md │ │ │ ├── Mirror │ │ │ │ └── symmetrical-mirror_of_self.c │ │ │ └── nodes_at_same_level.cpp │ │ ├── README.md │ │ ├── Rope_Cord │ │ │ ├── Cord_CharAtNthIndex_delete_substring.md │ │ │ ├── Modified_cord_CharAtNthIndex_delete_substring.md │ │ │ └── README.md │ │ ├── Search │ │ │ └── linked_list_in_bt.cpp │ │ ├── Serialize_Deserialize_bt │ │ │ └── README.md │ │ ├── Traversal │ │ │ ├── BFS │ │ │ │ ├── BFS_levelOrder.md │ │ │ │ └── Maximum_Level_Sum_of_a_Binary_Tree.md │ │ │ ├── Inorder │ │ │ │ ├── inOrder_preOrder_postOrder.c │ │ │ │ └── vector_of_InorderTraversal.adoc │ │ │ ├── Spiral │ │ │ │ ├── EvenOddTree │ │ │ │ │ └── EvenOddTree.adoc │ │ │ │ ├── LeftToRight_LevelByLevel │ │ │ │ │ └── README.md │ │ │ │ └── ZigZag-LeftToRight_RightToLeft │ │ │ │ │ ├── README.md │ │ │ │ │ └── ZigZag_LeftToRight_RightToLeft.jpg │ │ │ ├── Vertical_Order_Traversal.md │ │ │ └── preorder │ │ │ │ └── Construct_String_from_Binary_Tree.adoc │ │ ├── Types_Variants │ │ │ ├── Butterfly_Network │ │ │ │ ├── Butterfly_Network.jpg │ │ │ │ └── README.md │ │ │ └── Merkle_Tree.adoc │ │ ├── Valid │ │ │ └── Graph_Valid_Tree.md │ │ ├── View │ │ │ ├── Bottom │ │ │ │ └── bottom_view_of_bt.cpp │ │ │ ├── Left │ │ │ │ └── left_view_of_bt.cpp │ │ │ ├── Right │ │ │ │ └── right_view_of_bt.cpp │ │ │ └── Top_view_of_bt.md │ │ └── connect_nodes_at_same_level.cpp │ │ ├── M-Ary_Trees │ │ ├── B+Tree │ │ │ └── README.md │ │ └── Quad_Tree │ │ │ └── README.md │ │ ├── README.md │ │ ├── SelfBalancedBST │ │ └── README.md │ │ ├── Trie │ │ ├── README.md │ │ └── images │ │ │ ├── t │ │ │ └── trie.JPG │ │ ├── binary-search-tree │ │ ├── Find_in_BST │ │ │ ├── Minimum │ │ │ │ └── Minimum_Absolute_Difference_in_BST.md │ │ │ ├── Node_Closest_to_Target.md │ │ │ └── Sum_of_all_nodes_within_range.md │ │ ├── Number_of_Ways_to_Reorder_Array_to_Get_Same_BST.md │ │ ├── README.md │ │ ├── create-findMinMax.md │ │ ├── isBSTorNot.c │ │ └── k-d_k-DimensionalTree │ │ │ └── README.md │ │ ├── images │ │ ├── cbt.JPG │ │ └── t │ │ └── python │ │ ├── tree-bfs.py │ │ └── tree-inorder.py ├── Questions │ ├── Divide │ │ └── Divide2Integers.md │ ├── DrawPattern │ │ └── H-Tree.md │ ├── FileHandling │ │ ├── Email │ │ │ ├── Count_Occurences_of_A_Email_in_File.md │ │ │ ├── Count_Valid_Emails_in_File.md │ │ │ ├── Eliminate_Delete_Emails_from_txt_or_Html.md │ │ │ └── Modify_emailsURLs_from_HTML_files.md │ │ ├── File_Having_Multiple_Coloumns_Find_new_value_from_2_cols.md │ │ ├── IP_Port_Check_Host_Reachable.md │ │ ├── Java │ │ │ └── RW_toFrom_File.md │ │ ├── ParseFile_DumpInJsonXML_boost │ │ │ ├── CMakeLists.txt │ │ │ ├── Display │ │ │ │ ├── CMakeLists.txt │ │ │ │ ├── inc │ │ │ │ │ └── Display.h │ │ │ │ └── src │ │ │ │ │ └── Display.cpp │ │ │ ├── Driver │ │ │ │ ├── CMakeLists.txt │ │ │ │ └── main.cpp │ │ │ ├── Parser │ │ │ │ ├── CMakeLists.txt │ │ │ │ ├── inc │ │ │ │ │ └── Parser.h │ │ │ │ └── src │ │ │ │ │ └── Parser.cpp │ │ │ ├── README.md │ │ │ ├── Tests │ │ │ │ ├── CMakeLists.txt │ │ │ │ ├── inc │ │ │ │ │ └── tests.h │ │ │ │ └── src │ │ │ │ │ └── test1.cc │ │ │ ├── common │ │ │ │ └── inc │ │ │ │ │ ├── common.h │ │ │ │ │ ├── exception.h │ │ │ │ │ └── null_pointer_exception.h │ │ │ └── input.txt │ │ ├── PrintFastestToSlowestDianosaurs_fromCSV.md │ │ ├── README.md │ │ ├── Read_LOGS_Create_Structure.md │ │ ├── Tail_Implementation.md │ │ └── Top_3_Most_Repeated_Words_In_Paragragh.md │ ├── Graphs │ │ ├── Clone_Graph.md │ │ ├── Find │ │ │ ├── Directed_Graph │ │ │ │ ├── Acyclic │ │ │ │ │ ├── All_Ancestors_of_a_Node_in_a_Directed_Acyclic_Graph.adoc │ │ │ │ │ ├── All_Paths_From_Src_to_Dst.md │ │ │ │ │ ├── All_Possible_Recipes_From_Given_Supplies.md │ │ │ │ │ ├── All_delayed_Flights.md │ │ │ │ │ ├── Destination_City.adoc │ │ │ │ │ └── Linked_List_Intersection.md │ │ │ │ ├── Cyclic │ │ │ │ │ ├── Celebrity_Outdegree0_Indegree_n-1.md │ │ │ │ │ ├── Cheapest_Flights_Within_K_Stops_Shortest_path_from_src_to_dst_with_k_or_less_edges.adoc │ │ │ │ │ ├── CoursesSchedule-1_Detect_cycle_Directed_Graph.md │ │ │ │ │ ├── CoursesSchedule-2_Topological_Sort.md │ │ │ │ │ ├── Detect_cycle_in_directed_graph.md │ │ │ │ │ ├── Dump_All_paths_Reconstruct_Itinerary.adoc │ │ │ │ │ ├── Evaluate_Division_Paths_are_quotient.md │ │ │ │ │ ├── Find_Eventual_Safe_States.md │ │ │ │ │ └── RaceCar.md │ │ │ │ ├── Graph_Transpose.cpp │ │ │ │ ├── Is_Node_Reachable.md │ │ │ │ ├── MotherVertex_Kosaraju_Algorithm.cpp │ │ │ │ └── Order_of_alphabets_in_Alien_Dictionary.md │ │ │ └── Undirected_Graph │ │ │ │ ├── Bipartite_BiGraph │ │ │ │ ├── README.md │ │ │ │ └── bipartitegraph.jpg │ │ │ │ ├── Cycle_in_undirected_graph.md │ │ │ │ ├── Maximal_Network_Rank │ │ │ │ └── README.adoc │ │ │ │ ├── Min_degree_of_connected_trio │ │ │ │ ├── README.md │ │ │ │ └── connected_trio.png │ │ │ │ ├── Minimum_Height_Tree │ │ │ │ ├── README.md │ │ │ │ └── minimum_height_tree1.jpg │ │ │ │ ├── No_of_Operations_to_Make_Network_Connected.md │ │ │ │ ├── Number_of_Connected_Components.md │ │ │ │ ├── Number_of_edges.md │ │ │ │ ├── Path_from_Src_to_dst │ │ │ │ └── Find_if_Path_Exists_in_Graph.adoc │ │ │ │ └── Types_of_graph │ │ │ │ └── Star_Graph │ │ │ │ └── Find_Center_of_Star_Graph.adoc │ │ └── Print │ │ │ └── Min_Spanning_Tree │ │ │ └── Prim_Algo │ │ │ ├── Adjacency_list.cpp │ │ │ └── MinHeap.cpp │ ├── Number │ │ ├── Bitwise │ │ │ ├── Bitwise_AND_of_Numbers_Range.adoc │ │ │ ├── Counting_Bits.adoc │ │ │ ├── Minimum Bit Flips to Convert Number.adoc │ │ │ ├── Minimum_Flips_to_Make_a_OR_b_Equal_to_c.md │ │ │ └── Number Complement.adoc │ │ ├── Delete_and_Earn_or_Max_Gains.md │ │ ├── Fibonacci_Number.md │ │ ├── Find_the_Pivot_Integer.adoc │ │ ├── Minimum_Cost_Climbing_Stairs.adoc │ │ ├── Minimum_Moves_to_Reach_Target.md │ │ ├── Power_of_4.adoc │ │ ├── Square-Root-Integer.md │ │ ├── Sum_of_Square_Numbers.adoc │ │ └── Tribonacci_Number.adoc │ ├── Permutation_Combination │ │ ├── Coin_Change_2.adoc │ │ ├── Combinations │ │ │ ├── Combination_sum │ │ │ │ ├── README.md │ │ │ │ └── combination_sum_bt_graph.jpg │ │ │ ├── Generate_All_Combinations.md │ │ │ ├── Letter_Combinations_of_a_Phone_Number │ │ │ │ ├── README.md │ │ │ │ └── images │ │ │ │ │ ├── Letter_combination_of_a_phone_number-2347.jpg │ │ │ │ │ └── Letter_combination_of_a_phone_number.jpg │ │ │ ├── Number_of_Dice_Rolls_With_Target_Sum.adoc │ │ │ ├── combination_sum_2.adoc │ │ │ ├── combination_sum_2 │ │ │ │ └── combination_sum_2-bt-tree.jpg │ │ │ └── combination_sum_3.md │ │ ├── No_of_Ways_to_Climb_ith_Stairs_1or2Steps.adoc │ │ ├── Permutations │ │ │ ├── All_Unique_Permutations.adoc │ │ │ ├── All_permutations.md │ │ │ ├── Next_Greater_Permutation.md │ │ │ └── alternating-parity-permutation.md │ │ └── README.md │ ├── Random │ │ ├── Design_Hit_Counter.md │ │ ├── Implement_Class │ │ │ ├── Logger_Rate_Limiter.md │ │ │ ├── RandomisedSet_Insert_Delete_GetRandom_in_O1.adoc │ │ │ └── Underground_System │ │ │ │ └── README.md │ │ ├── LRUCache │ │ │ ├── lru_cache_key_and_value.md │ │ │ ├── lru_cache_key_only.md │ │ │ └── lru_leetcode.md │ │ ├── Perfect_Squares.adoc │ │ ├── Power │ │ │ └── Power_x_to_n.md │ │ ├── adam_number.cpp │ │ ├── bitwise_binary_gap_within_integer.c │ │ ├── fibonacci-series.cpp │ │ ├── power_puff_girls.cpp │ │ ├── ssl-server-client │ │ │ ├── c++ │ │ │ │ ├── README.md │ │ │ │ ├── certAndKeys │ │ │ │ │ ├── client.crt │ │ │ │ │ ├── client.csr │ │ │ │ │ ├── client.key │ │ │ │ │ ├── server.crt │ │ │ │ │ └── server.key │ │ │ │ ├── ssl-client.cpp │ │ │ │ └── ssl-server.cpp │ │ │ ├── client-notsending-itsCerts │ │ │ │ ├── SSL-CLIENT │ │ │ │ ├── test-ssl-client.c │ │ │ │ ├── test-ssl-client.c-Working-3Dec │ │ │ │ ├── test-ssl-server.c │ │ │ │ └── test-ssl-server.c-Working-3Dec │ │ │ ├── client-sending-itsCerts │ │ │ │ ├── SSL-CLIENT-SENDING-CLIENT-CERTIFICATE │ │ │ │ ├── SSL-SERVER │ │ │ │ ├── test-ssl-client-Sending-Client-Certificate.c │ │ │ │ └── test-ssl-server.c │ │ │ └── keyAndCerts │ │ │ │ ├── ssl-client-certandkey.crt │ │ │ │ ├── ssl-client-certandkey.csr │ │ │ │ ├── ssl-client-key.pem │ │ │ │ ├── ssl-server-certandkey.crt │ │ │ │ └── ssl-server-certandkey.srl │ │ └── win-or-loose-villian-player-game.c │ ├── Strings │ │ ├── 2D-Grid │ │ │ ├── Accounts_Merge.md │ │ │ ├── SearchWord_in_2DGridOfChars-4Directions.md │ │ │ └── SearchWord_in_2DGridOfChars-8Directions.md │ │ ├── 2D-Plane │ │ │ └── Return-True-if-cross-own-path.adoc │ │ ├── Add │ │ │ ├── Add_2_Ints_Given_as_strings.md │ │ │ └── Digit_Sum_of_String.md │ │ ├── Anagrams_Pangrams │ │ │ ├── 1. Check_Input_String_is_Panagram_or_not.cpp │ │ │ ├── 2. Delete_All_Anagrams_From_array_of_strings.cpp │ │ │ ├── Anagrams │ │ │ │ ├── Count_Anagrams_in_Dictionary.md │ │ │ │ ├── Group_Anagram.adoc │ │ │ │ ├── Remove_All_Anagrams_Keeping_1st.md │ │ │ │ └── Remove_Neighbouring_Anagrams.md │ │ │ └── README.md │ │ ├── Arrange_Shuffle_Organize_Remove │ │ │ ├── Backspace_String_Compare.adoc │ │ │ ├── PigLatin_GoatLatin_Language.md │ │ │ ├── README.md │ │ │ ├── Rearrange_Reformat_Redistribute_Recreate │ │ │ │ ├── Custom_Sort_String.adoc │ │ │ │ ├── License_Key_Formatting.md │ │ │ │ ├── Neighbour_char_not_same │ │ │ │ │ ├── Diverse_Happy_String.md │ │ │ │ │ ├── Max_Length_of_Concatenated_Str_with_Unique_Characters.adoc │ │ │ │ │ └── Recrete_String_Neighbour_chars_Not_same.adoc │ │ │ │ ├── Phone_Number.md │ │ │ │ ├── README.md │ │ │ │ ├── Rearrange_Tasks.adoc │ │ │ │ ├── Redistribute_Spaces_Between_Words_Equally.md │ │ │ │ ├── Sort_Characters_By_Frequency.adoc │ │ │ │ ├── StringAsPerIndicesArray_ShuffleString.md │ │ │ │ ├── Text_Justification.adoc │ │ │ │ └── Zero_Ones │ │ │ │ │ └── Maximum_Odd_Binary_Number.adoc │ │ │ ├── Redistribute_Characters_to_Make_All_Strings_Equal.adoc │ │ │ ├── Remove │ │ │ │ ├── AdjacentUpperLowerCaseLetters_GreatString.md │ │ │ │ ├── CharsFromStrings2MakeEqual_DeletionDistance.md │ │ │ │ ├── Min_Deletion_Cost_to_Avoid_Repeating_Letters.md │ │ │ │ ├── Min_Deletions_to_Make_Character_Frequencies_Unique.md │ │ │ │ ├── Minimum_Time_to_Make_Rope_Colorful.adoc │ │ │ │ ├── Palindromic_string_by_removing_1o2_characters.md │ │ │ │ ├── README.md │ │ │ │ └── n_Digits_From_No_to_make_Min.md │ │ │ ├── Reorder_Data_in_Log_Files.md │ │ │ └── Swap_2_entries_in_Sorted_Array.md │ │ ├── Binary │ │ │ ├── 1. Add_2_Binary_Strings.md │ │ │ ├── Create_Series_of_Strings_Find_kth_bit.md │ │ │ ├── Minimum_Changes_To_Make_Alternating_Binary_String.adoc │ │ │ ├── No_of_steps_to_Reduce_Number_in_Binary_to_0.md │ │ │ └── No_of_steps_to_Reduce_Number_in_Binary_to_1.md │ │ ├── Compare │ │ │ └── Isomorphic_Strings.adoc │ │ ├── Convert │ │ │ ├── Buddy_Strings.md │ │ │ ├── Convert_Word1_to_Word2_in_Min_Operations.md │ │ │ ├── Evaluate_Reverse_Polish_Notation.adoc │ │ │ └── ToInt │ │ │ │ ├── Roman_to_int.md │ │ │ │ ├── String-to-Integer-(atoi).md │ │ │ │ └── Sum of Digits of String After Convert.adoc │ │ ├── Count │ │ │ ├── 1.Most-k-Frequent-Words.md │ │ │ ├── AnalyzeUserWebsiteVisitPattern_Top3Websites.md │ │ │ ├── Count the Number of Consistent Strings.adoc │ │ │ ├── Min_Number_of_Opertions_to_Convert_start_to_end_Time.md │ │ │ ├── Unique_Email_Addresses.md │ │ │ ├── Unique_Morse_Code_Words.md │ │ │ └── Ways_to_Select_Buildings.md │ │ ├── EncodeDecode_EncryptDec_CompDecompress │ │ │ ├── Compress_Decompress │ │ │ │ ├── Compression │ │ │ │ │ ├── a3c9b2c1_to_a3b2c10.md │ │ │ │ │ └── aabcccccaaa_to_a2b1c5a3.md │ │ │ │ └── Decompression │ │ │ │ │ ├── 2[xyz]4[a]10[c]_to_xyzxyzaaaacccccccccc.md │ │ │ │ │ └── 3[a2[c]]_to_accaccacc_Nested.md │ │ │ └── Encode_Decode │ │ │ │ ├── Total_Possible_ways_to_Decode.adoc │ │ │ │ └── Using_ASCII.md │ │ ├── Implementations │ │ │ └── own_strcpy.cpp │ │ ├── Length_Find │ │ │ ├── Find_Common_Characters.adoc │ │ │ ├── First_Unique_Character_in_a_String.adoc │ │ │ ├── Length │ │ │ │ └── Length_of_Last_Word.adoc │ │ │ ├── Longest_Common_Prefix.md │ │ │ ├── Longest_String_Chain.md │ │ │ ├── Minimum_Length_of_String_After_Deleting_Similar_Ends.adoc │ │ │ ├── Minimum_Time_Difference.md │ │ │ ├── Number_of_Laser_Beams_in_a_Bank.adoc │ │ │ ├── Shortest_Path_Src_to_Dest_Using_Dictionary.md │ │ │ ├── Time_based_Key_value_store.md │ │ │ └── search_suggestions_system.md │ │ ├── Lexicographical │ │ │ ├── README.md │ │ │ └── Verifying_an_Alien_Dictionary.md │ │ ├── OPERATIONS │ │ │ └── README.md │ │ ├── Palindromes │ │ │ ├── 2. Longest_NonContigious_Palindromic_Substring.md │ │ │ ├── Find_First_Palindromic_String_in_the_Array.adoc │ │ │ ├── Longest_Continious_Palindromic_Substring.md │ │ │ ├── Longest_Palindrome.adoc │ │ │ ├── Unique_Length-3_Palindromic_Subsequences.adoc │ │ │ ├── Valid_Palindrome │ │ │ │ └── AlphaNumeric_Characters_Ignore_other.md │ │ │ └── Valid_Palindrome_delete_atmost_1_char.md │ │ ├── Permutation_Combination │ │ │ └── Combination │ │ │ │ └── Print_all_Combinations.md │ │ ├── Permutations │ │ │ ├── 1. Print_All_Permutations.md │ │ │ ├── 2. Two_Strings_Permutation_of_Each_Other.md │ │ │ ├── 3. Check_String_of_char_have_Palindrome.md │ │ │ ├── Count_All_Permutations.adoc │ │ │ └── Permutation_in_String.md │ │ ├── Prefix_Suffix │ │ │ └── Longest_Prefix_Which_Is_Also_Suffix.md │ │ ├── README.md │ │ ├── Random │ │ │ ├── 1. Print_Tag_in_New_Languge_HRML.md │ │ │ └── OrderedStream-Class.md │ │ ├── Replace │ │ │ └── Replace_Words.adoc │ │ ├── Reverse │ │ │ ├── 1. String_of_Chars_seperated_by_space.md │ │ │ ├── README.md │ │ │ ├── Reverse Substrings Between Each Pair of Parentheses.adoc │ │ │ ├── Reverse_Part_of_vector_anonmize_Email.md │ │ │ ├── Reverse_Prefix_of_Word.adoc │ │ │ └── Reverse_String.adoc │ │ ├── SubString_SubSequence │ │ │ ├── Find_The_Secret_Word.md │ │ │ ├── README.md │ │ │ ├── SubSeq │ │ │ │ ├── Append_Characters_to_String_to_Make_Subsequence.adoc │ │ │ │ ├── Find_the_Difference.adoc │ │ │ │ ├── IsSubsequence.adoc │ │ │ │ ├── Longest_Common_SubSequence_in_2_strings.adoc │ │ │ │ └── Longest_SubSeq_in_Dictionary_thru_Deleting.md │ │ │ ├── SubString_Search_Algos │ │ │ │ ├── KMP.md │ │ │ │ ├── Naive_BruteForce.md │ │ │ │ ├── README.md │ │ │ │ └── Rabin_Karp.md │ │ │ ├── SubString_SubArray │ │ │ │ ├── Count_Freq_of_SubstringNeedle_in_Haystack.md │ │ │ │ ├── Count_No_of_Substrings_With_Only_1s.md │ │ │ │ ├── Find_All_SubSeq.md │ │ │ │ ├── Interleaving_String.adoc │ │ │ │ ├── Largest_Odd_Number_in_String.adoc │ │ │ │ ├── Largest_Substring_Between_Two_Equal_Characters.adoc │ │ │ │ ├── Longest_Repeating_Character_Replacement.md │ │ │ │ ├── Longest_Substr_Without_Repeating_Chars.md │ │ │ │ ├── Longest_Substr_with_atMost_2_Distinct_Characters.md │ │ │ │ ├── Maximum_Score_After_Splitting_a_01_String.adoc │ │ │ │ ├── Palindrome_Partitioning │ │ │ │ │ ├── Palindrome_Partitioning_bt_tree.jpg │ │ │ │ │ └── README.md │ │ │ │ ├── Sum_of_Unique_letters_in_all_substrings.md │ │ │ │ ├── Word_Break.md │ │ │ │ └── Word_Break_II.md │ │ │ └── Wrap_Line_at_nth_Character.md │ │ └── parantheses │ │ │ ├── 2. Remove_Paranthesis_to_Make_Valid_Parantheses_String.md │ │ │ ├── Generate_All_Parantheses.md │ │ │ ├── Longest_Continious_Valid_Parentheses.md │ │ │ ├── Maximum_Depth_of_Valid_Parentheses_String.adoc │ │ │ ├── README.md │ │ │ └── Valid_Parantheses.md │ ├── amazon_questions │ │ ├── bookmyshow.c │ │ ├── drone_flight_planner.cpp │ │ ├── frog_minimal_jump_from_posX_to_posY.c │ │ ├── longestPassword_from_givenPasswordStrings.cpp │ │ └── lru_cache.cpp │ └── vectors_arrays │ │ ├── 0_1_array │ │ └── Number_of_Students_Unable_to_Eat_Lunch.adoc │ │ ├── 2d-grid │ │ ├── Average │ │ │ └── Image_Smoother.adoc │ │ ├── Battleships-In-Board.md │ │ ├── Find_Search_Count │ │ │ ├── Equal_Row_and_Column_Pairs.md │ │ │ ├── Lucky Numbers in a Matrix.adoc │ │ │ ├── Number_of_Increasing_Paths_in_a_Grid.md │ │ │ ├── Out_of_Boundary_Paths.adoc │ │ │ └── Steps_from_src_to_dst.adoc │ │ ├── Magic_Squares_hr.md │ │ ├── Matrix_of_0_1 │ │ │ ├── 01_Matrix_Find_Distance_of_Nearest_0.adoc │ │ │ ├── All_Possible_Unique_Paths_from_00_to_end.md │ │ │ ├── All_Possible_Unique_Paths_from_00_to_end_Obstacles.md │ │ │ ├── Ball_reach_from_src_to_dst_and_stop_there │ │ │ │ ├── README.md │ │ │ │ └── maze1.jpg │ │ │ ├── Count_No_of_Islands.adoc │ │ │ ├── Difference_Between_Ones_and_Zeros_in_Row_and_Column.adoc │ │ │ ├── First_col_with_1.md │ │ │ ├── Island │ │ │ │ └── Count Sub Islands.adoc │ │ │ ├── Island_Perimeter.adoc │ │ │ ├── K_Weakest_Rows_in_a_Matrix.adoc │ │ │ ├── Lonely_1.md │ │ │ ├── Max_Area_of_Island.md │ │ │ ├── Maximal_Rectangle │ │ │ │ └── README.md │ │ │ ├── Shortest_Distance_From_Src_to_Dst.md │ │ │ └── Special_Positions_in_a_Binary_Matrix.adoc │ │ ├── Max_Area_of_Cake_after_HorizontalVertical_Cuts │ │ │ ├── README.md │ │ │ └── leetcode_max_area_2.png │ │ ├── Maximum_+ve_Product_from_00_to_end.md │ │ ├── Min_Path_Sum_in_Triangle.adoc │ │ ├── Minesweeper _Game.md │ │ ├── Minimum_Path_Sum_From_00_to_mn.md │ │ ├── N-Queens │ │ │ ├── Number_of_Distinct_Solutions.md │ │ │ └── Return_2D_Vector_containing_All_Solutions.md │ │ ├── Pascal_Traingle │ │ │ ├── Return_1_row_of_pascal_triangle.adoc │ │ │ └── Return_Complete_Pascal_Traingle.adoc │ │ ├── README.md │ │ ├── Region_Cut_By_Slashes │ │ │ ├── README.md │ │ │ ├── region_cut-by_slashes.png │ │ │ └── upsize_grid.png │ │ ├── Robot_Room_Cleaner │ │ │ └── README.md │ │ ├── Search_value_in_Sorted_Array.md │ │ ├── Sorted_Unsorted │ │ │ └── Sorted │ │ │ │ └── Count_Negative_Numbers_in_a_Sorted_Matrix.md │ │ ├── Sudoku_Solver │ │ │ ├── 4x4Board │ │ │ │ ├── 4x4Example1.PNG │ │ │ │ ├── README.md │ │ │ │ └── suduko_backtrack.png │ │ │ ├── 5x5Board │ │ │ │ ├── 5x5Example1.PNG │ │ │ │ └── README.md │ │ │ ├── 9x9Board │ │ │ │ └── README.md │ │ │ └── README.md │ │ └── Word_Search_in_2D_Matrix │ │ │ ├── Word_Search_in_2D_Matrix.md │ │ │ └── word_in_grid.jpg │ │ ├── 2d_Plane │ │ ├── Check_If_It_Is_a_Straight_Line.md │ │ ├── Largest_Rectangle_in_Histogram.md │ │ ├── Max_Points_on_a_Line.md │ │ ├── Robot_Bounded_In_Circle.md │ │ ├── Trapping-Rain-Water.md │ │ ├── Two_Circles.adoc │ │ ├── Vertical_Axis_of_symmetry.adoc │ │ ├── Widest_Vertical_Area_Between_Two_Points_Containing_No_Points.adoc │ │ └── k_nearst_Points_From_Origin.md │ │ ├── Average │ │ └── Moving_Average.md │ │ ├── Create │ │ ├── Convert 1D Array Into 2D Array.adoc │ │ ├── Find Valid Matrix Given Row and Column Sums.adoc │ │ └── XOR Queries of a Subarray.adoc │ │ ├── Find_Search_Count │ │ ├── Count │ │ │ ├── Sorted │ │ │ │ ├── Occurence_of_a_element.md │ │ │ │ └── README.md │ │ │ └── UnSorted │ │ │ │ ├── 2 Keys Keyboard.adoc │ │ │ │ ├── Assign_Cookies.adoc │ │ │ │ ├── Binary_Subarrays_With_Sum.adoc │ │ │ │ ├── CountSteps_After_Add_elements_until_all_beomes_greater_than_k.md │ │ │ │ ├── Count_Elements_With_Maximum Frequency.adoc │ │ │ │ ├── Count_smaller_numbers_after_self.md │ │ │ │ ├── Fruit_Into_Baskets.md │ │ │ │ ├── Min_Adjacent_Swaps_to_Make_Valid_Array.md │ │ │ │ ├── Min_Amount_of_Time_to_Fill_Cups.md │ │ │ │ ├── Minimum_Number_of_Operations_to_Make_Array_XOR_Equal_to_K.adoc │ │ │ │ ├── Two_Out_of_Three.md │ │ │ │ └── Unique_Number_of_Occurrences.adoc │ │ └── Find │ │ │ ├── Sorted │ │ │ ├── 1st_&_last_pos_of_ele_in_duplicate_allowed.adoc │ │ │ ├── Element_Appearing_More_Than_25percent_In_Sorted_Array.adoc │ │ │ ├── Find_in_Mountain_Array.adoc │ │ │ ├── First_Bad_Version.md │ │ │ ├── Increasing_Decresing_Mountain_Array.md │ │ │ ├── Median_of_2_Sorted_Arrays.md │ │ │ ├── README.md │ │ │ ├── Search_Element_in_Rotated_Sorted_Array.md │ │ │ ├── Search_Insert_Position.md │ │ │ └── Search_in_Rotated_Sorted_Array_II.adoc │ │ │ └── Unsorted │ │ │ ├── 1st_Unique_element.md │ │ │ ├── All_Elements_Occur_3times_orNTimes_1Element_once.md │ │ │ ├── Convert_an_Array_Into_a_2D_Array_With_Conditions.adoc │ │ │ ├── Find_Players_With_Zero_or_One_Losses.adoc │ │ │ ├── Greater │ │ │ └── Next_Greater_element_in_Array.adoc │ │ │ ├── Jump_Game_1.md │ │ │ ├── Jump_Game_2_ReachEndMinNumberOfJumps.md │ │ │ ├── Majority_Element.adoc │ │ │ ├── Majority_Element_2.md │ │ │ ├── Maximum │ │ │ ├── Bag_of_Tokens.adoc │ │ │ ├── Container_With_Most_Water.md │ │ │ ├── Largest_Positive_Integer_That_Exists_With_Its_Negative.adoc │ │ │ ├── Max_Consecutive_Floors_Without_Special_Floors.md │ │ │ ├── Max_Sum_Money_House_Robber.adoc │ │ │ ├── Maximum_Running_Time_of_N_Computers.md │ │ │ ├── Maximum_Score_from_Multiplication_Operations.md │ │ │ ├── Most_Profit_Assigning_Work.adoc │ │ │ ├── Tallest_Billboard.md │ │ │ ├── Third_Largest_Date.md │ │ │ └── max_2_elements_in_array.adoc │ │ │ ├── Median │ │ │ └── Find_Median_from_Data_Stream │ │ │ │ ├── README.md │ │ │ │ └── images │ │ │ │ └── 295_Find_Median_from_Data_Stream.png │ │ │ ├── Minimum │ │ │ ├── Buy_Two_Chocolates.adoc │ │ │ ├── Fair_Distribution_of_Cookies.md │ │ │ ├── Minimum_Cost_to_Make_Array_Equal.md │ │ │ ├── Minimum_Number_of_Operations_to_Make_Array_Empty.adoc │ │ │ ├── Minimum_Speed_to_Arrive_on_Time.md │ │ │ └── Paint_House.md │ │ │ ├── Minimum_Health_to_Beat_Game.md │ │ │ ├── Missing │ │ │ ├── Missing_And_Repeating.md │ │ │ ├── Missing_Number.adoc │ │ │ ├── Set_Mismatch.adoc │ │ │ └── Smallest_Missing_Positive_Number.adoc │ │ │ ├── Monotonic │ │ │ └── Monotonic_Array.adoc │ │ │ ├── No_With_X_Elements_Greater_Than_or_Equal_X.md │ │ │ ├── No_having_odd_occurence.md │ │ │ ├── README.md │ │ │ ├── Sliding_Window_Maximum.adoc │ │ │ ├── Time_Needed_to_Buy_Tickets.adoc │ │ │ ├── Top_k_Frequent_Elements.md │ │ │ ├── crafty_carpenter.md │ │ │ ├── kth_Largest_Smallest │ │ │ └── Kth_Largest_Element_in_Stream.adoc │ │ │ └── kth_largest_or_smallest_element_in_array.adoc │ │ ├── Intervals │ │ ├── Count_Integers_in_Intervals.md │ │ ├── Insert_Interval.adoc │ │ ├── Merge_Overlapping_Intervals.adoc │ │ ├── Min_MEETING_ROOMS_needed.md │ │ ├── Minimum_Number_of_Arrows_to_Burst_Balloons.adoc │ │ ├── My Calendar I.adoc │ │ ├── Non-overlapping_Intervals.md │ │ └── Number_of_Flowers_in_Full_Bloom.adoc │ │ ├── Merge │ │ └── Sorted │ │ │ └── Merge_Sorted_Array.md │ │ ├── Number │ │ ├── Check_Number_Is_Prime.md │ │ ├── Divisor_Game.md │ │ ├── Integer_Break.adoc │ │ ├── Number-represented-as-array.md │ │ └── Reverse_Integer.md │ │ ├── Order_Arrangment │ │ ├── 1. Place_All_0_onLeft_All_1_onRight.md │ │ ├── 2. Place_0_onLeft_1_Middle_2_Right.md │ │ ├── Find_All_Subsets.md │ │ ├── Group_the_People_Given_the_Group_Size They Belong_To.adoc │ │ ├── Order_of_People_Height.md │ │ ├── Place_0_on_Right_Maintain_Order_assuch.md │ │ ├── Place_0_on_Right_Sorted_elements_on_left.md │ │ ├── README.md │ │ ├── Sort_Integers_by_The_Number_of_1_Bits.adoc │ │ ├── Sorted │ │ │ ├── Arrange_Squares_in_O(n).md │ │ │ ├── Summary_Ranges.md │ │ │ └── Swap_2_entries_in_Sorted_Array.md │ │ └── Unsorted │ │ │ ├── Divide_Array_Into_Arrays_With_Max_Difference.adoc │ │ │ ├── Hand_of_Straights.adoc │ │ │ ├── Rearrange_Array_Elements_by_Sign.adoc │ │ │ ├── Relative_Ranks.adoc │ │ │ └── Reveal_Cards_In_Increasing_Order.adoc │ │ ├── Pairs_Duplicates │ │ ├── Duplicates │ │ │ ├── Find_Duplicates_Two_Sorted_Arrays.md │ │ │ ├── Find_Duplicates_Two_Unsorted_Arrays_Intersection.adoc │ │ │ └── UnSorted │ │ │ │ ├── Duplicate_Elements_in_1_Array.adoc │ │ │ │ └── Duplicate_Elements_in_2_Arrays.md │ │ ├── Maximum Units on a Truck.md │ │ └── Pairs │ │ │ ├── Sorted │ │ │ ├── Average_Waiting_Time.adoc │ │ │ ├── Find_K_Pairs_with_Smallest_Sums.md │ │ │ └── Pair with Specific Sum.md │ │ │ └── Unsorted │ │ │ ├── Find_Players_With_0_or_1_Losses.md │ │ │ ├── Find_the_Town_Judge.adoc │ │ │ ├── List_of_Cities_and_Population_sort.md │ │ │ ├── Max_diff_bw_2_elements_lar_appears_after_smaller.md │ │ │ ├── Maximum_Product_Difference_Between_Two_Pairs.adoc │ │ │ ├── Min_Cards_to_Pick_for_Matching_Pair.md │ │ │ ├── Number_of_Good_Pairs.adoc │ │ │ ├── Number_of_Weak_Characters_in_Game.md │ │ │ ├── Pairs_Divisible_by_X.md │ │ │ ├── Pairs_With_Specific_difference_k.md │ │ │ ├── Pairs_With_Sum_X_No_Duplicates.md │ │ │ └── Two_Sum.md │ │ ├── Product │ │ └── Product of Array Except Self.md │ │ ├── Progression │ │ ├── Can_Make_Arithmetic_Progression_From_Sequence.md │ │ └── calculate-money-in-leetcode-bank.adoc │ │ ├── README.md │ │ ├── Random │ │ ├── Frog_Position_After_T_Sec_lc.cpp │ │ ├── Sorted │ │ │ └── Random_Pick_with_Weight.md │ │ ├── Time_for_ants_to_fall_of_plank.md │ │ ├── leader_of_array.c │ │ ├── longest_period_of_turbulance.c │ │ └── min-operations-to-make-array-equal_lc.md │ │ ├── Reverse │ │ └── Reverse_Between_2_Elements.md │ │ ├── Rotation_Spiral │ │ ├── 1D │ │ │ └── Left_Rotation_By_K_Positions.md │ │ ├── 2-D_Array_Rotate_90Degree.md │ │ ├── 2D │ │ │ ├── Create_2d_matrix_from_linked_list_spirially │ │ │ │ ├── README.md │ │ │ │ └── spiral_from_ll.jpg │ │ │ └── spiral_print.md │ │ └── Rotate_Array_Right_by_k_positions.md │ │ ├── Sort │ │ └── PanCake_Sorting.md │ │ ├── Split_Distribute │ │ ├── Maximum_Candies_Given_to_K_Children.md │ │ └── Split_Array_Largest_Sum.md │ │ ├── SubSequence_SubArray │ │ ├── README.md │ │ ├── SubArrays │ │ │ ├── Asteroid_Collision │ │ │ │ └── README.md │ │ │ ├── Average │ │ │ │ └── K_Radius_Subarray_Averages.md │ │ │ ├── Contiguous_Number_of_Subarray_With_Sum_Equal_to_k.adoc │ │ │ ├── Distinct_subarrs_having_atmost_k_elements_div_by_p.md │ │ │ ├── Maximum │ │ │ │ ├── Count_Subarrays_Where_Max_Element_Appears_at_Least_K_Times.adoc │ │ │ │ └── Length_of_Longest_Subarray_With_at_Most_K_Frequency.adoc │ │ │ ├── Minimum │ │ │ │ └── Minimum_Size_Subarray_Sum.md │ │ │ ├── SplitArray_Into2EqualSum_Subarrs.md │ │ │ ├── Sum │ │ │ │ ├── Subarray_Sums_Divisible_by_K.adoc │ │ │ │ └── Sum_of_Subarray_Minimums.md │ │ │ ├── Sum_of_Subarray_Ranges.md │ │ │ ├── Sum_of_Subarray_with_largest_sum.md │ │ │ └── least_no_of_unique_integers_after_K_removals.adoc │ │ └── SubSequence │ │ │ ├── 3. SubSeq_Having_sum_Greater_than_not_included_elements.md │ │ │ ├── Increasing_Decreasing_Subseq_Count_Number_of_Teams.adoc │ │ │ ├── Longest_Consecutive_Sequence.md │ │ │ ├── Longest_Increasing_Subsequence.adoc │ │ │ ├── Longest_Subsequence_forming_Arithmetic_Progression.md │ │ │ ├── Number_of_Longest_Increasing_Subsequence.md │ │ │ └── Partitioning_Array_Into_SubSeq_of_len_k.md │ │ ├── Transpose │ │ └── Matrix_Transpose.md │ │ ├── Triplet │ │ ├── 1. Triplet_Having_Max_Product.md │ │ ├── Triplet_having_sum_zero.md │ │ └── pythagorean_triplet.md │ │ └── sum │ │ ├── Find_Polygon_With_the_Largest_Perimeter.adoc │ │ ├── N_Unique_Integers_Sum_up_to_Zero.md │ │ ├── Sum_k_Max_elements_taken_1_at_a_time.adoc │ │ └── Total_Cost_to_Hire_K_Workers.md ├── README.md ├── Searches │ ├── BinarySearch │ │ └── C++_STL │ │ │ ├── README.md │ │ │ └── upper_bound.md │ ├── Binary_Search.md │ └── README.md └── Sorting │ ├── Bubble-sort.c │ ├── Cyclic_Sort.adoc │ ├── Heap_Sort.md │ ├── Hybrid_Sorting_Algo │ ├── IntroSort │ │ └── README.md │ └── README.md │ ├── Insertion_sort.md │ ├── Merge Sort (Divide & Conquer).md │ ├── Quick_Sort.adoc │ ├── README.adoc │ └── images │ ├── insertion_sort.JPG │ └── merge_sort.JPG ├── Debuggers └── gdb │ ├── Feature │ └── Breakpoint │ │ └── README.md │ └── README.md ├── Device_Drivers ├── Linux │ ├── README.md │ ├── Types_of_DD │ │ └── Character_dd │ │ │ ├── README.md │ │ │ ├── ebbchar-driver │ │ │ ├── Makefile.md │ │ │ ├── ebbchar.md │ │ │ └── testebbchar.c │ │ │ └── hello-world │ │ │ ├── Makefile │ │ │ └── hello.md │ └── device-driver.jpg └── Windows │ ├── Creating_DD │ └── README.md │ └── README.md ├── Frameworks ├── README.adoc └── React_Native │ └── README.adoc ├── Iris_Detection_With_RasberryPi └── README.md ├── Languages ├── Data_Serialization_Language │ └── Yaml │ │ └── README.md ├── Markup_Language │ ├── README.md │ ├── XML │ │ ├── README.adoc │ │ └── dom.JPG │ └── html │ │ ├── CSS.adoc │ │ └── README.adoc ├── Modelling │ └── UML │ │ ├── README.md │ │ ├── UML_Diagrams.png │ │ └── relationships.png ├── Programming_Languages │ ├── C# │ │ └── README.md │ ├── C │ │ ├── APIs │ │ │ ├── memcpy │ │ │ │ ├── From-VirtualMem-to-structure.md │ │ │ │ ├── README.md │ │ │ │ ├── copy_24byte_From_Offset16_in_ArrayOffset.md │ │ │ │ ├── dataSeg-to-Stack-COREDUMP.md │ │ │ │ ├── dataSeg-to-dataSeg.md │ │ │ │ ├── dataSeg-to-heap.md │ │ │ │ └── physicalMem-to-charArray │ │ │ │ │ ├── ByteByByteCopy.md │ │ │ │ │ └── TraverseULongArrayUsingChar.md │ │ │ ├── mmap │ │ │ │ ├── Examples │ │ │ │ │ └── Dumping_dev_mem.md │ │ │ │ └── README.md │ │ │ └── rand_srand.md │ │ ├── Bitwise │ │ │ ├── Count_on_Bits │ │ │ │ ├── README.adoc │ │ │ │ └── counting_on_bits.png │ │ │ ├── Little_or_Big_Endian.md │ │ │ ├── Print_Binary_Representation.md │ │ │ ├── README.md │ │ │ └── Representation_of_Numbers │ │ │ │ ├── FloatingPoint_Number │ │ │ │ └── README.md │ │ │ │ ├── Negative_Numbers │ │ │ │ └── README.md │ │ │ │ └── README.md │ │ ├── Character_Sets │ │ │ ├── ASCII │ │ │ │ ├── README.md │ │ │ │ └── ascii.jpg │ │ │ ├── README.md │ │ │ ├── UTF-8 │ │ │ │ ├── README.md │ │ │ │ └── utf-8.png │ │ │ └── Unicode │ │ │ │ └── README.md │ │ ├── Compile │ │ │ ├── Compilation-Steps.jpg │ │ │ ├── Object_File │ │ │ │ ├── README.md │ │ │ │ └── Sections │ │ │ │ │ └── Symbol_Table.md │ │ │ ├── README.md │ │ │ ├── compiler.md │ │ │ └── gcc-flags.md │ │ ├── Makefile │ │ │ ├── Examples │ │ │ │ └── short-example │ │ │ │ │ ├── Makefile │ │ │ │ │ ├── init.c │ │ │ │ │ ├── init.h │ │ │ │ │ └── main.c │ │ │ └── README.md │ │ ├── Signal_Handling │ │ │ ├── Catching_Signals │ │ │ │ ├── README.md │ │ │ │ └── Sigaction.md │ │ │ └── README.md │ │ ├── Size-of-Datatypes │ │ │ ├── Fundamental_Datatypes.md │ │ │ ├── Numerical_Datatypes.md │ │ │ └── README.md │ │ └── Utilities │ │ │ └── Hexdump │ │ │ └── README.md │ ├── CompilationSteps_C_Java.md │ ├── CompileTime_vs_RunTime │ │ └── README.md │ ├── GoLang │ │ ├── README.adoc │ │ └── http_server_exposing_RESTendpoints.adoc │ ├── Java │ │ ├── Applet │ │ │ └── README.md │ │ ├── Classes │ │ │ └── README.md │ │ ├── Collections │ │ │ └── README.md │ │ ├── Data_Types │ │ │ └── README.md │ │ ├── Exception_Handling │ │ │ └── README.md │ │ ├── Frameworks │ │ │ └── Spring │ │ │ │ └── README.md │ │ ├── Keywords │ │ │ └── README.md │ │ ├── Object_Oriented │ │ │ ├── Inheritance │ │ │ │ └── README.md │ │ │ └── README.md │ │ ├── Operations │ │ │ └── README.md │ │ ├── README.md │ │ ├── Streams │ │ │ └── README.md │ │ └── String │ │ │ └── README.md │ ├── Kotlin │ │ ├── Classes_Objects │ │ │ ├── Declaration.adoc │ │ │ └── Inheritance.adoc │ │ ├── Datatypes.adoc │ │ ├── Functions.adoc │ │ ├── Statements.adoc │ │ └── Variables.adoc │ ├── NamingConvention │ │ └── Hungarian │ │ │ └── README.md │ ├── README.adoc │ ├── Rust │ │ ├── Attributes │ │ │ └── README.md │ │ ├── Class_Constructor_Destructor │ │ │ └── README.md │ │ ├── Collections │ │ │ ├── BTreeMap │ │ │ │ └── README.md │ │ │ ├── BTreeSet │ │ │ │ └── README.md │ │ │ ├── HashMaps │ │ │ │ └── README.md │ │ │ ├── HashSet │ │ │ │ └── README.md │ │ │ ├── README.md │ │ │ ├── VecDeque │ │ │ │ └── README.md │ │ │ ├── minHeap_maxHeap │ │ │ │ └── README.md │ │ │ ├── stack │ │ │ │ └── README.md │ │ │ └── vector │ │ │ │ └── README.md │ │ ├── Comparison_Rust_vs_Other_Lang │ │ │ └── README.adoc │ │ ├── Contianers │ │ │ └── README.md │ │ ├── Control_Flow │ │ │ ├── README.md │ │ │ └── match_switch │ │ │ │ └── README.md │ │ ├── Crates_Packages_Modules │ │ │ └── README.md │ │ ├── Custom_Programs │ │ │ └── README.md │ │ ├── Data_Types │ │ │ ├── Builtin_Types │ │ │ │ └── README.md │ │ │ ├── Compound │ │ │ │ └── Struct │ │ │ │ │ └── README.md │ │ │ ├── README.md │ │ │ └── cons_list.JPG │ │ ├── Design_Guidelines │ │ │ └── README.md │ │ ├── Error_Handling │ │ │ └── README.md │ │ ├── FFI │ │ │ └── README.md │ │ ├── Frameworks │ │ │ ├── Actix_web │ │ │ │ └── README.md │ │ │ └── Diesel │ │ │ │ └── README.md │ │ ├── Functions │ │ │ ├── Inbuilt_Functions │ │ │ │ └── README.md │ │ │ └── README.md │ │ ├── Generic_Types │ │ │ └── README.md │ │ ├── Iterators │ │ │ └── README.md │ │ ├── Kafka │ │ │ ├── README.md │ │ │ ├── Rust_Code │ │ │ │ ├── Config_variables.md │ │ │ │ └── README.md │ │ │ └── Using_CLI │ │ │ │ └── README.md │ │ ├── Keywords │ │ │ └── README.md │ │ ├── Logging │ │ │ ├── README.md │ │ │ ├── env_logger │ │ │ │ └── README.md │ │ │ ├── log4rs │ │ │ │ └── README.md │ │ │ └── slog │ │ │ │ └── README.md │ │ ├── README.md │ │ ├── Registeries │ │ │ └── README.md │ │ ├── Smart_Pointers │ │ │ └── README.md │ │ ├── SodiumOxide │ │ │ └── README.md │ │ ├── Source │ │ │ ├── Convert_Farenheight_to_Celcius │ │ │ │ └── README.md │ │ │ ├── Fibonacci_Series │ │ │ │ └── README.md │ │ │ ├── Guessing_Game │ │ │ │ └── README.md │ │ │ └── Hello_World.md │ │ ├── StackHeap_CompileRuntime │ │ │ └── README.md │ │ ├── Variables │ │ │ ├── Immutable │ │ │ │ ├── Immutable_vs_const.md │ │ │ │ └── README.md │ │ │ ├── README.md │ │ │ └── Shadowing │ │ │ │ └── README.md │ │ ├── macros │ │ │ ├── Derive_macro.md │ │ │ └── README.md │ │ └── notify-rs.md │ ├── WebAssembly │ │ └── README.md │ └── c++ │ │ ├── 6-implicit-functions │ │ ├── Assignment-Operator │ │ │ ├── Copy-Assignment-Operator │ │ │ │ └── README.md │ │ │ └── Move-Assignment-Operator │ │ │ │ └── move-assignment-optr.cpp │ │ ├── Constructor │ │ │ ├── README.adoc │ │ │ ├── copy-ctr │ │ │ │ └── README.md │ │ │ ├── default-ctr │ │ │ │ └── README.md │ │ │ └── move-ctr │ │ │ │ ├── README.md │ │ │ │ └── function_returns_temp_value.md │ │ ├── Destructor │ │ │ ├── Destructor.md │ │ │ ├── README.md │ │ │ └── Virtual_Destructor.md │ │ └── README.md │ │ ├── C++11_14_17_20 │ │ ├── README.adoc │ │ ├── c++11 │ │ │ ├── Constexpr │ │ │ │ └── README.adoc │ │ │ ├── README.md │ │ │ ├── alignment │ │ │ │ └── alignment.md │ │ │ ├── enumClass_or_ScopedEnumeration │ │ │ │ ├── README.md │ │ │ │ ├── c++11-enumClass │ │ │ │ │ ├── Print_ValueText.md │ │ │ │ │ └── README.md │ │ │ │ └── c++98-enum │ │ │ │ │ └── README.md │ │ │ ├── noexcept │ │ │ │ ├── README.md │ │ │ │ ├── operator │ │ │ │ │ └── README.md │ │ │ │ └── specifier │ │ │ │ │ └── README.md │ │ │ ├── pointers.adoc │ │ │ ├── range-based-for │ │ │ │ └── README.md │ │ │ └── type_alias_using_keyword │ │ │ │ └── README.md │ │ ├── c++14 │ │ │ └── Integer_Sequence │ │ │ │ └── README.md │ │ ├── c++17 │ │ │ ├── README.adoc │ │ │ ├── Selection_Statements_with_Initializers │ │ │ │ └── README.md │ │ │ ├── Structured_Bindings │ │ │ │ ├── Array_Member_Binding │ │ │ │ │ └── README.md │ │ │ │ ├── Class_Structure_Member_Binding │ │ │ │ │ └── README.md │ │ │ │ ├── README.md │ │ │ │ └── Tuple_Element_Binding │ │ │ │ │ └── README.md │ │ │ ├── guranteed_copy_elision │ │ │ │ └── README.md │ │ │ ├── has_include │ │ │ │ └── README.md │ │ │ ├── order-of-evaluation.md │ │ │ └── structured-bindings_assembly.cpp │ │ └── c++20 │ │ │ ├── Consteval │ │ │ └── README.md │ │ │ ├── Corutines │ │ │ └── README.md │ │ │ ├── Modules │ │ │ └── README.md │ │ │ ├── README.adoc │ │ │ ├── designated_initializer │ │ │ └── README.md │ │ │ └── format │ │ │ ├── README.md │ │ │ └── format.jpg │ │ ├── Characteristics_of_OOPS │ │ ├── Abstraction │ │ │ └── README.md │ │ ├── Classes │ │ │ └── README.md │ │ ├── Data_Hiding │ │ │ └── README.md │ │ ├── Encapsulation │ │ │ └── README.md │ │ ├── Inheritance │ │ │ ├── Examples │ │ │ │ ├── 1.Public_Inheritance.md │ │ │ │ └── 2.Base_member_initialization.md │ │ │ ├── Generalization1.png │ │ │ ├── README.md │ │ │ ├── Specialization1.png │ │ │ └── rules-of-inheritance.png │ │ ├── Objects │ │ │ └── README.md │ │ └── Polymorphism │ │ │ ├── Dynamic_RunTime │ │ │ ├── README.md │ │ │ └── vtable.png │ │ │ └── Static_CompileTime │ │ │ ├── Operator_Overloading │ │ │ └── Functor │ │ │ │ ├── README.md │ │ │ │ └── functor_assembly.cpp │ │ │ ├── README.md │ │ │ └── Templates │ │ │ ├── Basics │ │ │ └── Template_In_HeaderFile │ │ │ │ ├── ODR.md │ │ │ │ └── README.md │ │ │ ├── Inheritance │ │ │ ├── Examples │ │ │ │ └── 1.Accessing-Base-Class-Function.md │ │ │ └── README.md │ │ │ ├── README.adoc │ │ │ ├── Variadic │ │ │ ├── ClassTemplate │ │ │ │ └── README.md │ │ │ ├── Function │ │ │ │ ├── Examples │ │ │ │ │ ├── 1.Display-All-Arguments.md │ │ │ │ │ ├── 2.Adding-all-Arguments.md │ │ │ │ │ └── 3.Adding-Squares.md │ │ │ │ └── README.md │ │ │ └── README.md │ │ │ ├── class_templates │ │ │ └── Examples │ │ │ │ └── Stack │ │ │ │ ├── Default-Template-Arguments │ │ │ │ └── README.md │ │ │ │ └── Ints-Strings │ │ │ │ └── README.md │ │ │ └── template_specialization │ │ │ ├── Class-Specialization │ │ │ ├── CharClassTS.md │ │ │ └── Hackerrank-1.md │ │ │ ├── FunctionTS │ │ │ └── 1.IntegerFunction.md │ │ │ ├── Partial_Specialization │ │ │ └── README.md │ │ │ └── README.md │ │ ├── Concepts │ │ └── README.md │ │ ├── Design_Pattens │ │ ├── Anti_Pattern │ │ │ └── README.md │ │ ├── Behavioral │ │ │ ├── Chain-of-Resp │ │ │ │ └── README.md │ │ │ ├── Command │ │ │ │ ├── README.md │ │ │ │ ├── c++ │ │ │ │ │ ├── Makefile │ │ │ │ │ ├── README.md │ │ │ │ │ ├── include │ │ │ │ │ │ ├── Command.hpp │ │ │ │ │ │ ├── GarageDoor.hpp │ │ │ │ │ │ ├── GarageDoorClosedCommand.hpp │ │ │ │ │ │ ├── GarageDoorOpenCommand.hpp │ │ │ │ │ │ ├── Light.hpp │ │ │ │ │ │ ├── LightOffCommand.hpp │ │ │ │ │ │ ├── LightOnCommand.hpp │ │ │ │ │ │ ├── NoCommand.hpp │ │ │ │ │ │ ├── RemoteControl.hpp │ │ │ │ │ │ └── config.hpp │ │ │ │ │ └── src │ │ │ │ │ │ ├── .LightOnCommand.cpp.swp │ │ │ │ │ │ ├── Garage.cpp │ │ │ │ │ │ ├── GarageDoorClosedCommand.cpp │ │ │ │ │ │ ├── GarageDoorOpenCommand.cpp │ │ │ │ │ │ ├── Light.cpp │ │ │ │ │ │ ├── LightOffCommand.cpp │ │ │ │ │ │ ├── LightOnCommand.cpp │ │ │ │ │ │ ├── RemoteControl.cpp │ │ │ │ │ │ ├── RemoteLoader.cpp-bak │ │ │ │ │ │ └── main.cpp │ │ │ │ └── java │ │ │ │ │ ├── Command.java │ │ │ │ │ ├── GarageDoor.java │ │ │ │ │ ├── GarageDoorClosedCommand.java │ │ │ │ │ ├── GarageDoorOpenCommand.java │ │ │ │ │ ├── Light.java │ │ │ │ │ ├── LightOffCommand.java │ │ │ │ │ ├── LightOnCommand.java │ │ │ │ │ ├── NoCommand.java │ │ │ │ │ ├── README.md │ │ │ │ │ ├── RemoteControl.java │ │ │ │ │ ├── RemoteLoader.java │ │ │ │ │ ├── Stereo.java-bak │ │ │ │ │ ├── StereoOnWithCDCommand.java-bak │ │ │ │ │ └── UML-Diagram.png │ │ │ ├── Interpretor │ │ │ │ └── README.md │ │ │ ├── Iterator │ │ │ │ └── README.md │ │ │ ├── Mediator │ │ │ │ ├── Online_Auction │ │ │ │ │ ├── Code │ │ │ │ │ │ ├── CMakeLists.txt │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ ├── bidder │ │ │ │ │ │ │ ├── CMakeLists.txt │ │ │ │ │ │ │ └── inc │ │ │ │ │ │ │ │ ├── bidder.h │ │ │ │ │ │ │ │ └── bidder1.h │ │ │ │ │ │ ├── common │ │ │ │ │ │ │ └── inc │ │ │ │ │ │ │ │ └── common.h │ │ │ │ │ │ ├── driver │ │ │ │ │ │ │ ├── CMakeLists.txt │ │ │ │ │ │ │ └── main.cpp │ │ │ │ │ │ ├── mediator │ │ │ │ │ │ │ ├── CMakeLists.txt │ │ │ │ │ │ │ ├── inc │ │ │ │ │ │ │ │ ├── mediator.h │ │ │ │ │ │ │ │ └── mediator1.h │ │ │ │ │ │ │ └── src │ │ │ │ │ │ │ │ └── mediator1.cpp │ │ │ │ │ │ └── seller │ │ │ │ │ │ │ ├── CMakeLists.txt │ │ │ │ │ │ │ ├── inc │ │ │ │ │ │ │ ├── seller.h │ │ │ │ │ │ │ └── seller1.h │ │ │ │ │ │ │ └── src │ │ │ │ │ │ │ └── seller1.cpp │ │ │ │ │ ├── README.md │ │ │ │ │ └── online_auction.jpg │ │ │ │ └── README.md │ │ │ ├── Observer │ │ │ │ ├── README.md │ │ │ │ ├── Robot_Resturant │ │ │ │ │ └── README.md │ │ │ │ └── Whether_Display_Device │ │ │ │ │ ├── README.md │ │ │ │ │ └── observer-dp-whether-display-device.JPG │ │ │ ├── PUP_Pack_Unpack │ │ │ │ └── README.md │ │ │ ├── State │ │ │ │ └── README.md │ │ │ ├── Strategy │ │ │ │ └── strategy-dp.cpp │ │ │ ├── Template │ │ │ │ ├── README.md │ │ │ │ ├── c++ │ │ │ │ │ ├── Makefile │ │ │ │ │ ├── README.md │ │ │ │ │ ├── include │ │ │ │ │ │ ├── Coffee.h │ │ │ │ │ │ ├── Tea.h │ │ │ │ │ │ ├── beverageMaker.h │ │ │ │ │ │ └── config.h │ │ │ │ │ └── src │ │ │ │ │ │ ├── Coffee.cpp │ │ │ │ │ │ ├── Tea.cpp │ │ │ │ │ │ ├── beverageMaker.cpp │ │ │ │ │ │ └── main.cpp │ │ │ │ └── java │ │ │ │ │ ├── Coffee.java │ │ │ │ │ ├── Tea.java │ │ │ │ │ ├── beverageMaker.java │ │ │ │ │ └── main.java │ │ │ └── Visitor │ │ │ │ └── README.md │ │ ├── Creational │ │ │ ├── Builder │ │ │ │ ├── Code │ │ │ │ │ └── README.md │ │ │ │ └── README.md │ │ │ ├── Factory_Method │ │ │ │ └── README.md │ │ │ ├── README.md │ │ │ ├── Singleton │ │ │ │ └── README.md │ │ │ └── facade │ │ │ │ ├── Examples │ │ │ │ └── Home_Theater │ │ │ │ │ ├── Code │ │ │ │ │ ├── Makefile │ │ │ │ │ ├── include │ │ │ │ │ │ ├── DVDPlayer.h │ │ │ │ │ │ ├── HomeTheaterFacade.h │ │ │ │ │ │ ├── LEDScreen.h │ │ │ │ │ │ ├── MetalPopCornPopper.h │ │ │ │ │ │ ├── RoundTheaterLights.h │ │ │ │ │ │ ├── SonyDVDPlayer.h │ │ │ │ │ │ ├── TheaterLights.h │ │ │ │ │ │ ├── config.h │ │ │ │ │ │ ├── popCornPopper.h │ │ │ │ │ │ └── screen.h │ │ │ │ │ └── src │ │ │ │ │ │ ├── HomeTheaterFacade.cpp │ │ │ │ │ │ ├── LEDScreen.cpp │ │ │ │ │ │ ├── MetalpopCornPopper.cpp │ │ │ │ │ │ ├── RoundTheaterLights.cpp │ │ │ │ │ │ ├── SonyDVDPlayer.cpp │ │ │ │ │ │ └── main.cpp │ │ │ │ │ └── README.md │ │ │ │ └── README.md │ │ ├── README.md │ │ └── Structural │ │ │ ├── Adapter │ │ │ ├── Examples │ │ │ │ └── FlatPinPlug_roundSwitchBoard │ │ │ │ │ ├── Code │ │ │ │ │ └── README.md │ │ │ │ │ ├── README.md │ │ │ │ │ └── adapter-dp.JPG │ │ │ └── README.md │ │ │ ├── Decorator │ │ │ ├── java │ │ │ │ └── decorator │ │ │ │ │ ├── Beverage.java │ │ │ │ │ ├── CondimentDecorator.java │ │ │ │ │ ├── DarkRoast.java │ │ │ │ │ ├── Espresso.java │ │ │ │ │ ├── HouseBlend.java │ │ │ │ │ ├── Mocha.java │ │ │ │ │ ├── README │ │ │ │ │ ├── StarbuzzCoffee.java │ │ │ │ │ └── Whip.java │ │ │ └── structural-decorator.cpp │ │ │ └── README.md │ │ ├── Keywords.adoc │ │ ├── Libraries_FileHandling │ │ ├── General-Purpose │ │ │ └── Bitset │ │ │ │ └── README.md │ │ ├── Streams │ │ │ ├── File_Handling │ │ │ │ ├── Functions │ │ │ │ │ └── README.md │ │ │ │ ├── IOStream │ │ │ │ │ └── README.md │ │ │ │ ├── README.md │ │ │ │ ├── fstream-ReadWriteBoth │ │ │ │ │ └── README.md │ │ │ │ ├── ifstream_istream │ │ │ │ │ └── README.md │ │ │ │ └── ofstream_ostream │ │ │ │ │ └── ofstream_writing_to_file.md │ │ │ └── StringStream │ │ │ │ └── README.md │ │ ├── Strings │ │ │ ├── Functions │ │ │ │ └── README.md │ │ │ └── README.md │ │ └── chorno │ │ │ └── README.md │ │ ├── OOPS_Principles │ │ └── README.adoc │ │ ├── README.md │ │ ├── SFINAE │ │ └── sfinae-example.cpp │ │ ├── Standard_Template_Library │ │ ├── Algorithm-library │ │ │ └── README.md │ │ ├── README.md │ │ ├── container_library │ │ │ ├── associative_containers │ │ │ │ ├── README.md │ │ │ │ ├── sorted_ordered │ │ │ │ │ ├── map │ │ │ │ │ │ └── README.adoc │ │ │ │ │ ├── multimap │ │ │ │ │ │ └── README.md │ │ │ │ │ ├── multiset │ │ │ │ │ │ └── README.md │ │ │ │ │ └── set │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ └── implementing_set.cpp │ │ │ │ └── unsorted_unordered │ │ │ │ │ ├── unordered_map.md │ │ │ │ │ ├── unordered_map_assembly.cpp │ │ │ │ │ └── unordered_set.md │ │ │ ├── container_adoptors │ │ │ │ ├── Queue │ │ │ │ │ └── Priority_Queue │ │ │ │ │ │ ├── MaxHeap │ │ │ │ │ │ ├── Print.md │ │ │ │ │ │ └── push_insert.md │ │ │ │ │ │ ├── MinHeap │ │ │ │ │ │ └── README.md │ │ │ │ │ │ └── README.md │ │ │ │ └── stack │ │ │ │ │ ├── README │ │ │ │ │ ├── stack_assembly.cpp │ │ │ │ │ └── stack_constructors.cpp │ │ │ └── sequence_containers │ │ │ │ ├── Deque │ │ │ │ ├── README.md │ │ │ │ └── insert_create_delete.md │ │ │ │ ├── list │ │ │ │ └── README.md │ │ │ │ ├── tuple │ │ │ │ └── README.md │ │ │ │ └── vectors │ │ │ │ ├── 2-d-vector.md │ │ │ │ ├── README.adoc │ │ │ │ ├── implementing_vector.cpp │ │ │ │ └── vectors_constructors.md │ │ ├── iterator_library │ │ │ └── README.md │ │ └── vectors.cpp │ │ ├── Storage_Classes │ │ └── README.md │ │ ├── Streams │ │ └── README.md │ │ ├── Threads │ │ └── README.md │ │ ├── assignment_operator_vs_cc.cpp │ │ ├── boost │ │ ├── Libraries │ │ │ ├── BoostAny │ │ │ │ └── README.md │ │ │ ├── BoostPool │ │ │ │ └── README.md │ │ │ ├── File_System │ │ │ │ ├── Code_Examples │ │ │ │ │ ├── OpenReadFile.md │ │ │ │ │ └── README.md │ │ │ │ └── README.md │ │ │ ├── IOStreams │ │ │ │ └── README.md │ │ │ ├── Program_Options │ │ │ │ ├── Examples │ │ │ │ │ ├── 1.add_options.md │ │ │ │ │ └── help_compression.md │ │ │ │ ├── Library │ │ │ │ │ └── class_options_description.md │ │ │ │ ├── README.md │ │ │ │ └── Validate_Options │ │ │ │ │ └── Examples │ │ │ │ │ └── Compression.md │ │ │ ├── PropertyTree │ │ │ │ └── README.md │ │ │ ├── Timer │ │ │ │ └── README.md │ │ │ ├── Tokenizer │ │ │ │ ├── Examples │ │ │ │ │ └── 1.string-from-stdin.md │ │ │ │ └── README.md │ │ │ └── asio │ │ │ │ └── README.md │ │ └── README.md │ │ ├── call-by-value-reference │ │ └── By-value │ │ │ └── how-many-temporary-copies.md │ │ ├── final_function.cpp │ │ ├── friend_class.cpp │ │ ├── friend_function.cpp │ │ ├── function_chaining.cpp │ │ ├── namespaces │ │ └── README.md │ │ └── sister_delegation.cpp ├── README.md ├── ScriptingLanguages │ ├── Interview_Questions │ │ ├── Eliminate_Email_from_txt_or_HTML_file_SED_command.md │ │ └── Upgrade_Remote_Machines.md │ ├── JavaScript │ │ ├── JSON │ │ │ ├── JSON_Schema │ │ │ │ └── README.md │ │ │ ├── README.md │ │ │ └── Web_Application │ │ │ │ └── 1.Using_Yeoman │ │ │ │ └── README.md │ │ ├── JavaScript_Lang │ │ │ ├── Code │ │ │ │ └── Add_JS_on_HTML_Page │ │ │ │ │ ├── script.js │ │ │ │ │ └── test.html │ │ │ └── README.adoc │ │ └── Node.js │ │ │ └── README.md │ ├── PHP │ │ ├── Datatypes │ │ │ ├── Array │ │ │ │ └── README.md │ │ │ └── Variables │ │ │ │ └── README.md │ │ ├── README.md │ │ └── WhyWhat │ │ │ └── README.md │ ├── Powershell │ │ └── README.md │ ├── Python │ │ ├── Functions │ │ │ ├── Builtin_Methods │ │ │ │ └── README.md │ │ │ ├── Mostly_Used_Functions │ │ │ │ └── README.md │ │ │ └── filter_map_reduce │ │ │ │ └── README.md │ │ ├── Input_Output │ │ │ └── README.md │ │ ├── Keywords │ │ │ └── README.md │ │ ├── Modules │ │ │ └── README.adoc │ │ ├── Objects-and-Classes │ │ │ ├── Builtin-Classes │ │ │ │ └── README.md │ │ │ └── README.md │ │ ├── Plugins │ │ │ └── README.md │ │ ├── README.adoc │ │ ├── String │ │ │ └── README.md │ │ ├── constructors_with_super.py │ │ ├── containers │ │ │ ├── Dequeue │ │ │ │ └── README.md │ │ │ ├── README.md │ │ │ └── Set_Type │ │ │ │ └── Set │ │ │ │ └── README.md │ │ ├── exceptions.py │ │ ├── machine_learning │ │ │ ├── Code │ │ │ │ ├── creating-tensors.py │ │ │ │ ├── opencv_Draw-Rectangles-around-face.md │ │ │ │ └── supervised_learning_imdb_dataset.py │ │ │ ├── README.md │ │ │ └── Run_ML_on_AMD_GPU.adoc │ │ ├── memory_profiler.py │ │ ├── pandas │ │ │ ├── README.md │ │ │ ├── convert-dataframes-to-numpy.md │ │ │ ├── pd-series-dataframes.md │ │ │ ├── plotting.md │ │ │ └── rw_data_from file.md │ │ ├── restful_API_GetPostPutDel.py │ │ ├── restful_apis_get_post_del.py │ │ ├── scikit-learn │ │ │ └── README.md │ │ ├── super-function.py │ │ └── web-frameworks │ │ │ └── flask-restful │ │ │ └── restful-apis-webservice.md │ ├── README.md │ ├── React │ │ ├── Create_vite_app.adoc │ │ ├── Examples │ │ │ └── Tic-Tac-Toe-game │ │ │ │ ├── README.md │ │ │ │ └── src │ │ │ │ └── index.md │ │ └── README.adoc │ ├── Shell_Scripting │ │ └── Bash │ │ │ ├── CheckSum │ │ │ └── README.md │ │ │ ├── CommandLineArguments │ │ │ ├── $#.md │ │ │ ├── $.md │ │ │ ├── $@.md │ │ │ └── README.md │ │ │ ├── Conditional │ │ │ └── if_elif_else_fi.md │ │ │ ├── EnviornmentVariables │ │ │ └── README.md │ │ │ ├── Exit_Status.md │ │ │ ├── FileHandling │ │ │ └── Reading_From_File │ │ │ │ └── README.md │ │ │ ├── Functions │ │ │ └── README.md │ │ │ ├── Loops │ │ │ ├── While_do_done.sh │ │ │ └── for_do_done_break_continue.md │ │ │ ├── Pipes │ │ │ └── README.md │ │ │ ├── README.md │ │ │ └── Variables.md │ └── Windows │ │ └── batch_script │ │ └── README.md ├── StyleSheetLanguage │ └── README.md └── Templating_Language │ └── Jinja2 │ └── README.md ├── Libraries ├── Active_Directory │ └── Rust │ │ └── README.md ├── Command_Line │ └── Rust │ │ └── Clap │ │ ├── Functions │ │ └── README.md │ │ └── README.md ├── Graphics Rendering │ └── README.adoc ├── Json │ └── README.adoc ├── PdCurses │ ├── README.md │ └── Source_Examples │ │ ├── Progress_bar │ │ ├── CMakeLists.txt │ │ ├── README.md │ │ ├── libs │ │ │ ├── include │ │ │ │ └── pdcurses │ │ │ │ │ ├── curses.h │ │ │ │ │ ├── curspriv.h │ │ │ │ │ ├── panel.h │ │ │ │ │ └── term.h │ │ │ └── windows │ │ │ │ └── pdcurses │ │ │ │ ├── pdcurses.lib │ │ │ │ └── test │ │ └── source │ │ │ └── progress-bar.cpp │ │ └── Table-Multi_Columns │ │ ├── README.md │ │ ├── Structures.md │ │ └── Table-nRows-mCols.md ├── Serialize_Deserialize │ └── Rust │ │ └── Serde │ │ └── README.md ├── Static_Dynamic │ └── README.md ├── XML │ ├── README.md │ └── Xerces_Xalan │ │ ├── README.md │ │ ├── Xalan │ │ └── README.md │ │ └── Xerces │ │ ├── Merge_2_XMLs_and_Write_in_out_xml.md │ │ ├── Parse_Element_From_XML_File.md │ │ └── README.md ├── libevent │ └── README.md └── tevent │ └── adding_events_to_queue.c ├── Licenses └── README.md ├── Machine_Learning ├── Learning_Types │ └── README.md ├── Numpy │ └── README.md ├── README.md ├── Terms │ ├── README.adoc │ └── Tensor │ │ └── README.md └── Workstation_Ready │ └── README.md ├── Motherboard ├── 8952_PIC │ ├── 8259_pic.jpg │ ├── Modules_of_8259.md │ └── README.md └── CPU │ ├── ACPI │ ├── README.md │ └── c_p_t-state.md │ ├── APU │ └── APU.md │ ├── Communication │ ├── README.md │ └── SMBus.JPG │ ├── FetchDecodeExecuteCycle_Pipeline │ ├── Pipeline │ │ └── README.md │ ├── README.md │ └── SuperScaler_CPU │ │ ├── README.md │ │ └── Superscalar_cpu.JPG │ ├── GPU │ └── README.md │ ├── Memory │ ├── Hard_Disk │ │ ├── README.md │ │ ├── SSD │ │ │ └── README.md │ │ └── Terms │ │ │ ├── README.md │ │ │ └── hard_disk.png │ ├── Memory_types.jpg │ ├── Problems │ │ └── README.md │ ├── RAM │ │ ├── FrameBuffer_VideoRAM_VRAM.md │ │ └── README.md │ ├── README.adoc │ ├── ROM │ │ ├── BIOS │ │ │ ├── README.md │ │ │ ├── SMBIOS │ │ │ │ └── README.md │ │ │ ├── Tasks_performed_by_BIOS.md │ │ │ └── VBIOS │ │ │ │ └── README.md │ │ └── README.md │ ├── Virtual_Physical_Memory │ │ ├── Convert_Virtual_to_Physical_Address │ │ │ ├── 16Bit │ │ │ │ └── README.md │ │ │ ├── 32Bit │ │ │ │ └── README.md │ │ │ └── README.md │ │ └── README.md │ └── x86-32_64 Registers.jpg │ ├── Microprocessors │ ├── 8086 │ │ ├── 8086-pin-digram.jpg │ │ └── README.md │ ├── 32Bit-80386 │ │ ├── 80386.png │ │ └── README.md │ └── README.md │ ├── PCI │ ├── BARs │ │ ├── BAR1_Memory_Space_BAR.md │ │ ├── BAR5_Memory_Mapped_Register_Space.md │ │ ├── IO_BASE_BAR.md │ │ ├── README.md │ │ └── Reading_Writing_GPU_Registers.md │ ├── Capabilites │ │ ├── README.md │ │ └── Reading_Capabilites │ │ │ └── README.md │ ├── README.md │ ├── Terms │ │ ├── PCB_Peripheral_Circuit_Board │ │ │ └── README.md │ │ ├── PCI_Bridge │ │ │ └── README.md │ │ ├── PCI_Device │ │ │ ├── README.md │ │ │ └── Steps_of_finding_GPU_Device.md │ │ └── sysfs_file_System │ │ │ └── README.md │ ├── mcfg-xsdt-rdsp.PNG │ └── pci-header.PNG │ ├── Pre-Post-Silicon │ ├── Metal-Semicondr-Insulator_WhySilicon.md │ └── PrePost-Silicon_.md │ ├── README.md │ ├── Terms │ ├── Aperture │ │ └── README.md │ ├── Firmware │ │ ├── Microcode │ │ │ └── README.md │ │ └── README.md │ ├── FrameBuffer │ │ └── README.md │ ├── Microcontroller_Microprocessor_I2C.md │ └── ROM-EPROM │ │ └── README.md │ ├── asic_fpga.md │ ├── power-management │ ├── Current │ │ └── Rheostat │ │ │ └── README.md │ ├── README.md │ ├── Terms.md │ └── Voltage │ │ ├── README.md │ │ ├── Voltage_Rails.md │ │ ├── Voltage_Regulators.md │ │ └── voltage-regulator.PNG │ └── processor_coprocessor.md ├── Networking ├── IP_Address_Types │ ├── Multicast │ │ ├── About-Multicast.md │ │ ├── Multicast_Encryption.md │ │ ├── Protocols │ │ │ └── PIM │ │ │ │ ├── PIM-DM.md │ │ │ │ ├── PIM-SM.md │ │ │ │ └── README.md │ │ └── README.md │ └── README.md ├── Networking_Devices │ ├── Bridge │ │ └── README.md │ ├── Firewall │ │ ├── JIMS │ │ │ ├── JIMS.jpg │ │ │ ├── JIMS_SRX.JPG │ │ │ └── README.adoc │ │ ├── PfSense │ │ │ └── README.adoc │ │ └── README.adoc │ ├── Firewall_Gateway_Router.jpg │ ├── Gateway │ │ └── Juniper_SRX │ │ │ ├── Commands.adoc │ │ │ ├── README.adoc │ │ │ └── SRXSeries_Types │ │ │ ├── BranchSRX │ │ │ ├── README.md │ │ │ └── srx-series.png │ │ │ ├── DataCenterSRX │ │ │ ├── DatacenterSessionSetup │ │ │ │ └── README.md │ │ │ ├── NPU │ │ │ │ └── README.md │ │ │ ├── README.md │ │ │ ├── SPC │ │ │ │ ├── README.md │ │ │ │ └── SPU │ │ │ │ │ └── README.md │ │ │ └── srx-datacenter.png │ │ │ └── README.md │ └── README.md ├── OSI-Layers │ ├── Between_L2_L3 │ │ └── Protocols │ │ │ └── ARP │ │ │ └── README.adoc │ ├── Layer-1 │ │ ├── Media_Types │ │ │ ├── Guided │ │ │ │ ├── Coaxial_Cable │ │ │ │ │ └── README.md │ │ │ │ ├── Fibre_Cable │ │ │ │ │ └── README.md │ │ │ │ ├── Fibre_Optic │ │ │ │ │ ├── Advantages_Disadv_of_FO.md │ │ │ │ │ └── README.md │ │ │ │ ├── Guided-Media.jpg │ │ │ │ ├── README.md │ │ │ │ └── Twisted_Pair │ │ │ │ │ ├── README.md │ │ │ │ │ └── Types_of_Twisted_Pair │ │ │ │ │ └── README.md │ │ │ ├── README.md │ │ │ └── Unguided │ │ │ │ ├── How_it_works.md │ │ │ │ ├── README.md │ │ │ │ └── Types_of_Waves │ │ │ │ ├── Mircowaves │ │ │ │ └── README.md │ │ │ │ ├── README.md │ │ │ │ ├── Radio_Waves │ │ │ │ └── README.md │ │ │ │ └── Type_of_waves.jpg │ │ ├── README.md │ │ └── Terms │ │ │ └── README.md │ ├── Layer-2.5 │ │ └── MPLS │ │ │ └── README.md │ ├── Layer-2 │ │ ├── Channelization_Techniques │ │ │ ├── Layer2-Channelization_Techniques.jpg │ │ │ └── README.md │ │ ├── Medium_Access_Control_Techniques │ │ │ ├── CSMA │ │ │ │ ├── 802_11.png │ │ │ │ └── README.md │ │ │ └── README.md │ │ ├── Protocols │ │ │ └── L2TP │ │ │ │ ├── Packet_Transfer │ │ │ │ ├── L2TP.jpg │ │ │ │ └── README.md │ │ │ │ └── README.md │ │ ├── README.md │ │ ├── Terms │ │ │ ├── PVLAN │ │ │ │ └── README.md │ │ │ ├── README.md │ │ │ ├── VXLAN │ │ │ │ ├── How_VXLAN_Works │ │ │ │ │ ├── README.md │ │ │ │ │ └── vxlan-setup.png │ │ │ │ └── README.md │ │ │ └── images │ │ │ │ ├── VLAN.jpg │ │ │ │ └── r │ │ └── data-link-layer.png │ ├── Layer-3 │ │ ├── Protocols │ │ │ ├── ICMP │ │ │ │ ├── ICMP_Header.md │ │ │ │ ├── ICMP_Terms.md │ │ │ │ ├── README.md │ │ │ │ ├── Trace_Route.md │ │ │ │ └── Traceroute_flow.png │ │ │ ├── IGMP │ │ │ │ ├── About-IGMP.md │ │ │ │ ├── IGMPv1v2v3.md │ │ │ │ └── README.md │ │ │ └── IP_Internet_Protocol │ │ │ │ ├── IP_Addressing_Scheme │ │ │ │ ├── README.md │ │ │ │ └── subnetting.png │ │ │ │ ├── IPv4 │ │ │ │ ├── IPv4_Header │ │ │ │ │ └── README.md │ │ │ │ └── README.md │ │ │ │ ├── IPv4_and_v6_Data_Structure │ │ │ │ └── README.md │ │ │ │ ├── IPv6 │ │ │ │ └── README.md │ │ │ │ └── README.md │ │ ├── README.md │ │ ├── Routing │ │ │ ├── NAT.adoc │ │ │ └── README.adoc │ │ ├── Security │ │ │ ├── AAA_Authentication_Authorization_Accounting │ │ │ │ └── Authentication │ │ │ │ │ ├── README.md │ │ │ │ │ ├── SSO │ │ │ │ │ └── README.md │ │ │ │ │ └── Type_Of_Authentication │ │ │ │ │ ├── AAA_Protocols │ │ │ │ │ └── README.md │ │ │ │ │ ├── Pre_Shared_Key │ │ │ │ │ ├── Adv_Disadv_psk.md │ │ │ │ │ └── README.md │ │ │ │ │ └── README.md │ │ │ ├── Block_Stream_Ciphers │ │ │ │ └── README.adoc │ │ │ ├── Encryption_at_hardware_level.png │ │ │ ├── Hash_MessageDigest_MAC_HMAC │ │ │ │ └── README.adoc │ │ │ ├── Integrity │ │ │ │ └── README.adoc │ │ │ ├── README.adoc │ │ │ ├── Security_Vulnerabilities │ │ │ │ ├── DOS │ │ │ │ │ └── README.md │ │ │ │ ├── Identity_Attack │ │ │ │ │ └── README.md │ │ │ │ ├── README.md │ │ │ │ ├── Replay_Attack │ │ │ │ │ └── README.md │ │ │ │ └── Samba_Bugs │ │ │ │ │ └── README.md │ │ │ └── Terms │ │ │ │ ├── Connected_Security │ │ │ │ ├── README.md │ │ │ │ └── connected_security.JPG │ │ │ │ ├── Cryptanalysis │ │ │ │ └── README.md │ │ │ │ └── README.adoc │ │ └── VPN │ │ │ ├── OpenSource_VPN_server_Clients │ │ │ ├── VPN_Clients │ │ │ │ └── README.md │ │ │ └── VPN_Servers │ │ │ │ ├── Libreswan │ │ │ │ └── README.md │ │ │ │ └── OpenVPN │ │ │ │ ├── Code_Flow.md │ │ │ │ └── README.md │ │ │ ├── Part1_IKE │ │ │ ├── IKE_Headers_Payloads │ │ │ │ ├── Headers │ │ │ │ │ └── README.md │ │ │ │ ├── Payloads │ │ │ │ │ └── README.md │ │ │ │ └── README.md │ │ │ ├── IKEv1 │ │ │ │ ├── ProxyID │ │ │ │ │ └── README.md │ │ │ │ └── README.md │ │ │ ├── IKEv2 │ │ │ │ └── README.md │ │ │ └── README.md │ │ │ ├── Part2_IPSec │ │ │ ├── Advantages_Disadv_of_IPSec.md │ │ │ └── README.md │ │ │ ├── README.md │ │ │ ├── Terms │ │ │ ├── Anti_Replay_Protection │ │ │ │ └── README.md │ │ │ ├── Dead_Peer_Detection │ │ │ │ └── README.md │ │ │ ├── PFS │ │ │ │ └── README.md │ │ │ ├── README.md │ │ │ ├── SP │ │ │ │ └── README.md │ │ │ ├── SPI │ │ │ │ └── README.md │ │ │ ├── Security_Association │ │ │ │ ├── IKE_SA_Example.md │ │ │ │ ├── IPSec_SA_Example.md │ │ │ │ └── README.md │ │ │ └── VPN_NAT_Traversal │ │ │ │ └── README.md │ │ │ └── Types_of_VPN │ │ │ └── README.md │ ├── Layer-4 │ │ ├── Protocols │ │ │ ├── Google_QUIC │ │ │ │ ├── QUIC_over_TCP-3-way-handshake.JPG │ │ │ │ └── README.adoc │ │ │ ├── README.md │ │ │ ├── TCP │ │ │ │ ├── Characteristics │ │ │ │ │ ├── Crash_Recovery │ │ │ │ │ │ └── README.md │ │ │ │ │ ├── Error_Detection │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ └── TCP_SACK.png │ │ │ │ │ ├── Flow_and_Congestion_Control │ │ │ │ │ │ ├── Congestion_Control │ │ │ │ │ │ │ ├── Nagle_Algorithm │ │ │ │ │ │ │ │ └── README.md │ │ │ │ │ │ │ └── README.md │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ └── TCP_Flow_Control │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ ├── Silly_Window_Syndrome │ │ │ │ │ │ │ └── README.md │ │ │ │ │ │ │ ├── Sliding_Window │ │ │ │ │ │ │ └── README.md │ │ │ │ │ │ │ └── Stop-n-Wait │ │ │ │ │ │ │ └── README.md │ │ │ │ │ ├── Lost_Packet_Recovery │ │ │ │ │ │ └── README.md │ │ │ │ │ ├── Multiplexing │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ └── TCP_Multiplexing.JPG │ │ │ │ │ └── Reliability │ │ │ │ │ │ └── README.md │ │ │ │ ├── README.adoc │ │ │ │ ├── TCP_Applications.md │ │ │ │ ├── TCP_Header │ │ │ │ │ └── README.md │ │ │ │ ├── TCP_State_Diagram.gif │ │ │ │ └── Timers │ │ │ │ │ └── README.md │ │ │ └── UDP │ │ │ │ ├── Advantages_Disadv_of_UDP.md │ │ │ │ ├── Features │ │ │ │ └── README.md │ │ │ │ ├── README.md │ │ │ │ └── UDP_Applications.md │ │ └── Socket_Programming │ │ │ ├── APIs_Structures │ │ │ ├── APIs │ │ │ │ ├── Polling_APIs │ │ │ │ │ └── README.md │ │ │ │ ├── README.md │ │ │ │ ├── accept │ │ │ │ │ └── README.md │ │ │ │ ├── bind │ │ │ │ │ └── README.md │ │ │ │ ├── close │ │ │ │ │ └── README.md │ │ │ │ ├── connect │ │ │ │ │ └── README.md │ │ │ │ ├── fcntl │ │ │ │ │ └── README.md │ │ │ │ ├── gethostname │ │ │ │ │ └── README.md │ │ │ │ ├── getpeername │ │ │ │ │ └── README.md │ │ │ │ ├── inet_addr │ │ │ │ │ └── README.md │ │ │ │ ├── listen │ │ │ │ │ ├── How_listen_works_internally │ │ │ │ │ │ └── README.md │ │ │ │ │ └── README.md │ │ │ │ ├── recv │ │ │ │ │ └── README.md │ │ │ │ ├── recvfrom │ │ │ │ │ └── README.md │ │ │ │ ├── select │ │ │ │ │ └── README.md │ │ │ │ ├── send │ │ │ │ │ └── README.md │ │ │ │ ├── sendto │ │ │ │ │ └── README.md │ │ │ │ ├── setsockopt │ │ │ │ │ └── README.md │ │ │ │ ├── shutdown │ │ │ │ │ └── README.md │ │ │ │ └── socket │ │ │ │ │ └── README.md │ │ │ ├── README.md │ │ │ └── Structures │ │ │ │ └── README.md │ │ │ ├── README.md │ │ │ ├── nonblocking_multichat_server.md │ │ │ └── raw_socket.md │ ├── Layer-7 │ │ ├── ApplicationServer_WebServer │ │ │ ├── App_Webserver.png │ │ │ └── README.adoc │ │ ├── Devices │ │ │ └── README.md │ │ ├── P2P_OverlayNetwork │ │ │ ├── Advantages.md │ │ │ ├── Architecture │ │ │ │ ├── Overlay_Network.jpg │ │ │ │ └── README.md │ │ │ ├── Disadvatanges_of_overlay.md │ │ │ ├── README.md │ │ │ ├── Terms │ │ │ │ └── README.md │ │ │ └── Types_of_Overlay_Network │ │ │ │ ├── README.md │ │ │ │ └── Unstructured_Overlay │ │ │ │ ├── Exchanging_data.md │ │ │ │ └── README.md │ │ ├── Protocols │ │ │ ├── DHCP │ │ │ │ ├── Advantages_Disadv_of_DHCP.md │ │ │ │ └── README.md │ │ │ ├── DNS │ │ │ │ ├── DNS_Messages │ │ │ │ │ └── README.md │ │ │ │ ├── README.adoc │ │ │ │ ├── Terms │ │ │ │ │ ├── DNS_Zone │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ └── dns-zones.PNG │ │ │ │ │ └── Domain_Name │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ └── domain-names.png │ │ │ │ ├── forward-lookup.JPG │ │ │ │ ├── reverse-dns.PNG │ │ │ │ └── reverse-lookup.png │ │ │ ├── Email │ │ │ │ ├── IMAP_Internet_Message_Access_Protocol │ │ │ │ │ └── README.md │ │ │ │ ├── POP3_Post_Office_Protocol_v3 │ │ │ │ │ └── README.md │ │ │ │ ├── SMTP_Simple_Mail_Transfer_Protocol │ │ │ │ │ ├── Packet_Flow.md │ │ │ │ │ ├── README.md │ │ │ │ │ ├── SMTPArchitecture.JPG │ │ │ │ │ └── Terms.md │ │ │ │ └── WebMail │ │ │ │ │ └── README.md │ │ │ ├── Encryption_Authentication │ │ │ │ ├── Certificates.adoc │ │ │ │ ├── README.adoc │ │ │ │ └── SSL_Vulnerabilities │ │ │ │ │ ├── Freak_Attack │ │ │ │ │ └── README.md │ │ │ │ │ ├── Heartbleed │ │ │ │ │ └── README.md │ │ │ │ │ ├── Poddle │ │ │ │ │ └── README.md │ │ │ │ │ └── README.md │ │ │ ├── HTTP │ │ │ │ ├── Browsing_Internet_From_Mobile_Phone │ │ │ │ │ └── README.md │ │ │ │ ├── README.adoc │ │ │ │ └── Terms.adoc │ │ │ ├── LDAP │ │ │ │ ├── Implementations_of_ldap │ │ │ │ │ └── Openldap │ │ │ │ │ │ └── README.md │ │ │ │ └── README.md │ │ │ ├── OCSP │ │ │ │ └── README.md │ │ │ ├── README.md │ │ │ ├── SIP │ │ │ │ └── README.md │ │ │ └── oauth │ │ │ │ └── README.md │ │ ├── Terms │ │ │ └── README.md │ │ └── WebServer_WebClient_WebService │ │ │ ├── README.md │ │ │ └── WebClient_Connecting_WebServer │ │ │ └── REST API.adoc │ ├── README.md │ └── Writing_own_Protocol │ │ ├── Designing.md │ │ ├── Pre-requisites.md │ │ └── README.md ├── SS7 │ └── README.md ├── Terms │ └── README.md └── VMWare │ └── Terms.md ├── OOD ├── Amazon_Filtering │ ├── README.md │ └── amazon_filtering_ood.JPG ├── Games │ └── Duck_Game │ │ └── README.md ├── MeetingRoom_Scheduler │ ├── Code │ │ ├── CMakeLists.txt │ │ ├── Driver │ │ │ ├── CMakeLists.txt │ │ │ └── main.cpp │ │ ├── Meeting │ │ │ ├── CMakeLists.txt │ │ │ ├── inc │ │ │ │ └── Meeting.h │ │ │ └── src │ │ │ │ └── Meeting.cpp │ │ ├── MeetingRoom │ │ │ ├── CMakeLists.txt │ │ │ ├── inc │ │ │ │ └── MeetingRoom.h │ │ │ └── src │ │ │ │ └── MeetingRoom.cpp │ │ ├── MeetingScheduler │ │ │ ├── CMakeLists.txt │ │ │ ├── inc │ │ │ │ └── MeetingScheduler.h │ │ │ └── src │ │ │ │ └── MeetingScheduler.cpp │ │ ├── Notification │ │ │ ├── CMakeLists.txt │ │ │ ├── inc │ │ │ │ └── Notification.h │ │ │ └── src │ │ │ │ └── Notification.cpp │ │ ├── User │ │ │ ├── CMakeLists.txt │ │ │ ├── inc │ │ │ │ └── User.h │ │ │ └── src │ │ │ │ └── User.cpp │ │ └── common │ │ │ └── inc │ │ │ └── common.h │ └── README.md ├── README.md └── SpreadSheet │ └── README.md ├── Operating_Systems ├── Design_Goals.md ├── Linux │ ├── Access_Control │ │ ├── Access_Control_List_ACL │ │ │ └── README.md │ │ ├── README.md │ │ ├── Sticky_Bit │ │ │ └── README.md │ │ └── setgid │ │ │ └── README.md │ ├── Administration │ │ ├── Build_Kernel │ │ │ └── README.md │ │ ├── Commands │ │ │ ├── README.adoc │ │ │ └── chroot-jail.png │ │ ├── RemoteLogin │ │ │ └── PasswordLess_Login.md │ │ └── Remote_Command_Execution │ │ │ └── README.md │ ├── Daemons_Processes_Services │ │ ├── README.adoc │ │ └── syslog.adoc │ ├── FileSystem │ │ ├── README.adoc │ │ └── images │ │ │ ├── README.md │ │ │ ├── filesystem-consistency-check-fsck.jpg │ │ │ ├── filesystem.PNG │ │ │ ├── inode.png │ │ │ └── virtual_file_system.PNG │ ├── Kernel │ │ ├── Interrupts │ │ │ ├── README.md │ │ │ ├── interrupt.jpg │ │ │ └── precise_imprecise_interrupts.JPG │ │ ├── README.md │ │ ├── Shell │ │ │ ├── README.md │ │ │ └── shell.PNG │ │ └── System_Calls │ │ │ ├── APIs │ │ │ ├── README.md │ │ │ ├── dup │ │ │ │ └── README.md │ │ │ ├── fopen │ │ │ │ ├── README.md │ │ │ │ └── Reading_from_file │ │ │ │ │ ├── FILE_pointer.md │ │ │ │ │ └── README.md │ │ │ └── inotify.md │ │ │ ├── How_System_Call_Works │ │ │ └── README.md │ │ │ ├── How_to_reduce_time_spent_in_sys_call.md │ │ │ ├── README.md │ │ │ └── SystemCall_vs_NormalCall.md │ ├── Partitions_Mounting │ │ ├── README.md │ │ └── lvm.png │ ├── Protection_Rings │ │ ├── README.md │ │ └── protection_rings-area.JPG │ ├── Resource_Control │ │ ├── Kernel_Namespaces │ │ │ ├── README.md │ │ │ ├── cgroup │ │ │ │ ├── Kernel_Provided_CGroups │ │ │ │ │ └── README.md │ │ │ │ ├── README.md │ │ │ │ └── RHEL_Provided_cgroup │ │ │ │ │ ├── CGroup_Controllers │ │ │ │ │ └── README.md │ │ │ │ │ ├── Persistant_cgroups │ │ │ │ │ └── README.md │ │ │ │ │ ├── README.md │ │ │ │ │ └── Resource_Control_Parameters │ │ │ │ │ └── README.md │ │ │ ├── ipc │ │ │ │ └── README.md │ │ │ ├── mnt │ │ │ │ └── README.md │ │ │ ├── net │ │ │ │ └── README.md │ │ │ ├── pid │ │ │ │ └── README.md │ │ │ ├── user │ │ │ │ └── README.md │ │ │ └── uts │ │ │ │ └── README.md │ │ └── README.md │ ├── Terms │ │ └── README.md │ └── Troubleshooting │ │ ├── Network │ │ ├── ConnectionRefused_Overflow_Underflow │ │ │ └── README.md │ │ ├── README.md │ │ └── Terminating_Network_Process.md │ │ └── README.adoc ├── Linux_vs_Windows.md ├── README.md ├── RTOS │ └── README.md ├── Types_of_OS │ └── README.md ├── Virtualization │ ├── Advantages_Disadv.md │ ├── History_of_Virtualization.md │ ├── How_Virtualization_Works │ │ ├── Type1_Hypervisor │ │ │ ├── How_Type1_Hypervisor_works.jpg │ │ │ └── README.md │ │ └── Type2_Hypervisor │ │ │ └── README.md │ ├── README.md │ ├── SRIOV │ │ ├── README.md │ │ └── sriovarchitecture.png │ ├── Type1_Type2_Hypervisors.jpg │ ├── Types_of_Virtualization.md │ └── VMM_Virtual_Machine_Monitor.md └── Windows │ ├── API_Structures │ └── README.md │ ├── Active_Directory │ ├── Commands.md │ ├── Computer_Object │ │ └── README.md │ ├── GPO │ │ └── README.md │ ├── Install_Remove_Trust.md │ ├── README.md │ ├── SID │ │ └── README.md │ ├── Terms │ │ └── README.adoc │ ├── UUID │ │ └── README.md │ └── structure-of-ad.png │ ├── COM │ └── README.md │ ├── Desktop_Application │ ├── README.md │ └── traditional_Windows_app.md │ ├── Editors │ └── VisualStudioCode │ │ ├── Access_Remote_Machine │ │ └── README.md │ │ ├── README.md │ │ └── VSCode_vs_VisualStudio │ │ └── README.md │ ├── IDE │ └── Microsoft_Visual_Studio │ │ ├── Debugger │ │ └── Memory_Leak_Detection │ │ │ └── CRT │ │ │ └── README.md │ │ ├── File_Types │ │ ├── README.md │ │ └── vcxproj │ │ │ └── Examples │ │ │ └── sum.vcxproj │ │ └── README.md │ ├── Installers │ └── InstallSheild │ │ └── README.md │ ├── MFC │ └── README.md │ └── Troubleshooting │ └── README.md ├── Projects ├── C++ │ ├── Median_Calculation_from_float_array │ │ ├── Code │ │ │ └── main.cpp │ │ └── README.md │ ├── Query_Active_Directory │ │ └── README.md │ ├── Read_ActiveDirectory_EventLogs │ │ ├── EvtSubscribe.cpp │ │ └── README.adoc │ └── Read_File_Custom_Dump_XMLTxtJsonConsole │ │ ├── CMakeLists.txt │ │ ├── Display │ │ ├── CMakeLists.txt │ │ ├── inc │ │ │ └── Display.h │ │ └── src │ │ │ └── Display.cpp │ │ ├── Driver │ │ ├── CMakeLists.txt │ │ └── main.cpp │ │ ├── Parser │ │ ├── CMakeLists.txt │ │ ├── inc │ │ │ └── Parser.h │ │ └── src │ │ │ └── Parser.cpp │ │ ├── README.md │ │ ├── Tests │ │ ├── CMakeLists.txt │ │ ├── inc │ │ │ └── tests.h │ │ └── src │ │ │ └── test1.cc │ │ ├── common │ │ └── inc │ │ │ ├── common.h │ │ │ ├── exception.h │ │ │ └── null_pointer_exception.h │ │ └── input.txt ├── Cross_Platform │ └── Read_csv_files_Find_Total_Spending │ │ ├── CMakeLists.txt │ │ ├── README.md │ │ ├── Table01.csv │ │ ├── Table02.csv │ │ ├── Table03.csv │ │ ├── main.cpp │ │ └── main.h ├── Machine_Learning │ └── Image_Classification_into_10_categories_0_through_9 │ │ ├── README.adoc │ │ └── image_classification.py ├── Python │ ├── Etherscan_APIs │ │ └── README.md │ └── README.md ├── README.adoc ├── React-Native │ └── StickerSmash │ │ ├── README.adoc │ │ ├── app.json │ │ ├── app │ │ ├── _layout.tsx │ │ └── index.tsx │ │ ├── assets │ │ ├── a │ │ ├── fonts │ │ │ └── SpaceMono-Regular.ttf │ │ └── images │ │ │ ├── adaptive-icon.png │ │ │ ├── background-image.png │ │ │ ├── emoji1.png │ │ │ ├── emoji2.png │ │ │ ├── emoji3.png │ │ │ ├── emoji4.png │ │ │ ├── emoji5.png │ │ │ ├── emoji6.png │ │ │ ├── favicon.png │ │ │ ├── icon.png │ │ │ └── splash.png │ │ ├── eas.json │ │ ├── package.json │ │ └── tsconfig.json ├── React │ └── TicTacToeGame │ │ ├── README.adoc │ │ ├── package.json │ │ ├── public │ │ └── index.html │ │ ├── src │ │ ├── App.js │ │ ├── index.js │ │ └── styles.css │ │ └── without_state1.png ├── Rust │ ├── CICDAsGithubAction_Readymlfile_hashRepo_SendtoHttpServer │ │ ├── Cargo.toml │ │ ├── README.md │ │ └── src │ │ │ ├── common.rs │ │ │ ├── create_send.rs │ │ │ ├── git_handler.rs │ │ │ ├── main.rs │ │ │ └── parse.rs │ └── REST_API_HTTP_Server_ActixWeb │ │ ├── Code │ │ ├── Simple_http_server.md │ │ └── http_server_storing_info.adoc │ │ └── README.adoc ├── TLS_SSL │ ├── C++_SSL_Server_Client │ │ ├── README.md │ │ ├── certAndKeys │ │ │ ├── client.crt │ │ │ ├── client.csr │ │ │ ├── client.key │ │ │ ├── server.crt │ │ │ └── server.key │ │ ├── ssl-client.cpp │ │ └── ssl-server.cpp │ ├── Mutual_TLS_client-sending-its-certs │ │ ├── SSL-CLIENT-SENDING-CLIENT-CERTIFICATE │ │ ├── SSL-SERVER │ │ ├── test-ssl-client-Sending-Client-Certificate.c │ │ └── test-ssl-server.c │ ├── Normal_TLS_client-notsending-itsCerts │ │ ├── SSL-CLIENT │ │ ├── test-ssl-client.c │ │ ├── test-ssl-client.c-Working-3Dec │ │ ├── test-ssl-server.c │ │ └── test-ssl-server.c-Working-3Dec │ └── keyAndCerts │ │ ├── ssl-client-certandkey.crt │ │ ├── ssl-client-certandkey.csr │ │ ├── ssl-client-key.pem │ │ ├── ssl-server-certandkey.crt │ │ └── ssl-server-certandkey.srl ├── ThreadPool-64Pools-4ThreadPerPool │ ├── test-main.c │ ├── threadpool.c │ └── threadpool.h └── golang │ ├── README.adoc │ ├── build.sh │ ├── cli │ └── main.go │ ├── go.mod │ └── usage │ └── system_usage.go ├── README.md ├── System-Design ├── Concepts │ ├── AWS │ │ ├── Analytics │ │ │ ├── Athena │ │ │ │ └── README.md │ │ │ ├── CodePipeline │ │ │ │ └── README.md │ │ │ ├── ElasticSearch_OpenSearch │ │ │ │ └── README.md │ │ │ ├── Glue │ │ │ │ └── README.md │ │ │ ├── Kinesis │ │ │ │ └── README.md │ │ │ └── QuickSight │ │ │ │ └── README.md │ │ ├── Application_Integration │ │ │ ├── SNS_SQS │ │ │ │ └── README.md │ │ │ └── SWF │ │ │ │ └── README.md │ │ ├── Artificial_Intelligence │ │ │ ├── README.md │ │ │ └── Rekognition │ │ │ │ └── README.md │ │ ├── Business_Applications │ │ │ └── AWS_Connect │ │ │ │ └── README.md │ │ ├── Compute │ │ │ ├── EC2 │ │ │ │ └── README.md │ │ │ ├── ELB_Elastic_Load_Balancer │ │ │ │ └── README.md │ │ │ ├── EMR │ │ │ │ └── README.md │ │ │ ├── Elastic_BeanStalk │ │ │ │ └── README.md │ │ │ ├── Lambda │ │ │ │ └── README.md │ │ │ ├── Light_Sail │ │ │ │ ├── README.md │ │ │ │ ├── light-sail1.PNG │ │ │ │ └── light-sail2.PNG │ │ │ └── Outpost │ │ │ │ └── README.md │ │ ├── Configuration_Management │ │ │ └── Quick_Start │ │ │ │ └── README.md │ │ ├── Container │ │ │ ├── ECS │ │ │ │ └── README.md │ │ │ ├── EKS │ │ │ │ └── README.md │ │ │ └── Fargate │ │ │ │ └── README.md │ │ ├── Cost_Management │ │ │ ├── Billing │ │ │ │ └── README.md │ │ │ ├── Budgets │ │ │ │ └── README.md │ │ │ ├── Cost_Explorer │ │ │ │ └── README.md │ │ │ └── MarketPlace │ │ │ │ └── README.md │ │ ├── Customer_Enablement │ │ │ ├── Free_Tier_and_Pricing │ │ │ │ └── README.md │ │ │ └── Support │ │ │ │ └── README.md │ │ ├── Design │ │ │ └── Well-Architected_Framework │ │ │ │ └── README.md │ │ ├── Developer_Tools │ │ │ ├── CDK │ │ │ │ └── README.md │ │ │ ├── CodeStar │ │ │ │ └── README.md │ │ │ └── X-Ray │ │ │ │ └── README.md │ │ ├── Internet_of_Things │ │ │ └── Core │ │ │ │ └── README.md │ │ ├── Machine_Learning │ │ │ └── SageMaker │ │ │ │ └── README.md │ │ ├── Management_Governance │ │ │ ├── AWS_Organizations │ │ │ │ └── README.md │ │ │ ├── CloudFormation │ │ │ │ └── README.md │ │ │ ├── CloudTrail │ │ │ │ └── README.md │ │ │ ├── CloudWatch │ │ │ │ ├── README.md │ │ │ │ └── cloudwatch.JPG │ │ │ ├── Config │ │ │ │ └── README.md │ │ │ ├── Kinesis │ │ │ │ └── README.md │ │ │ ├── OpsWork │ │ │ │ └── README.md │ │ │ ├── README.md │ │ │ ├── System_Manager_SSM │ │ │ │ └── README.md │ │ │ └── Trusted_Advisor │ │ │ │ ├── README.md │ │ │ │ └── trusted-advisor.JPG │ │ ├── Media │ │ │ └── Elastic_Transcoder │ │ │ │ └── README.md │ │ ├── Migration_and_Transfer │ │ │ ├── CAF │ │ │ │ └── README.md │ │ │ ├── DataSync │ │ │ │ └── README.md │ │ │ ├── README.md │ │ │ └── Snow_Family │ │ │ │ ├── README.md │ │ │ │ └── snowball.png │ │ ├── Network │ │ │ ├── API_Gateway │ │ │ │ └── README.md │ │ │ ├── CloudFront │ │ │ │ └── README.md │ │ │ ├── Managed_BlockChain │ │ │ │ └── README.md │ │ │ └── Route53 │ │ │ │ └── README.md │ │ ├── README.md │ │ ├── Security │ │ │ ├── AWS_Artifact │ │ │ │ └── README.md │ │ │ ├── Cloud_HSM │ │ │ │ └── README.md │ │ │ ├── Detective │ │ │ │ └── README.md │ │ │ ├── GuardDuty │ │ │ │ └── README.md │ │ │ ├── IAM │ │ │ │ └── README.md │ │ │ ├── Inspector │ │ │ │ └── README.md │ │ │ ├── KMS │ │ │ │ └── README.md │ │ │ ├── README.md │ │ │ ├── Shared_Responsibility_Model │ │ │ │ └── README.md │ │ │ ├── Sheild │ │ │ │ └── README.md │ │ │ └── WAF │ │ │ │ └── README.md │ │ ├── Storage │ │ │ ├── Block │ │ │ │ └── EBS │ │ │ │ │ ├── README.md │ │ │ │ │ └── ebs_snapshots.JPG │ │ │ ├── File │ │ │ │ └── EFS │ │ │ │ │ └── README.md │ │ │ ├── Object_Store │ │ │ │ └── S3.adoc │ │ │ └── Storage_Gateway │ │ │ │ └── README.md │ │ └── Terms │ │ │ ├── ACL_security_group.JPG │ │ │ ├── README.adoc │ │ │ ├── north-america-political-map.jpg │ │ │ ├── regions_and_az.JPG │ │ │ └── transit_gateway.png │ ├── Automation │ │ └── Jenkins │ │ │ ├── Jenkinsfile │ │ │ ├── README.md │ │ │ ├── build_test_deploy.PNG │ │ │ └── pull_from_git_build.PNG │ ├── Bottlenecks_of_Distributed_Systems │ │ ├── Administrative_Scalability │ │ │ └── README.md │ │ ├── Admission_Control │ │ │ └── README.md │ │ ├── Communication_Control │ │ │ └── README.md │ │ ├── Consistency_Problem │ │ │ └── README.md │ │ ├── Developer_idealistic_mindset │ │ │ └── README.md │ │ ├── README.md │ │ └── Size_Scaling │ │ │ └── README.md │ ├── CI-CD │ │ ├── README.md │ │ └── phases-of-cd.png │ ├── Cache │ │ ├── DB_Caches │ │ │ └── README.adoc │ │ ├── README.adoc │ │ └── images │ │ │ ├── t │ │ │ ├── web-browser-cache.png │ │ │ └── web-proxy-cache.png │ ├── Changing_Requirements │ │ └── README.md │ ├── Containers │ │ ├── Docker │ │ │ └── README.md │ │ ├── Kubernets │ │ │ ├── Helm-Chart │ │ │ │ ├── Files_in_HelmChart │ │ │ │ │ └── README.md │ │ │ │ └── README.md │ │ │ ├── Install_Kubernets │ │ │ │ ├── README.md │ │ │ │ └── minikube │ │ │ │ │ └── README.md │ │ │ ├── README.md │ │ │ ├── Terms │ │ │ │ ├── README.adoc │ │ │ │ └── istio │ │ │ │ │ ├── README.adoc │ │ │ │ │ └── images │ │ │ │ │ └── istio_sidecar.puml │ │ │ └── images │ │ │ │ ├── kubernets_architecture.puml │ │ │ │ └── kubernets_architecture4.png │ │ ├── README.adoc │ │ ├── Run_Application_in_Container.md │ │ ├── TraditionalOS_vs_Containers.jpg │ │ ├── docker_image_to_container.PNG │ │ ├── images │ │ │ ├── Container.puml │ │ │ └── container.png │ │ └── kubernets_pod_worker_node.png │ ├── Databases │ │ ├── DataWareHouse │ │ │ ├── Aws_RedShift │ │ │ │ └── README.md │ │ │ └── README.md │ │ ├── Database_Scaling │ │ │ ├── 1.Replication │ │ │ │ ├── README.md │ │ │ │ └── master_slave.PNG │ │ │ ├── README.md │ │ │ └── Sharding │ │ │ │ ├── Partitioning_by_hash_of_keys.PNG │ │ │ │ ├── Partitioning_by_term.PNG │ │ │ │ ├── README.adoc │ │ │ │ ├── rebalancing_fixed_no_of_partitions.PNG │ │ │ │ ├── request_routing.PNG │ │ │ │ └── zookeeper.PNG │ │ ├── Migrating_DB │ │ │ ├── AWS_DMS │ │ │ │ └── README.md │ │ │ └── README.md │ │ ├── NOSQL │ │ │ ├── AWS_DynamoDB │ │ │ │ ├── README.md │ │ │ │ └── dynamodb.png │ │ │ ├── Cassandra │ │ │ │ └── README.md │ │ │ ├── DocumentDB │ │ │ │ ├── Amazon_DocumentDB │ │ │ │ │ └── README.md │ │ │ │ └── MongoDB │ │ │ │ │ └── README.md │ │ │ ├── Graph_DB │ │ │ │ ├── AWS_Neptune │ │ │ │ │ └── README.md │ │ │ │ ├── Facebook_TAO │ │ │ │ │ └── README.md │ │ │ │ └── README.md │ │ │ ├── README.md │ │ │ └── Wide_Coloumn │ │ │ │ ├── HBase │ │ │ │ └── README.md │ │ │ │ └── README.adoc │ │ ├── Object_Storage │ │ │ └── README.adoc │ │ ├── README.adoc │ │ ├── SQL │ │ │ ├── Amazon_Aurora │ │ │ │ └── README.md │ │ │ ├── Amazon_RDS │ │ │ │ └── README.md │ │ │ ├── README.md │ │ │ ├── SQLite │ │ │ │ └── README.md │ │ │ └── postgresql │ │ │ │ └── README.md │ │ └── Terms │ │ │ ├── Isolation │ │ │ ├── README.md │ │ │ └── images │ │ │ │ ├── dirty_read1.JPG │ │ │ │ ├── dirty_write.JPG │ │ │ │ ├── lost_update.JPG │ │ │ │ ├── non_repeatable_read.JPG │ │ │ │ ├── phantom_read.JPG │ │ │ │ └── write_skew.JPG │ │ │ └── Normalization │ │ │ └── README.adoc │ ├── Decentralization.adoc │ ├── Devops │ │ ├── Area-Matrix.md │ │ └── README.md │ ├── DistributedSystems │ │ ├── Batch_Processing │ │ │ ├── README.adoc │ │ │ └── images │ │ │ │ ├── sort-merge-join.PNG │ │ │ │ └── test │ │ ├── README.md │ │ └── Stream_Processing │ │ │ └── README.md │ ├── GCP │ │ ├── README.md │ │ ├── gcp.JPG │ │ └── gke1.JPG │ ├── Hashing │ │ ├── Example │ │ │ ├── Consistent Hashing.png │ │ │ └── README.md │ │ ├── README.md │ │ └── images │ │ │ ├── Consistent_Hashing1.png │ │ │ ├── Consistent_Hashing_Addition.png │ │ │ ├── Consistent_Hashing_Deletion.png │ │ │ ├── Consistent_Hashing_VirtualNodes.png │ │ │ └── t │ ├── Logging_and_Monitoring │ │ ├── Grafana │ │ │ └── README.md │ │ └── Prometheus │ │ │ └── README.md │ ├── MOM_ESB │ │ ├── Apache_Kafka │ │ │ ├── README.md │ │ │ ├── Terms │ │ │ │ └── README.md │ │ │ └── images │ │ │ │ ├── high-water-mark.JPG │ │ │ │ ├── kafka.puml │ │ │ │ ├── kafka1.png │ │ │ │ └── kafka3.png │ │ └── README.md │ ├── MicroServices │ │ ├── README.adoc │ │ └── macro-micro.png │ ├── Number_System │ │ ├── README.md │ │ └── images │ │ │ ├── dec_to_base62.jpg │ │ │ ├── dec_to_binary.jpg │ │ │ └── t │ ├── Pagination.adoc │ ├── Proxy_Servers │ │ └── README.adoc │ ├── README.md │ ├── Scrum │ │ └── README.md │ ├── Software_Architecture_Patterns │ │ ├── README.md │ │ └── layered_arch.PNG │ ├── Terms │ │ ├── Bootstraping │ │ │ └── README.md │ │ ├── Consensus │ │ │ └── README.adoc │ │ ├── Flash_Crowd │ │ │ └── README.md │ │ ├── README.adoc │ │ └── Transaction │ │ │ └── README.md │ ├── architecture-types-of-distributed-systems.png │ ├── distributed-system-middleware-layer.PNG │ └── git │ │ └── README.adoc ├── Database_Design │ └── README.adoc ├── Non_Scalable │ └── parking-lot │ │ └── README ├── README ├── Scalable │ ├── BOE │ │ └── README.md │ ├── BookMyShow_TicketMaster │ │ ├── README.md │ │ └── bookmyshow-hld.png │ ├── Botnet │ │ ├── Botnet_Architecture.JPG │ │ ├── README.md │ │ └── lifecycle-of-bot.JPG │ ├── Cashback │ │ ├── README.md │ │ └── images │ │ │ ├── cashback_system.png │ │ │ ├── cashback_system.svg │ │ │ ├── cashback_system.txt │ │ │ └── hld.puml │ ├── Delivery_Apps │ │ └── Milk_Delivery │ │ │ └── README.md │ ├── Distributed-Cache-System │ │ ├── Distributed_Cache_overall.png │ │ └── README.md │ ├── Distributed_Downloading_Systems │ │ ├── BitTorrent │ │ │ ├── Advantages_Disadv_of_Bittorrent.md │ │ │ ├── Bittorrent_Architecture1.jpg │ │ │ ├── Bittorrent_vs_http.md │ │ │ ├── Bottlenecks_of_Bittorrent.md │ │ │ ├── Example_of_download.md │ │ │ ├── README.md │ │ │ └── Terms.md │ │ ├── Freenet │ │ │ ├── Adv_Disadv_freenet.md │ │ │ ├── Message_Flow │ │ │ │ ├── README.md │ │ │ │ ├── Routing │ │ │ │ │ └── README.md │ │ │ │ └── freenet_message_flow.JPG │ │ │ ├── Message_Types │ │ │ │ └── README.md │ │ │ ├── README.md │ │ │ └── Security │ │ │ │ └── README.md │ │ ├── Gnutella │ │ │ ├── Architecture │ │ │ │ ├── Gnutella.jpg │ │ │ │ └── README.md │ │ │ ├── Message_Types.md │ │ │ ├── Node_Types.md │ │ │ ├── Problems_with_Gnutella.md │ │ │ └── README.md │ │ ├── Online_Music_Napster │ │ │ ├── README.md │ │ │ └── napster.JPG │ │ └── README.md │ ├── Distributed_File_System │ │ ├── AFS │ │ │ └── README.md │ │ ├── GFS │ │ │ ├── README.md │ │ │ └── gfs_architecture.JPG │ │ └── README.md │ ├── Distributed_Hash_Table │ │ ├── Chord │ │ │ ├── README.md │ │ │ └── chord-dht.JPG │ │ ├── Dynamo │ │ │ └── README.md │ │ ├── Kademlia │ │ │ ├── README.md │ │ │ └── XOR_Geometry │ │ │ │ └── README.md │ │ ├── Pastry │ │ │ └── README.md │ │ └── README.md │ ├── Distributed_Storage_of_Structured_Data │ │ └── BigTable │ │ │ └── README.md │ ├── Dropbox_or_GoogleDrive │ │ ├── Client_Application │ │ │ ├── Questions_about_chunks │ │ │ │ └── README.md │ │ │ ├── README.md │ │ │ └── dropbox-client-application.PNG │ │ ├── Dropbox.jpg │ │ └── README.md │ ├── Ecommerce_Systems │ │ └── Amazon │ │ │ └── README.adoc │ ├── Facebook │ │ ├── Fake_Account_Detection │ │ │ ├── README.md │ │ │ └── fb-fakeaccount-detect.png │ │ ├── News Feed │ │ │ ├── Extended_BOE.md │ │ │ ├── README.md │ │ │ └── facebook_newsfeed.png │ │ └── README.md │ ├── Financial │ │ └── Mint │ │ │ └── README.adoc │ ├── Google_Adwords │ │ └── README.md │ ├── IDE_Visual_Studio │ │ ├── README.md │ │ └── vscode.png │ ├── Instagram_Flickr_Picasa │ │ └── README.md │ ├── Kukai_Tezos_Wallet │ │ └── README.adoc │ ├── Messengers │ │ ├── FB_Messenger │ │ │ ├── Facebook_Messenger.jpg │ │ │ ├── README.md │ │ │ ├── fb-get-friendlist.png │ │ │ ├── fb-get-live-friends.png │ │ │ ├── fb-messenger-send-hi.png │ │ │ └── images │ │ │ │ ├── Facebook_Messenger1.jpg │ │ │ │ └── r │ │ ├── README.md │ │ ├── Sending_Bulk_SMS │ │ │ └── README.md │ │ ├── Snap_Chat │ │ │ ├── DB_Design │ │ │ │ └── README.md │ │ │ ├── README.md │ │ │ └── snapchat1.jpg │ │ └── Whatsapp │ │ │ ├── README.md │ │ │ └── images │ │ │ ├── signal_protocol_whatsapp.png │ │ │ ├── signal_protocol_whatsapp.puml │ │ │ └── signal_protocol_whatsapp.txt │ ├── Notification │ │ └── Price_Drop_Notification_Service │ │ │ ├── README.md │ │ │ └── images │ │ │ ├── price-drop-notification-service.JPG │ │ │ └── t │ ├── Page_Rank │ │ └── README.md │ ├── Pastebin_PrivateBin_Hastebin_ControlC │ │ ├── Pastebin.jpg │ │ └── README.md │ ├── README.md │ ├── Rate_Limiter │ │ └── README.md │ ├── SWG_Secure_Web_Gateway │ │ └── README.adoc │ ├── Scale_on_Cloud │ │ ├── README.md │ │ └── images │ │ │ └── scale_on_cloud.jpg │ ├── Skype │ │ └── README.md │ ├── Web_Crawler │ │ └── README.md │ ├── Webserver-Static-Page │ │ └── design-description │ ├── Yellow_Pages │ │ └── README.adoc │ ├── tinyurl │ │ ├── README.md │ │ └── TinyURL.jpg │ ├── twitter │ │ ├── README.adoc │ │ └── Twitter.jpg │ ├── typeahead-suggestions │ │ └── README.md │ ├── uber │ │ └── design.md │ ├── yelpProximityServer_nearbyRecommendationSystem │ │ └── README.adoc │ ├── yelp_proximity_server │ │ └── images │ │ │ └── t │ └── youtube │ │ ├── Generic_Design.adoc │ │ ├── images │ │ ├── f │ │ └── youtube.png │ │ └── youtube_Ingestion_pipeline.md ├── System_Design_Patterns │ ├── README.adoc │ └── images │ │ ├── sidecar_container.png │ │ └── t └── grokking-system-design-educative │ └── README ├── Testing └── Test-Framework │ ├── CTest │ └── README.md │ ├── Catch2 │ └── README.md │ ├── GoogleTest │ └── README.md │ ├── Python │ ├── Behave │ │ └── README.md │ ├── Lettuce │ │ └── README.md │ ├── README.adoc │ ├── Robot_Framework │ │ ├── README.md │ │ └── Test_Cases │ │ │ └── README.md │ ├── Testify │ │ └── README.md │ ├── nose2 │ │ └── README.md │ └── pytest │ │ └── README.md │ └── README.md ├── Threads_Processes_IPC ├── EXEC_Family_of_Functions │ └── README.md ├── IPC │ ├── FIFO │ │ └── README.md │ ├── IPC_Design_Issues │ │ └── README.md │ ├── Message_Queue │ │ └── README.md │ ├── Pipe │ │ └── README.md │ ├── Questions │ │ ├── Building_H2O.adoc │ │ ├── Fizz_Buzz_Multithreaded.adoc │ │ ├── Print_FooBar_Alternately.md │ │ ├── Print_Zero_Even_Odd.adoc │ │ └── Print_in_order_Execute_3_funs_in_order.md │ ├── README.md │ ├── Shared_Memory.md │ └── synchronization │ │ ├── Condition_Variable │ │ └── README.md │ │ ├── Mutex │ │ ├── Mutex_Types.md │ │ └── README.adoc │ │ ├── README.md │ │ ├── Rwlock │ │ └── README.md │ │ ├── Semaphore │ │ ├── Datastructures_API.md │ │ └── README.md │ │ ├── SpinLock │ │ └── README.md │ │ ├── Synchronized_Java │ │ └── README.md │ │ ├── TSL_Instruction │ │ └── README.md │ │ ├── XCHG_Instruction │ │ └── README.md │ │ ├── golang_channel │ │ └── README.adoc │ │ └── python_queue │ │ └── README.adoc ├── MultiCPU_MultiCore │ ├── README.md │ └── multicore.JPG ├── Processes │ └── README.adoc ├── README.adoc ├── Terms │ └── README.adoc ├── Threads │ ├── Code │ │ ├── BookMyShow │ │ │ ├── Threaded_bms.cpp │ │ │ └── Threaded_bms_client.cpp │ │ ├── C++ │ │ │ └── README.md │ │ ├── Java │ │ │ └── README.md │ │ ├── Joinable_Detachable_Threads │ │ │ └── README.md │ │ ├── POSIX │ │ │ └── README.md │ │ ├── Python │ │ │ └── README.md │ │ ├── README.md │ │ ├── Rust │ │ │ └── README.md │ │ ├── Scheduler │ │ │ ├── Code-Approach2 │ │ │ │ ├── README.md │ │ │ │ └── main.cpp │ │ │ └── README.md │ │ ├── Windows │ │ │ └── README.md │ │ └── golang │ │ │ └── README.adoc │ ├── README.md │ ├── Thread_Priorities │ │ └── README.md │ ├── Why_Threads.md │ ├── thread_creation_attributes.c │ └── userspace_kernelspace_threads.PNG └── pageHitCount-Last10Sec-Last1Hour.cpp ├── Versioning_VersionNumbers └── README.md ├── assembly ├── Examples │ ├── Adding_2_Variables.md │ └── Multiplying_4_Numbers.md ├── Memory_layout_of_object.md ├── README.md └── arguments_to_function.c ├── books └── clean-code │ ├── Clean_Code.pdf │ ├── Meaningful-Names │ └── README └── hitCounter-last10secs-last1hour.c /BlockChain/Ethereum/README.md: -------------------------------------------------------------------------------- 1 | **Ethereum** 2 | - [Characteristics](#ch) 3 | 4 | ## Ethereum 5 | - This is open source, globally decentralized computing infrastructure that executes programs called smart contracts. 6 | - It uses a blockchain to synchronize and store the system’s state, along with a cryptocurrency called ether to meter and constrain execution resource costs. 7 | 8 | -------------------------------------------------------------------------------- /Build-System/Cmake/Examples/Porting/Windows_to_Linux/README.md: -------------------------------------------------------------------------------- 1 | ## Ways of Porting Visual Studio [Static Library](/Languages/Programming_Languages/C/Libraries/Static/) to Linux 2 | - **1. cmake** 3 | - Write CMakeLists.txt file on Linux, provide all cpp, h files explicitly 4 | - **2. Convert .sln to Makefile** 5 | - Tool [makeitso](https://code.google.com/archive/p/make-it-so/) 6 | -------------------------------------------------------------------------------- /DS_Questions/Algorithms/Backtracking/backtracking.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/DS_Questions/Algorithms/Backtracking/backtracking.jpeg -------------------------------------------------------------------------------- /DS_Questions/Algorithms/Backtracking/backtracking1.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/DS_Questions/Algorithms/Backtracking/backtracking1.jpeg -------------------------------------------------------------------------------- /DS_Questions/Algorithms/Boyer_Moore/README.md: -------------------------------------------------------------------------------- 1 | ## Booye Moore 2 | - **Usecases** 3 | - [1. Finding Majority Element](Find_Majority_Element) 4 | -------------------------------------------------------------------------------- /DS_Questions/Algorithms/DFS/README.md: -------------------------------------------------------------------------------- 1 | Problems 2 | - [Word Break](/DS_Questions/Questions/Strings/SubString_SubSequence/SubString_SubArray/Word_Break.md) 3 | -------------------------------------------------------------------------------- /DS_Questions/Algorithms/Divide_and_Conquer/README.md: -------------------------------------------------------------------------------- 1 | ## Divide & Conquer 2 | - solves problems by combining the solutions to subproblems. 3 | -------------------------------------------------------------------------------- /DS_Questions/Algorithms/Dynamic_Programming/nth-fibonacci.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/DS_Questions/Algorithms/Dynamic_Programming/nth-fibonacci.JPG -------------------------------------------------------------------------------- /DS_Questions/Algorithms/README.md: -------------------------------------------------------------------------------- 1 | ## Algorithm 2 | - **What?** A sequence of computational steps that transform the input into the output. 3 | -------------------------------------------------------------------------------- /DS_Questions/Data_Structures/Graphs/Directed_Undirected/Directed/De_Bruijn_Graph/README.md: -------------------------------------------------------------------------------- 1 | ## de Bruijn Graph 2 | - Directed graph of k symbols representing overlap between symbols. 3 | - n = dimension, k = symbols, kn = vertices, Diameter = n 4 | - A routing algorithm can route to any destination in n hops by successively shifting in the bits of the destination identifier. 5 | 6 | 7 | -------------------------------------------------------------------------------- /DS_Questions/Data_Structures/Graphs/Directed_Undirected/Directed/De_Bruijn_Graph/de_Bruijn_graph.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/DS_Questions/Data_Structures/Graphs/Directed_Undirected/Directed/De_Bruijn_Graph/de_Bruijn_graph.JPG -------------------------------------------------------------------------------- /DS_Questions/Data_Structures/Graphs/Directed_Undirected/Hypercube/From_Point_to_Tesseract.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/DS_Questions/Data_Structures/Graphs/Directed_Undirected/Hypercube/From_Point_to_Tesseract.gif -------------------------------------------------------------------------------- /DS_Questions/Data_Structures/Hash_Tables/Implementations/2-left_2-Choice_HashTable/2-left-hashing.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/DS_Questions/Data_Structures/Hash_Tables/Implementations/2-left_2-Choice_HashTable/2-left-hashing.JPG -------------------------------------------------------------------------------- /DS_Questions/Data_Structures/Hash_Tables/images/ht_implementation_array_of_linked_lists.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/DS_Questions/Data_Structures/Hash_Tables/images/ht_implementation_array_of_linked_lists.jpg -------------------------------------------------------------------------------- /DS_Questions/Data_Structures/Linked_Lists/README.adoc: -------------------------------------------------------------------------------- 1 | :toc: 2 | :toclevels: 6 3 | 4 | link: https://amitkumar50.github.io/DS_Questions/Data_Structures/Linked_List/Compared_c++_rust_python_go.html [ComparedC,C++,Rust,Python,Go] 5 | -------------------------------------------------------------------------------- /DS_Questions/Data_Structures/Probabilistic_Data_Structures/Bloom_Filter/Operations_Insert_Delete_Union/README.md: -------------------------------------------------------------------------------- 1 | ## Operations on Bloom Filter 2 | - BF is bit array contaning 0 and 1s. 3 | ```c 4 | BF = 0 1 0 1 0 0 1 1 1 1 5 | ``` 6 | - [Insert element in BF](Pseudo_code) 7 | - [Delete element from BF](Pseudo_code) 8 | - **Merging 2 bloom filters/Union of 2 Bloom Filters** 9 | - Bitwise OR 2 bit arrays 10 | -------------------------------------------------------------------------------- /DS_Questions/Data_Structures/Queue/Priority_Queue/images/max-heap.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/DS_Questions/Data_Structures/Queue/Priority_Queue/images/max-heap.PNG -------------------------------------------------------------------------------- /DS_Questions/Data_Structures/Queue/Priority_Queue/images/t: -------------------------------------------------------------------------------- 1 | t 2 | -------------------------------------------------------------------------------- /DS_Questions/Data_Structures/Queue/README.md: -------------------------------------------------------------------------------- 1 | ## Queues 2 | - Can have **Duplicate keys**. Priority queues can have duplicate keys. 3 | ```c 4 | Valid Priority Queue: 5 | Key | Value 6 | 5 1 7 | 5 3 8 | 4 10 9 | ``` 10 | -------------------------------------------------------------------------------- /DS_Questions/Data_Structures/Trees/BinaryTree/Rope_Cord/README.md: -------------------------------------------------------------------------------- 1 | ### What is [Rope / Cord Data Structure](/DS_Questions/Data_Structures/Trees/BinaryTree/README.md) 2 | -------------------------------------------------------------------------------- /DS_Questions/Data_Structures/Trees/BinaryTree/Traversal/Spiral/ZigZag-LeftToRight_RightToLeft/ZigZag_LeftToRight_RightToLeft.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/DS_Questions/Data_Structures/Trees/BinaryTree/Traversal/Spiral/ZigZag-LeftToRight_RightToLeft/ZigZag_LeftToRight_RightToLeft.jpg -------------------------------------------------------------------------------- /DS_Questions/Data_Structures/Trees/BinaryTree/Types_Variants/Butterfly_Network/Butterfly_Network.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/DS_Questions/Data_Structures/Trees/BinaryTree/Types_Variants/Butterfly_Network/Butterfly_Network.jpg -------------------------------------------------------------------------------- /DS_Questions/Data_Structures/Trees/M-Ary_Trees/B+Tree/README.md: -------------------------------------------------------------------------------- 1 | ## B+Tree 2 | - **What?** B+ tree can be viewed as a B-tree in which each node contains only keys, an additional level is added at the bottom with linked leaves. 3 | 4 | 5 | -------------------------------------------------------------------------------- /DS_Questions/Data_Structures/Trees/Trie/images/t: -------------------------------------------------------------------------------- 1 | v 2 | -------------------------------------------------------------------------------- /DS_Questions/Data_Structures/Trees/Trie/images/trie.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/DS_Questions/Data_Structures/Trees/Trie/images/trie.JPG -------------------------------------------------------------------------------- /DS_Questions/Data_Structures/Trees/binary-search-tree/README.md: -------------------------------------------------------------------------------- 1 | - [k-d / K-Dimensional Tree](k-d_k-DimensionalTree) 2 | -------------------------------------------------------------------------------- /DS_Questions/Data_Structures/Trees/images/cbt.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/DS_Questions/Data_Structures/Trees/images/cbt.JPG -------------------------------------------------------------------------------- /DS_Questions/Data_Structures/Trees/images/t: -------------------------------------------------------------------------------- 1 | c 2 | -------------------------------------------------------------------------------- /DS_Questions/Questions/FileHandling/ParseFile_DumpInJsonXML_boost/Display/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include_directories( 2 | ${PROJECT_SOURCE_DIR}/Parser/inc 3 | ${PROJECT_SOURCE_DIR}/Display/inc 4 | ${PROJECT_SOURCE_DIR}/common/inc 5 | ) 6 | ADD_LIBRARY(Display STATIC src/Display.cpp) 7 | -------------------------------------------------------------------------------- /DS_Questions/Questions/FileHandling/ParseFile_DumpInJsonXML_boost/Parser/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include_directories( 2 | ${PROJECT_SOURCE_DIR}/Parser/inc 3 | ${PROJECT_SOURCE_DIR}/Display/inc 4 | ${PROJECT_SOURCE_DIR}/common/inc 5 | ) 6 | ADD_LIBRARY(Parser STATIC src/Parser.cpp) 7 | -------------------------------------------------------------------------------- /DS_Questions/Questions/FileHandling/README.md: -------------------------------------------------------------------------------- 1 | - [Read 3 CSV files, find total Spending](/Projects/Cross_Platform/Read_csv_files_Find_Total_Spending/) 2 | - [ParseFile_DumpInJsonXML_boost_CMake_CTest](/Projects/C++/Read_File_Custom_Dump_XMLTxtJsonConsole/) 3 | -------------------------------------------------------------------------------- /DS_Questions/Questions/Graphs/Find/Undirected_Graph/Bipartite_BiGraph/bipartitegraph.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/DS_Questions/Questions/Graphs/Find/Undirected_Graph/Bipartite_BiGraph/bipartitegraph.jpg -------------------------------------------------------------------------------- /DS_Questions/Questions/Graphs/Find/Undirected_Graph/Min_degree_of_connected_trio/connected_trio.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/DS_Questions/Questions/Graphs/Find/Undirected_Graph/Min_degree_of_connected_trio/connected_trio.png -------------------------------------------------------------------------------- /DS_Questions/Questions/Graphs/Find/Undirected_Graph/Minimum_Height_Tree/minimum_height_tree1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/DS_Questions/Questions/Graphs/Find/Undirected_Graph/Minimum_Height_Tree/minimum_height_tree1.jpg -------------------------------------------------------------------------------- /DS_Questions/Questions/Permutation_Combination/Combinations/Combination_sum/combination_sum_bt_graph.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/DS_Questions/Questions/Permutation_Combination/Combinations/Combination_sum/combination_sum_bt_graph.jpg -------------------------------------------------------------------------------- /DS_Questions/Questions/Permutation_Combination/Combinations/Letter_Combinations_of_a_Phone_Number/images/Letter_combination_of_a_phone_number-2347.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/DS_Questions/Questions/Permutation_Combination/Combinations/Letter_Combinations_of_a_Phone_Number/images/Letter_combination_of_a_phone_number-2347.jpg -------------------------------------------------------------------------------- /DS_Questions/Questions/Permutation_Combination/Combinations/Letter_Combinations_of_a_Phone_Number/images/Letter_combination_of_a_phone_number.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/DS_Questions/Questions/Permutation_Combination/Combinations/Letter_Combinations_of_a_Phone_Number/images/Letter_combination_of_a_phone_number.jpg -------------------------------------------------------------------------------- /DS_Questions/Questions/Permutation_Combination/Combinations/combination_sum_2/combination_sum_2-bt-tree.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/DS_Questions/Questions/Permutation_Combination/Combinations/combination_sum_2/combination_sum_2-bt-tree.jpg -------------------------------------------------------------------------------- /DS_Questions/Questions/Random/ssl-server-client/client-notsending-itsCerts/SSL-CLIENT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/DS_Questions/Questions/Random/ssl-server-client/client-notsending-itsCerts/SSL-CLIENT -------------------------------------------------------------------------------- /DS_Questions/Questions/Random/ssl-server-client/client-sending-itsCerts/SSL-CLIENT-SENDING-CLIENT-CERTIFICATE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/DS_Questions/Questions/Random/ssl-server-client/client-sending-itsCerts/SSL-CLIENT-SENDING-CLIENT-CERTIFICATE -------------------------------------------------------------------------------- /DS_Questions/Questions/Random/ssl-server-client/client-sending-itsCerts/SSL-SERVER: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/DS_Questions/Questions/Random/ssl-server-client/client-sending-itsCerts/SSL-SERVER -------------------------------------------------------------------------------- /DS_Questions/Questions/Random/ssl-server-client/keyAndCerts/ssl-server-certandkey.srl: -------------------------------------------------------------------------------- 1 | A68B3D612088A9FE 2 | -------------------------------------------------------------------------------- /DS_Questions/Questions/Strings/Anagrams_Pangrams/README.md: -------------------------------------------------------------------------------- 1 | ### Anagram? 2 | A word/phrase/name formed by rearranging the letters of another. Eg: rat, art, tar, rta, atr //all are anagrams 3 | 4 | ### Pangram? 5 | -------------------------------------------------------------------------------- /DS_Questions/Questions/Strings/Arrange_Shuffle_Organize_Remove/README.md: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /DS_Questions/Questions/Strings/Arrange_Shuffle_Organize_Remove/Remove/README.md: -------------------------------------------------------------------------------- 1 | - *Remove* 2 | 3 | |Question|Explain| 4 | |---|---| 5 | |Adjacent Upper Lower CaseLetters|Input=`leEeetcode`, Output=`leetcode`| 6 | |n Digits From No to make Min|input=`4325043,k=3`,output=`2043`| 7 | |chars from string to make them equal, Inplace|input=`str1="dog",str2="frog"`,output=`3`| 8 | -------------------------------------------------------------------------------- /DS_Questions/Questions/Strings/Lexicographical/README.md: -------------------------------------------------------------------------------- 1 | **Lexicographical** 2 | - alphabetical order. 3 | - `1, 10, 2`. These values are in lexicographical order. 10 comes after 2 in numerical order, but 10 comes before 2 in "alphabetical" order. 4 | -------------------------------------------------------------------------------- /DS_Questions/Questions/Strings/README.md: -------------------------------------------------------------------------------- 1 | ## Anything helpful? 2 | 1. REVERSE 3 | 2. SORT 4 | 3. STACK/QUEUE 5 | 4. 2 pointer approach(front, back) 6 | 7 | ### string_view (C++17) 8 | -------------------------------------------------------------------------------- /DS_Questions/Questions/Strings/Reverse/README.md: -------------------------------------------------------------------------------- 1 | |Question|Explain| 2 | |---|---| 3 | |1. String of Chars seperated by space.md|| 4 | -------------------------------------------------------------------------------- /DS_Questions/Questions/Strings/SubString_SubSequence/SubString_SubArray/Palindrome_Partitioning/Palindrome_Partitioning_bt_tree.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/DS_Questions/Questions/Strings/SubString_SubSequence/SubString_SubArray/Palindrome_Partitioning/Palindrome_Partitioning_bt_tree.jpg -------------------------------------------------------------------------------- /DS_Questions/Questions/Strings/parantheses/README.md: -------------------------------------------------------------------------------- 1 | |Question|Explain| 2 | |---|---| 3 | |1. Maximum Depth of Valid Parentheses String|"()()","()(()())" are VPS's and ")(" and "(()" are not VPS's| 4 | -------------------------------------------------------------------------------- /DS_Questions/Questions/vectors_arrays/2d-grid/Matrix_of_0_1/Ball_reach_from_src_to_dst_and_stop_there/maze1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/DS_Questions/Questions/vectors_arrays/2d-grid/Matrix_of_0_1/Ball_reach_from_src_to_dst_and_stop_there/maze1.jpg -------------------------------------------------------------------------------- /DS_Questions/Questions/vectors_arrays/2d-grid/Max_Area_of_Cake_after_HorizontalVertical_Cuts/leetcode_max_area_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/DS_Questions/Questions/vectors_arrays/2d-grid/Max_Area_of_Cake_after_HorizontalVertical_Cuts/leetcode_max_area_2.png -------------------------------------------------------------------------------- /DS_Questions/Questions/vectors_arrays/2d-grid/Region_Cut_By_Slashes/region_cut-by_slashes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/DS_Questions/Questions/vectors_arrays/2d-grid/Region_Cut_By_Slashes/region_cut-by_slashes.png -------------------------------------------------------------------------------- /DS_Questions/Questions/vectors_arrays/2d-grid/Region_Cut_By_Slashes/upsize_grid.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/DS_Questions/Questions/vectors_arrays/2d-grid/Region_Cut_By_Slashes/upsize_grid.png -------------------------------------------------------------------------------- /DS_Questions/Questions/vectors_arrays/2d-grid/Sudoku_Solver/4x4Board/4x4Example1.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/DS_Questions/Questions/vectors_arrays/2d-grid/Sudoku_Solver/4x4Board/4x4Example1.PNG -------------------------------------------------------------------------------- /DS_Questions/Questions/vectors_arrays/2d-grid/Sudoku_Solver/4x4Board/suduko_backtrack.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/DS_Questions/Questions/vectors_arrays/2d-grid/Sudoku_Solver/4x4Board/suduko_backtrack.png -------------------------------------------------------------------------------- /DS_Questions/Questions/vectors_arrays/2d-grid/Sudoku_Solver/5x5Board/5x5Example1.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/DS_Questions/Questions/vectors_arrays/2d-grid/Sudoku_Solver/5x5Board/5x5Example1.PNG -------------------------------------------------------------------------------- /DS_Questions/Questions/vectors_arrays/2d-grid/Word_Search_in_2D_Matrix/word_in_grid.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/DS_Questions/Questions/vectors_arrays/2d-grid/Word_Search_in_2D_Matrix/word_in_grid.jpg -------------------------------------------------------------------------------- /DS_Questions/Questions/vectors_arrays/Find_Search_Count/Count/Sorted/README.md: -------------------------------------------------------------------------------- 1 | |Question|Explain| 2 | |---|---| 3 | |Count_occurence_of_element |`Input = {1,1,1,1,2,2,3}` find occurences of 2. Output=2 | 4 | -------------------------------------------------------------------------------- /DS_Questions/Questions/vectors_arrays/Find_Search_Count/Find/Sorted/README.md: -------------------------------------------------------------------------------- 1 | |Question|Explain| 2 | |---|---| 3 | |Search Element in Rotated Sorted Array|`Input: nums = [4,5,6,7,0,1,2], target = 1. Output: 5`| 4 | |`1st_&_last_position_of_ele_sorted_array_Duplicates_allowed`|`Input nums=[5,7,7,8,8,8,8,8,8,10], target = 8. Output=[3,8]`| 5 | -------------------------------------------------------------------------------- /DS_Questions/Questions/vectors_arrays/Find_Search_Count/Find/Unsorted/Median/Find_Median_from_Data_Stream/images/295_Find_Median_from_Data_Stream.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/DS_Questions/Questions/vectors_arrays/Find_Search_Count/Find/Unsorted/Median/Find_Median_from_Data_Stream/images/295_Find_Median_from_Data_Stream.png -------------------------------------------------------------------------------- /DS_Questions/Questions/vectors_arrays/Find_Search_Count/Find/Unsorted/README.md: -------------------------------------------------------------------------------- 1 | |Question|Explain| 2 | |---|---| 3 | |Smallest_Missing_Positive_Number_from_unsorted_array | Find 1st positive missing number from array of ints is given `[3,4,-1,1]` Ans=2 | 4 | |No_With_X_Elements_Greater_Than_or_Equal_X | Special Array With X Elements Greater Than or Equal X leetcode| 5 | |No_having_odd_occurence|`Input[]={1, 1, 4, 9, 6, 8, 6, 4, 8 }, Output: 9`| 6 | 7 | 8 | -------------------------------------------------------------------------------- /DS_Questions/Questions/vectors_arrays/Order_Arrangment/README.md: -------------------------------------------------------------------------------- 1 | |Question|Explain| 2 | |---|---| 3 | |Place_All_0_onLeft_All_1_onRight | `Input: [0,1,1,0,1] Output: [0,0,1,1,1]` | 4 | |Place_0_onLeft_1_Middle_2_Right | `Input:[0,1,2,0,1], output: [0,0,1,1,2]` | 5 | |Place_0_on_Right_Maintain_Order_assuch | `Input: [0,1,0,12,3], Output: [1,12,3,0,0]`| 6 | |Swap_2_entries_in_Sorted_Array|input={1,2,**3**,4,5,6,7,**8**,9}, output={1,2,**8**,4,5,6,7,**3**,9}| 7 | -------------------------------------------------------------------------------- /DS_Questions/Questions/vectors_arrays/README.md: -------------------------------------------------------------------------------- 1 | ### Does any of these helpful? 2 | 1. Sorting 3 | 2. Hash Table 4 | 3. 2 Pointer(from front, back) 5 | -------------------------------------------------------------------------------- /DS_Questions/Questions/vectors_arrays/Rotation_Spiral/2D/Create_2d_matrix_from_linked_list_spirially/spiral_from_ll.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/DS_Questions/Questions/vectors_arrays/Rotation_Spiral/2D/Create_2d_matrix_from_linked_list_spirially/spiral_from_ll.jpg -------------------------------------------------------------------------------- /DS_Questions/Questions/vectors_arrays/SubSequence_SubArray/README.md: -------------------------------------------------------------------------------- 1 | |SubSequence|SubString/Subarray| 2 | |---|---| 3 | |non-contiguous|always contiguous| 4 | 5 | |continuous|contiguous| 6 | |---|---| 7 | |Continuing in time or space without interruption|neighboring, close to each other| 8 | 9 | -------------------------------------------------------------------------------- /DS_Questions/Searches/README.md: -------------------------------------------------------------------------------- 1 | #### Complexities 2 | - Linear Search: O(n) 3 | - Binary Search: O(logn) 4 | -------------------------------------------------------------------------------- /DS_Questions/Sorting/Heap_Sort.md: -------------------------------------------------------------------------------- 1 | **Heap Sort** 2 | 3 | ### Heap Sort 4 | -------------------------------------------------------------------------------- /DS_Questions/Sorting/Hybrid_Sorting_Algo/IntroSort/README.md: -------------------------------------------------------------------------------- 1 | ## IntroSort 2 | - The algorithm used by [`sort()` function of c++ STL](/Languages/Programming_Languages/c++/Standard_Template_Library/Algorithm-library). 3 | - Introsort uses three sorting algorithm to minimise the running time 4 | - Quicksort 5 | - Heapsort 6 | - Insertion Sort. 7 | - It is the best sorting algorithm around. 8 | -------------------------------------------------------------------------------- /DS_Questions/Sorting/Hybrid_Sorting_Algo/README.md: -------------------------------------------------------------------------------- 1 | ## Hybrid algorithm 2 | - An algorithm that combines 2 or more other algorithms that solve the same problem. It chooses algo based on: 3 | - Incoming data OR 4 | - Switching between them over the course of the algorithm. 5 | -------------------------------------------------------------------------------- /DS_Questions/Sorting/images/insertion_sort.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/DS_Questions/Sorting/images/insertion_sort.JPG -------------------------------------------------------------------------------- /DS_Questions/Sorting/images/merge_sort.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/DS_Questions/Sorting/images/merge_sort.JPG -------------------------------------------------------------------------------- /Debuggers/gdb/README.md: -------------------------------------------------------------------------------- 1 | ## gnu degugger 2 | - *[How breakpoints are implemented internally?](Feature/Breakpoint)* 3 | -------------------------------------------------------------------------------- /Device_Drivers/Linux/Types_of_DD/Character_dd/README.md: -------------------------------------------------------------------------------- 1 | - **Prerequsites** 2 | ``` 3 | # yum install kernel-devel -y 4 | ``` 5 | - **Issues** 6 | ```c 7 | # make 8 | /lib/modules/3.10.0+/build: No such file or directory. //# yum install kernel-devel-$(uname -r) 9 | ``` 10 | -------------------------------------------------------------------------------- /Device_Drivers/Linux/Types_of_DD/Character_dd/ebbchar-driver/Makefile.md: -------------------------------------------------------------------------------- 1 | ## Pre-requisites 2 | ``` 3 | # yum install kernel-devel -y 4 | ``` 5 | 6 | ## Makefile 7 | ``` 8 | obj-m+=ebbchar.o 9 | 10 | all: 11 | make -C /lib/modules/$(shell uname -r)/build/ M=$(PWD) modules 12 | $(CC) testebbchar.c -o test 13 | clean: 14 | make -C /lib/modules/$(shell uname -r)/build/ M=$(PWD) clean 15 | rm test 16 | ``` 17 | -------------------------------------------------------------------------------- /Device_Drivers/Linux/device-driver.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Device_Drivers/Linux/device-driver.jpg -------------------------------------------------------------------------------- /Device_Drivers/Windows/README.md: -------------------------------------------------------------------------------- 1 | ## Window's Device Driver 2 | ```c 3 | Application > Window's OS >Driver-1(Filter Driver) > Driver-2(Filter Driver) > Driver-3(Function Driver) > Physical Device 4 | ``` 5 | -------------------------------------------------------------------------------- /Frameworks/README.adoc: -------------------------------------------------------------------------------- 1 | :toc: 2 | :toclevels: 4 3 | 4 | == Rust framework 5 | * link:https://code-with-amitk.github.io/Frameworks/Dioxus/[Dioxus, dioxus-cli] 6 | -------------------------------------------------------------------------------- /Languages/Markup_Language/XML/dom.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Languages/Markup_Language/XML/dom.JPG -------------------------------------------------------------------------------- /Languages/Modelling/UML/UML_Diagrams.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Languages/Modelling/UML/UML_Diagrams.png -------------------------------------------------------------------------------- /Languages/Modelling/UML/relationships.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Languages/Modelling/UML/relationships.png -------------------------------------------------------------------------------- /Languages/Programming_Languages/C/APIs/memcpy/dataSeg-to-Stack-COREDUMP.md: -------------------------------------------------------------------------------- 1 | ## Data Segment to Stack 2 | 3 | ``` 4 | #include 5 | #include 6 | 7 | int main () { 8 | const char src[5] = "hello"; 9 | char *dst; 10 | 11 | memcpy(dst, src, strlen(src)+1); 12 | printf("dest = %s\n", dst); <<<< 5 | #include 6 | 7 | int main () { 8 | const char src[5] = "hello"; 9 | char *dst = malloc(sizeof(char) * 6); 10 | 11 | memcpy(dst, src, strlen(src)+1); 12 | printf("dest = %s\n", dst); //dst 13 | 14 | return(0); 15 | } 16 | ``` 17 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/C/Bitwise/Count_on_Bits/counting_on_bits.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Languages/Programming_Languages/C/Bitwise/Count_on_Bits/counting_on_bits.png -------------------------------------------------------------------------------- /Languages/Programming_Languages/C/Bitwise/Representation_of_Numbers/README.md: -------------------------------------------------------------------------------- 1 | ## Representation of Numbers 2 | 3 | - **Negative Numbers:** Using 2's Compliment 4 | - **Floating Numbers:** 5 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/C/Character_Sets/ASCII/ascii.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Languages/Programming_Languages/C/Character_Sets/ASCII/ascii.jpg -------------------------------------------------------------------------------- /Languages/Programming_Languages/C/Character_Sets/UTF-8/README.md: -------------------------------------------------------------------------------- 1 | ## UTF-8 / Universal Character Set Transformation Format 8 bit 2 | - Characters 3 | - `0-127` as ASCII 4 | - `128-192` as the key to be shifted 5 | - `192-247` as Shift keys 6 | 7 | 8 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/C/Character_Sets/UTF-8/utf-8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Languages/Programming_Languages/C/Character_Sets/UTF-8/utf-8.png -------------------------------------------------------------------------------- /Languages/Programming_Languages/C/Compile/Compilation-Steps.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Languages/Programming_Languages/C/Compile/Compilation-Steps.jpg -------------------------------------------------------------------------------- /Languages/Programming_Languages/C/Makefile/Examples/short-example/Makefile: -------------------------------------------------------------------------------- 1 | IDIR=. 2 | CC=gcc 3 | CFLAGS=-I$(IDIR) #List of flags to pass to compilation command 4 | LDFLAGS=-L/usr/lib64 5 | 6 | OBJ= init.o main.o 7 | 8 | make: $(OBJ) 9 | $(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS) -lssl -lcrypto 10 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/C/Makefile/Examples/short-example/init.c: -------------------------------------------------------------------------------- 1 | /* OpenSSL headers */ 2 | 3 | #include "openssl/bio.h" 4 | #include "openssl/ssl.h" 5 | #include "openssl/err.h" 6 | 7 | void initialize_openssl() { 8 | 9 | /* Initializing OpenSSL */ 10 | SSL_load_error_strings(); 11 | ERR_load_BIO_strings(); 12 | OpenSSL_add_all_algorithms(); 13 | 14 | } 15 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/C/Makefile/Examples/short-example/init.h: -------------------------------------------------------------------------------- 1 | void initialize_openssl(); 2 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/C/Makefile/Examples/short-example/main.c: -------------------------------------------------------------------------------- 1 | /* OpenSSL headers */ 2 | #include 3 | void main(){ 4 | initialize_openssl(); 5 | } 6 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/C/Signal_Handling/Catching_Signals/README.md: -------------------------------------------------------------------------------- 1 | 2 | ||signal()|sigaction() **Preferred**| 3 | |---|---|---| 4 | |1.Blocking signal2 while signal1 is being processed|No|Yes,sigaction blocks other signals while current signal is processed, then delivers the signal| 5 | |2.Resetting signal action back to SIG_DFL (default) for all signals|Yes|No| 6 | |3.Different behaviours across systems|Yes|No| 7 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/C/Size-of-Datatypes/Fundamental_Datatypes.md: -------------------------------------------------------------------------------- 1 | ## Fundamental Data types 2 | 3 | |Type|Size(bytes)| 4 | |---|---| 5 | |Byte|1| 6 | |Word|2| 7 | |Doubleword|4| 8 | |Quadword|8| 9 | |Quintword|10| 10 | |Double quadword|16| 11 | |Quad quadword|32| 12 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/Java/Operations/README.md: -------------------------------------------------------------------------------- 1 | - **Convert** 2 | - [String to int, double, long](#st) 3 | 4 | 5 | ### Convert 6 | 7 | #### String to int 8 | ```java 9 | int i = Integer.valueOf("22").intValue(); 10 | long l = Long.valueOf("22").longValue(); 11 | double x = Double.valueOf("22.5").doubleValue(); 12 | float y = Float.valueOf("22.5").floatValue(); 13 | ``` 14 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/Java/Streams/README.md: -------------------------------------------------------------------------------- 1 | **Streams** 2 | 3 | ### Streams 4 | - [What is Stream](/Languages/Programming_Languages/c++/Streams/) 5 | 6 | ### Examples 7 | - [Read Write in File](/DS_Questions/Questions/FileHandling/Java/RW_toFrom_File.md) 8 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/Kotlin/Classes_Objects/Inheritance.adoc: -------------------------------------------------------------------------------- 1 | :toc: 2 | :toclevels: 4 3 | 4 | == Inheritance 5 | ```kt 6 | open class Base { //open keyword in front of the superclass 7 | var a = 5; 8 | }; 9 | class derv:Base() { //superclass's constructor is used 10 | fun disp() { 11 | println(a); 12 | } 13 | } 14 | fun main() { 15 | var d = derv(); 16 | d.disp(); //5 17 | } 18 | ``` 19 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/Rust/Collections/README.md: -------------------------------------------------------------------------------- 1 | ## Collections 2 | - This is same [STL in C++](/Languages/Programming_Languages/c++) and [Containers in Python](/Languages/ScriptingLanguages/Python) 3 | - Collections are **always allocated on Heap**. 4 | - Types 5 | - [vector](vector) 6 | - [string, string slice &str](https://code-with-amitk.github.io/Languages/Programming/Rust/Collections/String.html) 7 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/Rust/Data_Types/cons_list.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Languages/Programming_Languages/Rust/Data_Types/cons_list.JPG -------------------------------------------------------------------------------- /Languages/Programming_Languages/Rust/Frameworks/Actix_web/README.md: -------------------------------------------------------------------------------- 1 | **Actix_Web** 2 | 3 | ## Actix_Web 4 | - Fast, powerful, open source web framework for Rust. Actix_web is sponsored by microsoft on github. 5 | - [Actix HTTP Webserver exposing REST API](/Projects/Rust/REST_API_HTTP_Server_ActixWeb/) 6 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/Rust/Kafka/README.md: -------------------------------------------------------------------------------- 1 | **Kafka Producer Consumer** 2 | - [1. Using CLI Tools](Using_CLI) 3 | - [2. Rust Code](#Kafka_Rust) 4 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/Rust/Logging/README.md: -------------------------------------------------------------------------------- 1 | ||env_logger|log4rs| 2 | |---|---|---| 3 | |Simplicity|More Simple|complicated wrt env_logger| 4 | |Configurable|Less|High. You can rotate logs on size, time. Keep files for x period of time| 5 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/Rust/Variables/Immutable/Immutable_vs_const.md: -------------------------------------------------------------------------------- 1 | ### Immutable/Variable vs const 2 | 3 | ||const|Immutable| 4 | |---|---|---| 5 | |Declaration|Using const keyword. `const MAX:u32 = 1000`|Using let keyword| 6 | |Scope|Local or global|Local| 7 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/Rust/Variables/README.md: -------------------------------------------------------------------------------- 1 | ## Variables 2 | - Variable are [Immutable](Immutable) by default. 3 | - **Immutable** means Whose value CANNOT be changed after creation. 4 | - const and Immutable are different things. [Immutable vs Const](Immutable/Immutable_vs_const.md) 5 | - [Shadowing a Variable](Shadowing) 6 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/6-implicit-functions/Constructor/README.adoc: -------------------------------------------------------------------------------- 1 | link:https://code-with-amitk.github.io/Languages/Programming/C++/6%20Implicit%20Functions/[Constructor] 2 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/6-implicit-functions/README.md: -------------------------------------------------------------------------------- 1 | ### 6 default/Implicit function provided by Complier 2 | - Constructor 3 | - *1.* Default ctr 4 | - *2.* Copy ctr 5 | - *3.* Move ctr 6 | - Assignment Operator 7 | - *4.* Copy 8 | - *5.* Move 9 | - *6.* Destructor 10 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/C++11_14_17_20/c++11/enumClass_or_ScopedEnumeration/README.md: -------------------------------------------------------------------------------- 1 | ## Enum class/Scoped Enumeration 2 | - **What is enum/enumeration?** 3 | - User defined data type which can be assigned some limited values. 4 | 5 | ### C++98-enum vs C++11-enum-class 6 | 7 | ||C++98 Enumeration|C++ enum class| 8 | |---|---|---| 9 | |What||| 10 | |Strongly type safe|no|yes| 11 | |Strongly scoped|no|yes| 12 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/C++11_14_17_20/c++11/noexcept/README.md: -------------------------------------------------------------------------------- 1 | ## Noexcept 2 | - throw is deprecated in C++11, will be removed in C++20. 3 | - noexcept returns true of false based on calculation that function can throw exception or not. 4 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/C++11_14_17_20/c++11/pointers.adoc: -------------------------------------------------------------------------------- 1 | :toc: 2 | :toclevels: 2 3 | 4 | == link:https://code-with-amitk.github.io/Languages/Programming/C++/C++_11,14,17,20,23/C++11/smart_shared_unique.html[Raw, Smart pointers] 5 | == link:https://code-with-amitk.github.io/Languages/Programming/C++/C++_11,14,17,20,23/C++11/smart_shared_unique.html[Unique, shared pointers(How internally implemented)] 6 | 7 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/C++11_14_17_20/c++20/README.adoc: -------------------------------------------------------------------------------- 1 | :toc: 2 | :toclevels: 4 3 | 4 | === link:https://code-with-amitk.github.io/Languages/Programming/C++/C++_11,14,17,20,23/C++20/3%20way%20Comparator.html[3 way comparison < = >] 5 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/C++11_14_17_20/c++20/format/format.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Languages/Programming_Languages/c++/C++11_14_17_20/c++20/format/format.jpg -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Characteristics_of_OOPS/Abstraction/README.md: -------------------------------------------------------------------------------- 1 | ## Abstraction 2 | - Giving Essential Features Only. Hiding Internal details. 3 | - This is used to manage complexity in software development. 4 | - Examples. 5 | - *1. ATM Machine:* we dont know how it works internally but interface is very user friendly. 6 | - *2. Car Steering Wheel:* All internal details How car is turned are hidden behind wheel 7 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Characteristics_of_OOPS/Data_Hiding/README.md: -------------------------------------------------------------------------------- 1 | ## Data Hiding 2 | - Data not accessible directly to outside world. Only functions wrapped with data can access it. Private & protected access specifiers are used to achieve data hiding 3 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Characteristics_of_OOPS/Inheritance/Generalization1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Languages/Programming_Languages/c++/Characteristics_of_OOPS/Inheritance/Generalization1.png -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Characteristics_of_OOPS/Inheritance/Specialization1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Languages/Programming_Languages/c++/Characteristics_of_OOPS/Inheritance/Specialization1.png -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Characteristics_of_OOPS/Inheritance/rules-of-inheritance.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Languages/Programming_Languages/c++/Characteristics_of_OOPS/Inheritance/rules-of-inheritance.png -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Characteristics_of_OOPS/Polymorphism/Dynamic_RunTime/vtable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Languages/Programming_Languages/c++/Characteristics_of_OOPS/Polymorphism/Dynamic_RunTime/vtable.png -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Characteristics_of_OOPS/Polymorphism/Static_CompileTime/Templates/Inheritance/README.md: -------------------------------------------------------------------------------- 1 | ## Template class Inheritance 2 | - **What** Base class is templated, its inherited in templated derived class. 3 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Characteristics_of_OOPS/Polymorphism/Static_CompileTime/Templates/Variadic/README.md: -------------------------------------------------------------------------------- 1 | ### Variadic Templates 2 | - **What** 3 | - Function taking arbitary/variable number of arguments same as `va_` family functions in C. 4 | - But good thing is unlike C, all arguments and function definition is resolved at compile time. 5 | - **Types of VT** 6 | - *1.* Variadic Function template 7 | - *2.* Variadic class template 8 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Behavioral/Command/c++/README.md: -------------------------------------------------------------------------------- 1 | ## Problem Statement 2 | - Design a Remote Control. 3 | - Remote control has 7 programmable slots (each can be assigned to a different household device) along with corresponding on/off buttons for each. 4 | - The remote also has a global undo button. 5 | 6 | ## UML Diagram 7 | ![ImgUrl](https://i.ibb.co/mHGb8TV/command-pattern-c.png) 8 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Behavioral/Command/c++/include/Command.hpp: -------------------------------------------------------------------------------- 1 | #ifndef COMMAND 2 | #define COMMAND 3 | 4 | class Command 5 | { 6 | public: 7 | virtual void execute()=0; 8 | }; 9 | #endif 10 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Behavioral/Command/c++/include/GarageDoor.hpp: -------------------------------------------------------------------------------- 1 | #ifndef GARAGEDOOR_H 2 | #define GARAGEDOOR_H 3 | 4 | class GarageDoor 5 | { 6 | public: 7 | void open(); 8 | void closed(); 9 | void stop(); 10 | void lightOn(); 11 | void lightOff(); 12 | }; 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Behavioral/Command/c++/include/GarageDoorClosedCommand.hpp: -------------------------------------------------------------------------------- 1 | #ifndef GARAGEDOORCLOSEDCOMMAND_H 2 | #define GARAGEDOORCLOSEDCOMMAND_H 3 | 4 | #include "GarageDoor.hpp" 5 | #include "Command.hpp" 6 | 7 | class GarageDoorClosedCommand : public Command 8 | { 9 | GarageDoor *g; 10 | public: 11 | GarageDoorClosedCommand (GarageDoor *); 12 | void execute () override; 13 | }; 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Behavioral/Command/c++/include/GarageDoorOpenCommand.hpp: -------------------------------------------------------------------------------- 1 | #ifndef GARAGEDOOROPENCOMMAND_H 2 | #define GARAGEDOOROPENCOMMAND_H 3 | 4 | #include "GarageDoor.hpp" 5 | #include "Command.hpp" 6 | 7 | class GarageDoorOpenCommand : public Command 8 | { 9 | GarageDoor *g; 10 | public: 11 | GarageDoorOpenCommand (GarageDoor *); 12 | void execute () override; 13 | }; 14 | #endif 15 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Behavioral/Command/c++/include/Light.hpp: -------------------------------------------------------------------------------- 1 | #ifndef LIGHT_H 2 | #define LIGHT_H 3 | 4 | class Light 5 | { 6 | public: 7 | void on(); 8 | void off(); 9 | }; 10 | 11 | #endif 12 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Behavioral/Command/c++/include/LightOffCommand.hpp: -------------------------------------------------------------------------------- 1 | #ifndef LIGHTOFFCOMMAND_H 2 | #define LIGHTOFFCOMMAND_H 3 | 4 | #include"Command.hpp" 5 | #include"Light.hpp" 6 | 7 | class LightOffCommand : public Command 8 | { 9 | Light *l; 10 | public: 11 | LightOffCommand (Light *); 12 | void execute() override; 13 | }; 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Behavioral/Command/c++/include/NoCommand.hpp: -------------------------------------------------------------------------------- 1 | #ifndef NOCOMMAND 2 | #define NOCOMMAND 3 | 4 | class NoCommand : public Command 5 | { 6 | public: 7 | void execute () {} 8 | }; 9 | #endif 10 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Behavioral/Command/c++/include/config.hpp: -------------------------------------------------------------------------------- 1 | #ifndef CONFIG 2 | #define CONFIG 3 | 4 | #include 5 | using namespace std; 6 | 7 | #endif 8 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Behavioral/Command/c++/src/.LightOnCommand.cpp.swp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Languages/Programming_Languages/c++/Design_Pattens/Behavioral/Command/c++/src/.LightOnCommand.cpp.swp -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Behavioral/Command/c++/src/Garage.cpp: -------------------------------------------------------------------------------- 1 | #include "GarageDoor.hpp" 2 | #include "config.hpp" 3 | 4 | void GarageDoor::open() 5 | { 6 | cout<<"GarageDoor opened\n"; 7 | } 8 | 9 | void GarageDoor::closed() 10 | { 11 | cout<<"GarageDoor closed\n"; 12 | } 13 | 14 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Behavioral/Command/c++/src/GarageDoorClosedCommand.cpp: -------------------------------------------------------------------------------- 1 | #include "GarageDoorClosedCommand.hpp" 2 | 3 | GarageDoorClosedCommand::GarageDoorClosedCommand (GarageDoor *k) 4 | { 5 | g = k; 6 | } 7 | 8 | void GarageDoorClosedCommand::execute () 9 | { 10 | g->closed(); 11 | } 12 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Behavioral/Command/c++/src/GarageDoorOpenCommand.cpp: -------------------------------------------------------------------------------- 1 | #include "GarageDoorOpenCommand.hpp" 2 | 3 | #include "GarageDoor.hpp" 4 | 5 | GarageDoorOpenCommand::GarageDoorOpenCommand (GarageDoor *k) 6 | { 7 | g = k; 8 | } 9 | 10 | void GarageDoorOpenCommand::execute () 11 | { 12 | g->open(); 13 | } 14 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Behavioral/Command/c++/src/Light.cpp: -------------------------------------------------------------------------------- 1 | #include"Light.hpp" 2 | #include"config.hpp" 3 | 4 | void Light::on() 5 | { 6 | cout<<"Light on\n"; 7 | } 8 | 9 | void Light::off() 10 | { 11 | cout<<"Light off\n"; 12 | } 13 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Behavioral/Command/c++/src/LightOffCommand.cpp: -------------------------------------------------------------------------------- 1 | #include "LightOffCommand.hpp" 2 | #include "Light.hpp" 3 | 4 | LightOffCommand::LightOffCommand (Light *a):l(a){} 5 | 6 | void LightOffCommand::execute () 7 | { 8 | l->off(); 9 | } 10 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Behavioral/Command/c++/src/LightOnCommand.cpp: -------------------------------------------------------------------------------- 1 | #include "LightOnCommand.hpp" 2 | #include "Light.hpp" 3 | 4 | LightOnCommand::LightOnCommand (Light *a):l(a){} 5 | 6 | void LightOnCommand::execute () 7 | { 8 | l->on(); 9 | } 10 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Behavioral/Command/c++/src/RemoteLoader.cpp-bak: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() 4 | { 5 | } 6 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Behavioral/Command/java/GarageDoorClosedCommand.java: -------------------------------------------------------------------------------- 1 | public class GarageDoorClosedCommand implements Command 2 | { 3 | GarageDoor g; 4 | 5 | public GarageDoorClosedCommand (GarageDoor o) 6 | { 7 | this.g = o; 8 | } 9 | 10 | public void execute () 11 | { 12 | g.closed(); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Behavioral/Command/java/GarageDoorOpenCommand.java: -------------------------------------------------------------------------------- 1 | public class GarageDoorOpenCommand implements Command 2 | { 3 | GarageDoor g; 4 | 5 | public GarageDoorOpenCommand (GarageDoor o) 6 | { 7 | this.g = o; 8 | } 9 | 10 | public void execute () 11 | { 12 | g.open(); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Behavioral/Command/java/Light.java: -------------------------------------------------------------------------------- 1 | /*This is vendor class to perform actual home automation. 2 | */ 3 | public class Light{ 4 | public void on() 5 | { 6 | System.out.println("Light on"); 7 | } 8 | public void off() 9 | { 10 | System.out.println("Light off"); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Behavioral/Command/java/LightOffCommand.java: -------------------------------------------------------------------------------- 1 | public class LightOffCommand implements Command 2 | { 3 | Light l; 4 | 5 | public LightOffCommand(Light k) 6 | { 7 | this.l = k; 8 | } 9 | 10 | public void execute() 11 | { 12 | l.off(); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Behavioral/Command/java/LightOnCommand.java: -------------------------------------------------------------------------------- 1 | public class LightOnCommand implements Command 2 | { 3 | Light l; 4 | 5 | public LightOnCommand(Light k) 6 | { 7 | this.l = k; 8 | } 9 | 10 | public void execute() 11 | { 12 | l.on(); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Behavioral/Command/java/NoCommand.java: -------------------------------------------------------------------------------- 1 | /* This is NULL object. 2 | * A null object is used when we don’t have a meaningful object to return 3 | */ 4 | 5 | public class NoCommand implements Command 6 | { 7 | public void execute() 8 | { 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Behavioral/Command/java/README.md: -------------------------------------------------------------------------------- 1 | ## Problem Statement 2 | - Design a Remote Control. 3 | - Remote control has 7 programmable slots (each can be assigned to a different household device) along with corresponding on/off buttons for each. 4 | - The remote also has a global undo button. 5 | 6 | ![Imgur](https://i.ibb.co/fD3V9s3/command-pattern-java.png) 7 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Behavioral/Command/java/StereoOnWithCDCommand.java-bak: -------------------------------------------------------------------------------- 1 | /* class to talk to stereo is seperate entity 2 | */ 3 | public class StereoOnWithCDCommand implements Command 4 | { 5 | Stereo s; 6 | 7 | public StereoOnWithCDCommand( Stereo k ) 8 | { 9 | this.s = k; 10 | } 11 | 12 | public void execute() 13 | { 14 | s.on(); 15 | s.setCD(); 16 | s.setVolume(11); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Behavioral/Command/java/UML-Diagram.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Languages/Programming_Languages/c++/Design_Pattens/Behavioral/Command/java/UML-Diagram.png -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Behavioral/Interpretor/README.md: -------------------------------------------------------------------------------- 1 | - To evaluate Grammar & Expression of Language 2 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Behavioral/Mediator/Online_Auction/Code/bidder/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include_directories( 2 | ${PROJECT_SOURCE_DIR}/seller/inc 3 | ${PROJECT_SOURCE_DIR}/mediator/inc 4 | ${PROJECT_SOURCE_DIR}/bidder/inc 5 | ${PROJECT_SOURCE_DIR}/common/inc 6 | ) 7 | ADD_LIBRARY(bidder STATIC src/bidder1.cpp) 8 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Behavioral/Mediator/Online_Auction/Code/bidder/inc/bidder.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "mediator.h" 3 | 4 | class mediator; 5 | 6 | class bidder { 7 | public: 8 | virtual void RegisterToMediator(mediator*) = 0; 9 | virtual void GetInformation(std::string&,float)=0; 10 | }; 11 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Behavioral/Mediator/Online_Auction/Code/bidder/inc/bidder1.h: -------------------------------------------------------------------------------- 1 | #include "bidder.h" 2 | 3 | class bidder1:public bidder{ 4 | public: 5 | void RegisterToMediator(mediator*); 6 | void GetInformation(std::string&,float); 7 | }; 8 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Behavioral/Mediator/Online_Auction/Code/common/inc/common.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | #include 4 | #include 5 | 6 | #define NEWLINE std::endl 7 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Behavioral/Mediator/Online_Auction/Code/mediator/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include_directories( 2 | ${PROJECT_SOURCE_DIR}/seller/inc 3 | ${PROJECT_SOURCE_DIR}/bidder/inc 4 | ${PROJECT_SOURCE_DIR}/mediator/inc 5 | ${PROJECT_SOURCE_DIR}/common/inc 6 | ) 7 | ADD_LIBRARY(mediator STATIC src/mediator1.cpp) 8 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Behavioral/Mediator/Online_Auction/Code/mediator/inc/mediator1.h: -------------------------------------------------------------------------------- 1 | #include "mediator.h" 2 | 3 | class mediator1:public mediator{ 4 | float fMyMargin; 5 | public: 6 | mediator1(); 7 | void RegisterToSeller(seller*); 8 | void GetNotificationFromSeller(std::string&,float); 9 | void SetObservers (bidder* pBidder); 10 | }; 11 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Behavioral/Mediator/Online_Auction/Code/seller/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include_directories( 2 | ${PROJECT_SOURCE_DIR}/seller/inc 3 | ${PROJECT_SOURCE_DIR}/mediator/inc 4 | ${PROJECT_SOURCE_DIR}/bidder/inc 5 | ${PROJECT_SOURCE_DIR}/common/inc 6 | ) 7 | 8 | ADD_LIBRARY(seller STATIC src/seller1.cpp) 9 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Behavioral/Mediator/Online_Auction/Code/seller/inc/seller1.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "seller.h" 3 | #include "mediator.h" 4 | 5 | class seller1:public seller{ //Abstract 6 | public: 7 | void NotifyMediators(); 8 | void SetObservers(mediator*); 9 | void RemoveMediators(); 10 | void InitiateAuction(std::string&, float); 11 | }; 12 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Behavioral/Mediator/Online_Auction/online_auction.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Languages/Programming_Languages/c++/Design_Pattens/Behavioral/Mediator/Online_Auction/online_auction.jpg -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Behavioral/Observer/Whether_Display_Device/observer-dp-whether-display-device.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Languages/Programming_Languages/c++/Design_Pattens/Behavioral/Observer/Whether_Display_Device/observer-dp-whether-display-device.JPG -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Behavioral/State/README.md: -------------------------------------------------------------------------------- 1 | - Object can change its behavior when internal state changes 2 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Behavioral/Template/c++/README.md: -------------------------------------------------------------------------------- 1 | ## UML 2 | ![ImgUrl](https://i.ibb.co/g9YHPhM/Class-Diagram-templatedp1.png) 3 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Behavioral/Template/c++/include/Coffee.h: -------------------------------------------------------------------------------- 1 | #ifndef COFFEE_H 2 | #define COFFEE_H 3 | #include"beverageMaker.h" 4 | 5 | class Coffee:public beverageMaker 6 | { 7 | public: 8 | void addBase(); 9 | void addCondiments(); 10 | }; 11 | 12 | #endif 13 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Behavioral/Template/c++/include/Tea.h: -------------------------------------------------------------------------------- 1 | #ifndef TEA_H 2 | #define TEA_H 3 | #include"beverageMaker.h" 4 | 5 | class Tea:public beverageMaker 6 | { 7 | public: 8 | void addBase(); 9 | void addCondiments(); 10 | }; 11 | 12 | #endif 13 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Behavioral/Template/c++/include/config.h: -------------------------------------------------------------------------------- 1 | #ifndef CONFIG 2 | #define CONFIG 3 | 4 | #include 5 | using namespace std; 6 | 7 | #endif 8 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Behavioral/Template/c++/src/Coffee.cpp: -------------------------------------------------------------------------------- 1 | #include"Coffee.h" 2 | #include"config.h" 3 | 4 | void Coffee::addBase() 5 | { 6 | cout<<"Adding Coffee\n"; 7 | } 8 | 9 | void Coffee::addCondiments() 10 | { 11 | cout<<"Adding Sugar and Milk\n"; 12 | } 13 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Behavioral/Template/c++/src/Tea.cpp: -------------------------------------------------------------------------------- 1 | #include"Tea.h" 2 | #include"config.h" 3 | 4 | void Tea::addBase() 5 | { 6 | cout<<"Adding Tea\n"; 7 | } 8 | 9 | void Tea::addCondiments() 10 | { 11 | cout<<"Adding Leamon\n"; 12 | } 13 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Behavioral/Template/c++/src/beverageMaker.cpp: -------------------------------------------------------------------------------- 1 | #include"beverageMaker.h" 2 | #include"config.h" 3 | 4 | void beverageMaker::boilWater() 5 | { 6 | cout<<"Boiling water\n"; 7 | } 8 | 9 | void beverageMaker::pourInCup() 10 | { 11 | cout<<"Pouring into cup\n"; 12 | } 13 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Behavioral/Template/c++/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include"Coffee.h" 2 | #include"Tea.h" 3 | #include"config.h" 4 | 5 | int main() 6 | { 7 | cout<<"Making Coffee From BeverageMaker\n"; 8 | Coffee *c = new Coffee(); 9 | c->prepareRecipe(); 10 | 11 | cout<<"\nMaking Tea From BeverageMaker\n"; 12 | Tea *t = new Tea(); 13 | t->prepareRecipe(); 14 | } 15 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Behavioral/Template/java/Coffee.java: -------------------------------------------------------------------------------- 1 | public class Coffee extends beverageMaker { 2 | public void addBase() { 3 | System.out.println("Adding Coffee"); 4 | } 5 | 6 | public void addCondiments() { 7 | System.out.println("Adding Sugar and Milk"); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Behavioral/Template/java/Tea.java: -------------------------------------------------------------------------------- 1 | public class Tea extends beverageMaker { 2 | public void addBase() { 3 | System.out.println("Adding tea"); 4 | } 5 | 6 | public void addCondiments() { 7 | System.out.println("Adding Lemon"); 8 | } 9 | } 10 | 11 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Behavioral/Visitor/README.md: -------------------------------------------------------------------------------- 1 | - Visitor class changes executing algorithm of element class 2 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Creational/Factory_Method/README.md: -------------------------------------------------------------------------------- 1 | - [1. What](#what) 2 | 3 | 4 | ## 1. Factory Method DP 5 | - This is to hide the logic of object creation. 6 | - Replace direct object construction calls (using the new operator) with calls to a special factory method. 7 | - At RUNTIME, user/caller is not bothered about object creation Logic it just calls FACTORYMETHOD and required Object is returned. 8 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Creational/facade/Examples/Home_Theater/Code/include/LEDScreen.h: -------------------------------------------------------------------------------- 1 | #ifndef LEDSCREEN_H 2 | #define LEDSCREEN_H 3 | #include"screen.h" 4 | 5 | class LEDScreen:public screen{ 6 | public: 7 | void brightness(); 8 | void on(); 9 | void off(); 10 | }; 11 | 12 | #endif 13 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Creational/facade/Examples/Home_Theater/Code/include/MetalPopCornPopper.h: -------------------------------------------------------------------------------- 1 | #ifndef METALPOPCORNPOPPER_H 2 | #define METALPOPCORNPOPPER_H 3 | 4 | class MetalpopCornPopper{ 5 | public: 6 | void on(); 7 | void off(); 8 | void pop(); 9 | }; 10 | 11 | #endif 12 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Creational/facade/Examples/Home_Theater/Code/include/RoundTheaterLights.h: -------------------------------------------------------------------------------- 1 | #ifndef ROUNDTHEATERLIGHTS_H 2 | #define ROUNDTHEATERLIGHTS_H 3 | #include"TheaterLights.h" 4 | 5 | class RoundTheaterLights:public TheaterLights{ 6 | public: 7 | void on(); 8 | void off(); 9 | void dim(); 10 | }; 11 | 12 | #endif 13 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Creational/facade/Examples/Home_Theater/Code/include/TheaterLights.h: -------------------------------------------------------------------------------- 1 | #ifndef THEATERLIGHTS_H 2 | #define THEATERLIGHTS_H 3 | 4 | //Abstract class 5 | class TheaterLights{ 6 | public: 7 | virtual void on()=0; 8 | virtual void off()=0; 9 | virtual void dim()=0; 10 | }; 11 | 12 | #endif 13 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Creational/facade/Examples/Home_Theater/Code/include/config.h: -------------------------------------------------------------------------------- 1 | #ifndef CONFIG_H 2 | #define CONFIG_H 3 | 4 | #include 5 | using namespace std; 6 | 7 | #endif 8 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Creational/facade/Examples/Home_Theater/Code/include/popCornPopper.h: -------------------------------------------------------------------------------- 1 | #ifndef POPCORNPOPPER_H 2 | #define POPCORNPOPPER_H 3 | 4 | //Abstract class 5 | class popCornPopper{ 6 | public: 7 | virtual void on()=0; 8 | virtual void off()=0; 9 | virtual void pop()=0; 10 | }; 11 | 12 | #endif 13 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Creational/facade/Examples/Home_Theater/Code/include/screen.h: -------------------------------------------------------------------------------- 1 | #ifndef SCREEN_H 2 | #define SCREEN_H 3 | 4 | //Abstract class 5 | class screen{ 6 | public: 7 | virtual void brightness()=0; 8 | virtual void on()=0; 9 | virtual void off()=0; 10 | }; 11 | 12 | #endif 13 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Creational/facade/Examples/Home_Theater/Code/src/LEDScreen.cpp: -------------------------------------------------------------------------------- 1 | #include"LEDScreen.h" 2 | #include"config.h" 3 | 4 | void LEDScreen::brightness(){ 5 | cout<<"LED Screen Brightness=500\n"; 6 | } 7 | void LEDScreen::off(){ 8 | cout<<"LED Screen off\n"; 9 | } 10 | void LEDScreen::on(){ 11 | cout<<"LED Screen on\n"; 12 | } 13 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Creational/facade/Examples/Home_Theater/Code/src/MetalpopCornPopper.cpp: -------------------------------------------------------------------------------- 1 | #include"MetalPopCornPopper.h" 2 | #include"config.h" 3 | 4 | void MetalpopCornPopper::on(){ 5 | cout<<"MetalpopCornPopper on\n"; 6 | } 7 | void MetalpopCornPopper::off(){ 8 | cout<<"MetalpopCornPopper off\n"; 9 | } 10 | void MetalpopCornPopper::pop(){ 11 | cout<<"MetalpopCornPopper popping!!\n"; 12 | } 13 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Creational/facade/Examples/Home_Theater/Code/src/RoundTheaterLights.cpp: -------------------------------------------------------------------------------- 1 | #include"RoundTheaterLights.h" 2 | #include"config.h" 3 | 4 | void RoundTheaterLights::on(){ 5 | cout<<"RoundTheaterLights on\n"; 6 | } 7 | void RoundTheaterLights::off(){ 8 | cout<<"RoundTheaterLights off\n"; 9 | } 10 | void RoundTheaterLights::dim(){ 11 | cout<<"RoundTheaterLights popping!!\n"; 12 | } 13 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Creational/facade/README.md: -------------------------------------------------------------------------------- 1 | ## Facade DP 2 | - **Facade Dictionary meaning?** Deceptive outward appearance. 3 | - **What?** Provides a unified interface to a set of interfaces in system. It alters the existing complex interface and makes it simple to use. We can create any number of facades for given system. 4 | 5 | ## [Examples](Examples) 6 | 7 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Structural/Adapter/Examples/FlatPinPlug_roundSwitchBoard/README.md: -------------------------------------------------------------------------------- 1 | ## Example-1 2 | - FlatPinPlug want to interact with roundSwitchBoard. 3 | - We need adapter in between. 4 | - **How it works?** Adapter will have pointer to object of target class. 5 | 6 | 7 | - **[Code](Code)** 8 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Structural/Adapter/Examples/FlatPinPlug_roundSwitchBoard/adapter-dp.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Languages/Programming_Languages/c++/Design_Pattens/Structural/Adapter/Examples/FlatPinPlug_roundSwitchBoard/adapter-dp.JPG -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Structural/Decorator/java/decorator/Beverage.java: -------------------------------------------------------------------------------- 1 | public abstract class Beverage { 2 | String description = "Unknown Beverage"; 3 | 4 | public String getDescription() { 5 | return description; 6 | } 7 | public abstract double cost(); 8 | } 9 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Structural/Decorator/java/decorator/CondimentDecorator.java: -------------------------------------------------------------------------------- 1 | public abstract class CondimentDecorator extends Beverage { 2 | public abstract String getDescription(); 3 | } 4 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Structural/Decorator/java/decorator/DarkRoast.java: -------------------------------------------------------------------------------- 1 | public class DarkRoast extends Beverage { 2 | public DarkRoast() { 3 | description = "DarkRoast"; 4 | } 5 | 6 | public double cost() { 7 | return 1.99; 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Structural/Decorator/java/decorator/Espresso.java: -------------------------------------------------------------------------------- 1 | public class Espresso extends Beverage { 2 | public Espresso() { 3 | description = "Espresso"; 4 | } 5 | 6 | public double cost() { 7 | return 1.99; 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Structural/Decorator/java/decorator/HouseBlend.java: -------------------------------------------------------------------------------- 1 | public class HouseBlend extends Beverage { 2 | public HouseBlend() { 3 | description = "House Blend Coffee"; 4 | } 5 | 6 | public double cost() { 7 | return .89; 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Structural/Decorator/java/decorator/Mocha.java: -------------------------------------------------------------------------------- 1 | public class Mocha extends CondimentDecorator { 2 | Beverage beverage; 3 | 4 | public Mocha(Beverage beverage) { 5 | this.beverage = beverage; 6 | } 7 | public String getDescription() { 8 | return beverage.getDescription() + ", Mocha"; 9 | } 10 | public double cost() { 11 | return .20 + beverage.cost(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Design_Pattens/Structural/Decorator/java/decorator/README: -------------------------------------------------------------------------------- 1 | STARBUZZ COFFEE: 2 | In addition to coffee, you can add condiments like soy, mocha, chocolate etc. Costs would be separate for them. 3 | 4 | a. In Java each class goes into sepeate file. Name of file should be same as class. 5 | b. StarbuzzCoffee.java contains main() fnuction 6 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Libraries_FileHandling/Streams/StringStream/README.md: -------------------------------------------------------------------------------- 1 | ## StringStream or basic_string 2 | - **What** implements input and output operations on string based streams 3 | 4 | 5 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Libraries_FileHandling/Strings/Functions/README.md: -------------------------------------------------------------------------------- 1 | ## Functions 2 | - **getline:** Extract characters from is, put into str until any of following is found: delim, `\n`, Eof, error. 3 | ```c++ 4 | istream& getline (istream& is, string& str, char delim); 5 | ``` 6 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Standard_Template_Library/container_library/associative_containers/sorted_ordered/multimap/README.md: -------------------------------------------------------------------------------- 1 | - [Insert](#i) 2 | 3 | 4 | ### Insert 5 | ```cpp 6 | multimap m; 7 | m.insert(pair(1,3)); 8 | ``` 9 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Standard_Template_Library/container_library/container_adoptors/Queue/Priority_Queue/MaxHeap/push_insert.md: -------------------------------------------------------------------------------- 1 | ### A. Push/insert 2 | ```c++ 3 | #include 4 | 5 | std::priority_queue> maxHeap; 6 | maxHeap.push(make_pair(dSpeed, strName)); 7 | 8 | double first = maxHeap.top().first; 9 | ``` 10 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Standard_Template_Library/container_library/container_adoptors/Queue/Priority_Queue/README.md: -------------------------------------------------------------------------------- 1 | ## Priority Queue/Heap 2 | - **What** 3 | - Check ds_questions/data_structures/queue 4 | 5 | ## A. Types of Heap 6 | - **1. Max Heap** 7 | - `priority_queue> pq` 8 | 9 | - **2. Min Heap** 10 | - `priority_queue , greater> pq;` 11 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/Streams/README.md: -------------------------------------------------------------------------------- 1 | **Streams** 2 | 3 | ### Streams 4 | - Streams are pipelines for sending and receiving information to programs. With streams we can: 5 | - RW from files, memory, 1 program to other etc. 6 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/boost/Libraries/File_System/Code_Examples/README.md: -------------------------------------------------------------------------------- 1 | ## Examples 2 | - _[Open Read File](OpenReadFile.md)_ 3 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/boost/Libraries/File_System/README.md: -------------------------------------------------------------------------------- 1 | ## File System 2 | - Library for doing all operation to query, manipulate paths, files, and directories. 3 | - **[Source Code Examples](Code_Examples)** 4 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/boost/Libraries/IOStreams/README.md: -------------------------------------------------------------------------------- 1 | ## Boost IOStreams 2 | - *[What is stream?](../../../Libraries_FileHandling/Streams/File_Handling)* 3 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/boost/Libraries/Program_Options/README.md: -------------------------------------------------------------------------------- 1 | ### program_options library 2 | - **What** Reading (name value) pairs from: 3 | - command line OR 4 | - config file 5 | -------------------------------------------------------------------------------- /Languages/Programming_Languages/c++/boost/Libraries/Tokenizer/README.md: -------------------------------------------------------------------------------- 1 | ### Tokenizer 2 | - **What** Boost.Tokenizer helps in tokenizing the string. 3 | -------------------------------------------------------------------------------- /Languages/README.md: -------------------------------------------------------------------------------- 1 | - **[C vs C++ vs Java vs Python vs goLang](Programming_Languages/)** 2 | - **Languages** 3 | - [Scripting](ScriptingLanguages) 4 | - [Complied](Programming_Languages) 5 | - [Graph Query Language (Cypher)](https://code-with-amitk.github.io/System_Design/Concepts/Databases/Graph%20DB/Cypher.html) 6 | - **[Memory layout of process](/Threads_Processes_IPC/Processes):** stack, heap, Data segment, code segment 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Languages/ScriptingLanguages/JavaScript/JavaScript_Lang/Code/Add_JS_on_HTML_Page/script.js: -------------------------------------------------------------------------------- 1 | function createParagraph() { 2 | const para = document.createElement("p"); 3 | para.textContent = "You clicked the button!"; 4 | document.body.appendChild(para); 5 | } 6 | 7 | const buttons = document.querySelectorAll("button"); 8 | 9 | for (const button of buttons) { 10 | button.addEventListener("click", createParagraph); 11 | } 12 | -------------------------------------------------------------------------------- /Languages/ScriptingLanguages/JavaScript/JavaScript_Lang/Code/Add_JS_on_HTML_Page/test.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Apply JavaScript example 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Languages/ScriptingLanguages/PHP/Datatypes/Variables/README.md: -------------------------------------------------------------------------------- 1 | Varaibles 2 | 3 | ### Variables 4 | ```php 5 | $test = 0; //$ in front means its a variable 6 | ``` 7 | -------------------------------------------------------------------------------- /Languages/ScriptingLanguages/PHP/README.md: -------------------------------------------------------------------------------- 1 | - [Why, What PHP](#WhyWhat) 2 | -------------------------------------------------------------------------------- /Languages/ScriptingLanguages/PHP/WhyWhat/README.md: -------------------------------------------------------------------------------- 1 | - [Why](#why) 2 | 3 | 4 | ### Why PHP 5 | This is general-purpose scripting language that is especially suited for web development and can be embedded into HTML. 6 | -------------------------------------------------------------------------------- /Languages/ScriptingLanguages/Python/Input_Output/README.md: -------------------------------------------------------------------------------- 1 | - [Taking input from keyboard](#in) 2 | 3 | 4 | ### Taking input from keyboard 5 | ```py 6 | if __name__ == '__main__': 7 | n = int(input()) 8 | ``` 9 | -------------------------------------------------------------------------------- /Languages/ScriptingLanguages/Python/String/README.md: -------------------------------------------------------------------------------- 1 | - [String Functions in C++,Rust,Python](/DS_Questions/Questions/Strings/OPERATIONS/README.md#fun) 2 | -------------------------------------------------------------------------------- /Languages/ScriptingLanguages/Python/containers/Dequeue/README.md: -------------------------------------------------------------------------------- 1 | **Deque** 2 | - [Deque in C++,Rust,Python](/Languages/Programming_Languages/c++/Standard_Template_Library/container_library/sequence_containers/Deque/README.md) 3 | -------------------------------------------------------------------------------- /Languages/ScriptingLanguages/Python/pandas/README.md: -------------------------------------------------------------------------------- 1 | ## pandas 2 | - library for processing and analyzing real world data. Usages: 3 | - parsing multiple file formats 4 | - converting input data table into a NumPy matrix arrays. 5 | - 1-D array/data called series. 2-D array/tabular data/spreadsheets is called DataFrames. 6 | - Plotting dataframes using .plot() 7 | -------------------------------------------------------------------------------- /Languages/ScriptingLanguages/Python/super-function.py: -------------------------------------------------------------------------------- 1 | class base (obj): 2 | def __init__(self): 3 | print ("Base") 4 | 5 | class derv (base): 6 | def __init__(self): 7 | base.__init__(self) 8 | -------------------------------------------------------------------------------- /Languages/ScriptingLanguages/README.md: -------------------------------------------------------------------------------- 1 | ### Scripting/Interpreter Language 2 | - **What?** Takes 1 line at a time & executes that line. Interpreter will terminate the program as soon it finds any error on any particular line. 3 | - **Examples?** python, perl, tcl shell script, lua, javascript, vbscript 4 | ```c 5 | source-code ------------- 6 | *.py --> | Interpreter | -> O/P or exception 7 | -------------- 8 | ``` 9 | -------------------------------------------------------------------------------- /Languages/ScriptingLanguages/Shell_Scripting/Bash/CommandLineArguments/$#.md: -------------------------------------------------------------------------------- 1 | # $# 2 | - Total number of command line arguments 3 | ```bash 4 | #!/usr/bin/env bash 5 | 6 | if [ $# -ne 2 ] 7 | then 8 | echo "Arguments not equal to 2" 9 | exit 0 10 | fi 11 | 12 | # ./test.sh 13 | Arguments not equal to 2 14 | ``` 15 | -------------------------------------------------------------------------------- /Languages/ScriptingLanguages/Shell_Scripting/Bash/CommandLineArguments/$@.md: -------------------------------------------------------------------------------- 1 | # $@ 2 | - Collects all command line arguments in array 3 | ```bash 4 | NAMES=$@ 5 | 6 | for VAR in $NAMES 7 | do 8 | echo "Hello" $VAR "How are you?" 9 | done 10 | 11 | # $ ./test.sh amit vivek 12 | Hello amit How are you? 13 | Hello vivek How are you? 14 | ``` 15 | -------------------------------------------------------------------------------- /Languages/ScriptingLanguages/Shell_Scripting/Bash/Exit_Status.md: -------------------------------------------------------------------------------- 1 | ## exit status 2 | ```bash 3 | # echo $? //$? returns exit status of last executed command/script 4 | 0 5 | 6 | # echo $? //exit status of echo 7 | 0 8 | ``` 9 | -------------------------------------------------------------------------------- /Languages/ScriptingLanguages/Shell_Scripting/Bash/README.md: -------------------------------------------------------------------------------- 1 | ## shebang 2 | > #!/usr/bin/env bash 3 | - **What** if present should be 1st line of bash(else it will be ignored like comment). This tell which interpreter should be used to interpret the file. 4 | ```c 5 | #!/usr/bin/env bash //shebang for bash 6 | #!/usr/bin/env python //shebang for python 7 | #!/usr/bin/env node //shebang for nodejs 8 | ``` 9 | -------------------------------------------------------------------------------- /Languages/ScriptingLanguages/Shell_Scripting/Bash/Variables.md: -------------------------------------------------------------------------------- 1 | ## Creating/Using Variable 2 | - **1. Printing variable values on screen** 3 | ```bash 4 | # vim hello.sh 5 | #!/usr/bin/env bash 6 | FIRST_NAME=Amit 7 | !lastname= kumar //variable initialization cannot have space 8 | lastname=kumar 9 | echo Hello $FIRST_NAME $lastname //Variables are prefixed with $ 10 | 11 | O/P: 12 | Hello Amit kumar 13 | ``` 14 | -------------------------------------------------------------------------------- /Languages/StyleSheetLanguage/README.md: -------------------------------------------------------------------------------- 1 | ## Stylesheet Language 2 | - **Stylesheet?** This is a file or form that is used to define the layout style of a document. Examples: 3 | - *1.* Cascading Style Sheet (CSS), used for styling Web pages. 4 | - *2.* XSL (eXtensible Stylesheet Language) is a styling language for XML. 5 | -------------------------------------------------------------------------------- /Libraries/Graphics Rendering/README.adoc: -------------------------------------------------------------------------------- 1 | :toc: 2 | :toclevels: 4 3 | 4 | 5 | == https://code-with-amitk.github.io/Libraries/[OpenGL] 6 | === https://code-with-amitk.github.io/Libraries/[Glue for OpenGL] 7 | 8 | == https://code-with-amitk.github.io/Libraries/[DirectX] 9 | -------------------------------------------------------------------------------- /Libraries/Json/README.adoc: -------------------------------------------------------------------------------- 1 | :toc: 2 | :toclevels: 4 3 | 4 | == Json Parsing 5 | * https://code-with-amitk.github.io/Libraries/[Jansson] 6 | -------------------------------------------------------------------------------- /Libraries/PdCurses/README.md: -------------------------------------------------------------------------------- 1 | ## PdCurses 2 | - **What?** MIT licensesed open source library for DOS, Windows, Linux, MAC for creating Windows Applications and Command lines. 3 | - **Why?** 4 | - *1.* We can write cross platform code, build using cmake for building console applications. Now same code(without change) will work on. 5 | - *2.* Games can be build in pdcurses 6 | 7 | 8 | -------------------------------------------------------------------------------- /Libraries/PdCurses/Source_Examples/Progress_bar/libs/windows/pdcurses/pdcurses.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Libraries/PdCurses/Source_Examples/Progress_bar/libs/windows/pdcurses/pdcurses.lib -------------------------------------------------------------------------------- /Libraries/PdCurses/Source_Examples/Progress_bar/libs/windows/pdcurses/test: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Libraries/PdCurses/Source_Examples/Table-Multi_Columns/README.md: -------------------------------------------------------------------------------- 1 | ## [Menu Library](https://tldp.org/HOWTO/NCURSES-Programming-HOWTO/menus.html) 2 | -------------------------------------------------------------------------------- /Libraries/XML/Xerces_Xalan/README.md: -------------------------------------------------------------------------------- 1 | ||Xalan Library|Xerces Library| 2 | |---|---|---| 3 | |What|
  • [XSLT](/Languages/Markup_Language/XML) processor for transforming XML documents into HTML, text, or other XML document types
  • It works with xerces
|Parse, Validate, Manipulate [XML](/Languages/Markup_Language/XML) documents| 4 | -------------------------------------------------------------------------------- /Libraries/libevent/README.md: -------------------------------------------------------------------------------- 1 | ## [libevent](https://libevent.org/) 2 | - *What?* Wrapper library built on top of the existing polling methods. 3 | - *Advantage?* Write code once, compile and run on many OS. 4 | - *Disadvantages:* Since its wrapper over existing polling methods, ir inherits the issues those polling methods have. 5 | - *When to use libevent?* Multi-OS support. Robust tested APIs 6 | -------------------------------------------------------------------------------- /Licenses/README.md: -------------------------------------------------------------------------------- 1 | - [Licenses](#lic) 2 | 3 | 4 | ## Software Licenses 5 | 6 | ||Source Code Available|Modify|Publish| 7 | |---|---|---|---| 8 | |Apache|yes|yes|yes| 9 | |GNU GPL(General Public License)|yes|yes|Yes, Under GPL License only (Means with source Code)| 10 | |LGPL(Lesser GPL)|no|yes|Yes, But Source code release is not mandate| 11 | |MIT|yes|yes|same as GNU| 12 | -------------------------------------------------------------------------------- /Machine_Learning/README.md: -------------------------------------------------------------------------------- 1 | - [Types of ML. Supervised Learning, Unsupervised Learning, Semisupervised Learning, Supervised Learning](Types) 2 | - [Terms](https://code-with-amitk.github.io/Machine%20Learning/) 3 | - AI vs ML, Bias, CNTK, Keras, overfitting, scalar, Tensors, Theano, vector, underfitting, variance 4 | - [LangChain](https://code-with-amitk.github.io/Machine%20Learning/LangChain/) 5 | - Messages, LangChain Messages 6 | -------------------------------------------------------------------------------- /Motherboard/8952_PIC/8259_pic.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Motherboard/8952_PIC/8259_pic.jpg -------------------------------------------------------------------------------- /Motherboard/8952_PIC/README.md: -------------------------------------------------------------------------------- 1 | ## PIC / Programmable Interrupt Controller / 8952 Intel 2 | - **Pins** 3 | - **INT Interrupt line, connected to INTR of microprocessor** 4 | - INTA-bar Interrupt ack, received active low from microprocessor 5 | - IR0-7 Asynchronous IRQ input lines, generated by peripherals. 6 | 7 | 8 | 9 | ### [Modules of 8259](Modules_of_8259.md) 10 | -------------------------------------------------------------------------------- /Motherboard/CPU/APU/APU.md: -------------------------------------------------------------------------------- 1 | ## APU(AMD Accelerated Processing Unit)/Formely Fusion 2 | - **What** 3 | - This is 64-bit CPU from AMD designed to act as CPU+GPU on single die. These are general purpose processors. 4 | - **Units** See pvt research 5 | 6 | -------------------------------------------------------------------------------- /Motherboard/CPU/Communication/SMBus.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Motherboard/CPU/Communication/SMBus.JPG -------------------------------------------------------------------------------- /Motherboard/CPU/FetchDecodeExecuteCycle_Pipeline/SuperScaler_CPU/Superscalar_cpu.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Motherboard/CPU/FetchDecodeExecuteCycle_Pipeline/SuperScaler_CPU/Superscalar_cpu.JPG -------------------------------------------------------------------------------- /Motherboard/CPU/Memory/Hard_Disk/README.md: -------------------------------------------------------------------------------- 1 | ## Hard Disk / Magnetic Disk 2 | - **[Terms](Terms):** Platter, sector, track 3 | - Information is written onto the disk in concentric circles on disks. 4 | - **How Read Happens?** 5 | - *1. Move the RW to track-2 (1 msec).* Suppose platters has 500 tracks. 6 | - *2. Drive rotates to get correct sector under RW head(5-10 msec).* 7 | - *3. Read,write information (50-200 MB/sec)* 8 | -------------------------------------------------------------------------------- /Motherboard/CPU/Memory/Hard_Disk/Terms/hard_disk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Motherboard/CPU/Memory/Hard_Disk/Terms/hard_disk.png -------------------------------------------------------------------------------- /Motherboard/CPU/Memory/Memory_types.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Motherboard/CPU/Memory/Memory_types.jpg -------------------------------------------------------------------------------- /Motherboard/CPU/Memory/RAM/README.md: -------------------------------------------------------------------------------- 1 | ## RAM / Random Access Memory 2 | - [Video RAM / Frame Buffer / Video Memory / VRAM](FrameBuffer_VideoRAM_VRAM.md) 3 | -------------------------------------------------------------------------------- /Motherboard/CPU/Memory/ROM/BIOS/VBIOS/README.md: -------------------------------------------------------------------------------- 1 | ## VBIOS(Video BIOS) 2 | - BIOS of a graphics card/GPU. This initializes the GPU. 3 | - provides a set of video-related functions that are used by programs to access the video hardware. 4 | -------------------------------------------------------------------------------- /Motherboard/CPU/Memory/Virtual_Physical_Memory/Convert_Virtual_to_Physical_Address/README.md: -------------------------------------------------------------------------------- 1 | ||[16 Bit(8086)](16Bit)|[32 Bit(80386)](32Bit)| 2 | |---|---|---| 3 | |Address Bus|20 bit|32 bit| 4 | |Data Bus|16 bit|32 bit| 5 | 6 | ### Address bus, Hard Disk Size 7 | ```c 8 | Bit(Lines) Addresses 9 | 1 = 2^1 2 10 | 2 = 2^2 4 //0,1,2,3 11 | .. 12 | 16 = 2^16 65536 13 | .. 14 | 32 = 15 | ``` 16 | 17 | -------------------------------------------------------------------------------- /Motherboard/CPU/Memory/Virtual_Physical_Memory/README.md: -------------------------------------------------------------------------------- 1 | ### Virtual Memory = Hard Disk / Physical Memory = RAM 2 | - [Page, Paging, Demand Paging, Pure Demand Paging, Page Table, Frame, MMU, Page Fault, Page Eviction](Terms.md) 3 | - **Max Virtual Memory?** 4 | 5 | [Memory Management HTML](https://code-with-amitk.github.io/Motherboard/Memory/virtual_and_physical.html) 6 | -------------------------------------------------------------------------------- /Motherboard/CPU/Memory/x86-32_64 Registers.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Motherboard/CPU/Memory/x86-32_64 Registers.jpg -------------------------------------------------------------------------------- /Motherboard/CPU/Microprocessors/32Bit-80386/80386.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Motherboard/CPU/Microprocessors/32Bit-80386/80386.png -------------------------------------------------------------------------------- /Motherboard/CPU/Microprocessors/8086/8086-pin-digram.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Motherboard/CPU/Microprocessors/8086/8086-pin-digram.jpg -------------------------------------------------------------------------------- /Motherboard/CPU/PCI/Terms/PCB_Peripheral_Circuit_Board/README.md: -------------------------------------------------------------------------------- 1 | ### Peripheral Circuit Board(PCB)? 2 | - **What** Boards of peripheral devices. PCB has 8 pins out of which 4 are for interrupts. Eg: dvr, printer, external modem, game console etc. 3 | - **Response PCI provides to CPU?** PCB provides only these 3 addresses to CPU: 4 | - Configuration Registers (also called **config space** {Section-C}) 5 | - memory locations 6 | - I/O ports 7 | -------------------------------------------------------------------------------- /Motherboard/CPU/PCI/Terms/PCI_Bridge/README.md: -------------------------------------------------------------------------------- 1 | ## PCI-Bridges? 2 | - These are used to connect more than 1 PCI bus to the system. Bridges joins the PCI buses. 3 | -------------------------------------------------------------------------------- /Motherboard/CPU/PCI/mcfg-xsdt-rdsp.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Motherboard/CPU/PCI/mcfg-xsdt-rdsp.PNG -------------------------------------------------------------------------------- /Motherboard/CPU/PCI/pci-header.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Motherboard/CPU/PCI/pci-header.PNG -------------------------------------------------------------------------------- /Motherboard/CPU/README.md: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Motherboard/CPU/Terms/Aperture/README.md: -------------------------------------------------------------------------------- 1 | ## Aperture 2 | - **What** 3 | - In photography, This is a device that controls the amount of light admitted through an opening. This defines the size of the opening in the lens. 4 | - Portion of the address space which is persistently associated with a particular peripheral device or a memory unit. Usually it starts from 0. 5 | -------------------------------------------------------------------------------- /Motherboard/CPU/Terms/Firmware/Microcode/README.md: -------------------------------------------------------------------------------- 1 | ## Microcode 2 | - **What** 3 | - This is firmware for CPU. 4 | - Microcode updates can fix bugs and other errors, without requiring complete replacement of CPU hardware. 5 | - **Tasks** 6 | - Converts instructions the CPU receives in form of physical, circuit-level operations into software operations. 7 | 8 | -------------------------------------------------------------------------------- /Motherboard/CPU/Terms/ROM-EPROM/README.md: -------------------------------------------------------------------------------- 1 | ## ROM(READ ONLY MEMORY)? 2 | - **What** 3 | - ROM is non-volatile memory whose data cannot be modified once manufacturer has written it. 4 | 5 | ## EEPROM(Erasable programmable ROM) 6 | - **What** 7 | - These can be electrically erased and re-programmed, but possible only certain number of times. 8 | -------------------------------------------------------------------------------- /Motherboard/CPU/power-management/Current/Rheostat/README.md: -------------------------------------------------------------------------------- 1 | ## Rheostat 2 | - **What?** This is electrical instrument used to control a current by varying the resistance connected on [I2C Bus](/cpu_memory_thread_process/CPU/Communication/Buses/I2C.md) as slave. 3 | - **Resistor?** resistors are used to reduce current flow, adjust signal levels, to divide voltages. 4 | -------------------------------------------------------------------------------- /Motherboard/CPU/power-management/Voltage/README.md: -------------------------------------------------------------------------------- 1 | ## Voltage 2 | - **What?** Electric potential difference, electric pressure or electric tension is the difference in electric potential between two points 3 | -------------------------------------------------------------------------------- /Motherboard/CPU/power-management/Voltage/voltage-regulator.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Motherboard/CPU/power-management/Voltage/voltage-regulator.PNG -------------------------------------------------------------------------------- /Networking/IP_Address_Types/Multicast/Protocols/PIM/PIM-DM.md: -------------------------------------------------------------------------------- 1 | - Packets reaches all nodes. Those who does not want to listen to multicast packets will PRUNE themseleves from that. 2 | 3 | - FLOODING --> PRUNING OFF 4 | -------------------------------------------------------------------------------- /Networking/IP_Address_Types/Multicast/Protocols/PIM/PIM-SM.md: -------------------------------------------------------------------------------- 1 | This is not Flooding --> Pruning. 2 | 3 | This is PULL Technology. 4 | 5 | All Multicast Servers will direct their Traffic to RP. 6 | CLients requests Multicast Traffic from RP. 7 | 8 | 3 different ways for assiging RP 9 | 1. Statically 10 | 2. Automatically [Auto-RP, Cisco priopriatray] 11 | 3. BSR(Boot Strap Router] 12 | -------------------------------------------------------------------------------- /Networking/IP_Address_Types/Multicast/Protocols/PIM/README.md: -------------------------------------------------------------------------------- 1 | # PIM(Protocol Independent Multicast) 2 | 3 | THIS IS MULTICAST PROTOCOL. 4 | 5 | This does not depends on Any unicast routing protocol used for routing. 6 | Unlike MOSPF relied on OSPF. 7 | -------------------------------------------------------------------------------- /Networking/Networking_Devices/Firewall/JIMS/JIMS.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Networking/Networking_Devices/Firewall/JIMS/JIMS.jpg -------------------------------------------------------------------------------- /Networking/Networking_Devices/Firewall/JIMS/JIMS_SRX.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Networking/Networking_Devices/Firewall/JIMS/JIMS_SRX.JPG -------------------------------------------------------------------------------- /Networking/Networking_Devices/Firewall_Gateway_Router.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Networking/Networking_Devices/Firewall_Gateway_Router.jpg -------------------------------------------------------------------------------- /Networking/Networking_Devices/Gateway/Juniper_SRX/SRXSeries_Types/BranchSRX/srx-series.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Networking/Networking_Devices/Gateway/Juniper_SRX/SRXSeries_Types/BranchSRX/srx-series.png -------------------------------------------------------------------------------- /Networking/Networking_Devices/Gateway/Juniper_SRX/SRXSeries_Types/DataCenterSRX/SPC/SPU/README.md: -------------------------------------------------------------------------------- 1 | ## SPU / Services Processing Units 2 | - SPU is the processor that handles all of the services on the data center SRX Series. 3 | - Every SPU has a associated weighted. 4 | 5 | ### Modes in which SPU can operate 6 | - **1. Central point** 7 | - CP maintains *Session table* for all of the sessions that are active on the SRX. 8 | - **2. Flow processor** 9 | -------------------------------------------------------------------------------- /Networking/Networking_Devices/Gateway/Juniper_SRX/SRXSeries_Types/DataCenterSRX/srx-datacenter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Networking/Networking_Devices/Gateway/Juniper_SRX/SRXSeries_Types/DataCenterSRX/srx-datacenter.png -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-1/Media_Types/Guided/Fibre_Cable/README.md: -------------------------------------------------------------------------------- 1 | ## Fibre Cable 2 | - Similar to [Coaxial Cable](../) but instead of copper has Glass at center through which light propagates same as [Fibre Optic](../). 3 | - Fibers are typically grouped in bundles, protected by an outer sheath. 4 | - **Source:** LEDs (Light Emitting Diodes) and semiconductor lasers 5 | -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-1/Media_Types/Guided/Fibre_Optic/Advantages_Disadv_of_FO.md: -------------------------------------------------------------------------------- 1 | ## Advantages 2 | - Not affected by power surges, electromagnetic waves, power failure 3 | - Light Weight 4 | 5 | ## Disadvantages 6 | - New technology(not known to engineers) 7 | - Will broke if bend too much 8 | - Otical transmission is inherently unidirectional, two-way communication requires either two fibers or two frequency bands on one fiber. 9 | -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-1/Media_Types/Guided/Guided-Media.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Networking/OSI-Layers/Layer-1/Media_Types/Guided/Guided-Media.jpg -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-1/Media_Types/README.md: -------------------------------------------------------------------------------- 1 | - **Guided** 2 | - Twisted Pair(Eg Ethernet) 3 | - Coaxial Cable /Copper wire (Eg: Cable TV) 4 | - Fiber Optic 5 | - Fiber Cable 6 | - **Unguided(Through Air)** 7 | - Satellite 8 | - lasers 9 | - Radiowave, Microwave, infrared 10 | 11 | - **Twisted Pair:** 12 | -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-1/Media_Types/Unguided/README.md: -------------------------------------------------------------------------------- 1 | ## Unguided 2 | - **[How unguided Communication works?](How_it_works.md)** 3 | - **[Medium Of Communication = Waves](Type_of_Waves.md)** 4 | - **Frequency hopping spread spectrum** 5 | - the transmitter hops from frequency to frequency hundreds of times per second. It is popular for military communication because it makes transmissions hard to detect and next to impossible to jam. 6 | -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-1/Media_Types/Unguided/Types_of_Waves/Mircowaves/README.md: -------------------------------------------------------------------------------- 1 | ## Microwaves Properties 2 | - Unlike radio waves does not pass thru buildings well at lower frequencies. 3 | - Always travel in straight line. 4 | -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-1/Media_Types/Unguided/Types_of_Waves/Radio_Waves/README.md: -------------------------------------------------------------------------------- 1 | ## Radio Waves 2 | - **Properties of radio waves are frequency dependent** 3 | - Low frequencies: radio waves pass through obstacles 4 | - High Frequency: 5 | - Travel in straight lines and bounce off obstacles. 6 | - Gets absorbed in rain and other objects. 7 | - At all frequencies, these are subject to interference from motors and other electrical equipment 8 | -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-1/Media_Types/Unguided/Types_of_Waves/Type_of_waves.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Networking/OSI-Layers/Layer-1/Media_Types/Unguided/Types_of_Waves/Type_of_waves.jpg -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-2/Channelization_Techniques/Layer2-Channelization_Techniques.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Networking/OSI-Layers/Layer-2/Channelization_Techniques/Layer2-Channelization_Techniques.jpg -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-2/Medium_Access_Control_Techniques/CSMA/802_11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Networking/OSI-Layers/Layer-2/Medium_Access_Control_Techniques/CSMA/802_11.png -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-2/Protocols/L2TP/Packet_Transfer/L2TP.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Networking/OSI-Layers/Layer-2/Protocols/L2TP/Packet_Transfer/L2TP.jpg -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-2/README.md: -------------------------------------------------------------------------------- 1 | ## Layer-2 / Data Link Layer 2 | - **Why?** Used to deliver data frame within same network. Detects/corrects errors that occur in the physical layer. Create data frame to bits. 3 | - **Header size:** 14 bytes 4 | - **Layer2 Protocols?** ATM, ARP, IS-IS, SDLC, HDLS, SLIP, GFP, PLIP, 802.2, L2TP, 802.3(ethernet), Frame relay, PPP 5 | - **Parts of DL Layer?** 6 | 7 | 8 | -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-2/Terms/VXLAN/How_VXLAN_Works/vxlan-setup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Networking/OSI-Layers/Layer-2/Terms/VXLAN/How_VXLAN_Works/vxlan-setup.png -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-2/Terms/images/VLAN.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Networking/OSI-Layers/Layer-2/Terms/images/VLAN.jpg -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-2/Terms/images/r: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-2/data-link-layer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Networking/OSI-Layers/Layer-2/data-link-layer.png -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-3/Protocols/ICMP/Traceroute_flow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Networking/OSI-Layers/Layer-3/Protocols/ICMP/Traceroute_flow.png -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-3/Protocols/IGMP/README.md: -------------------------------------------------------------------------------- 1 | ## Contents 2 | - **About-IGMP.md** 3 | - What is IGMP 4 | - How it works? 5 | - MESSAGE TYPES 6 | - Report 7 | - Query 8 | - Leave 9 | - Message Format 10 | - Node Types 11 | - Router 12 | - Host 13 | - Terms 14 | - IGMP Snooping 15 | - **IGMPv1v2v3.md** 16 | - Comparison of v1 v2 v3 17 | -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-3/Protocols/IP_Internet_Protocol/IP_Addressing_Scheme/subnetting.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Networking/OSI-Layers/Layer-3/Protocols/IP_Internet_Protocol/IP_Addressing_Scheme/subnetting.png -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-3/README.md: -------------------------------------------------------------------------------- 1 | - [Protocols: IGMP, ICMP, IPv4, IPv6](Protocols) 2 | - [Routing. NAT](Routing) 3 | - [Security: AAA, Encryption, Hash_MessageDigest_MAC_HMAC, Integrity, Security_Vulnerabilities](Security) 4 | - Terms: Confusion, Difussion, Decryption, Kerckhoff’s principle, Rounds, Whitening 5 | - [VPN](VPN) 6 | -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-3/Security/AAA_Authentication_Authorization_Accounting/Authentication/SSO/README.md: -------------------------------------------------------------------------------- 1 | ## SSO(Single Sign On) 2 | - Allows a user to use 1 password to authenticate to Multiple servers without need of re-entering credentials. Kerberoes allows SSO. 3 | -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-3/Security/AAA_Authentication_Authorization_Accounting/Authentication/Type_Of_Authentication/Pre_Shared_Key/Adv_Disadv_psk.md: -------------------------------------------------------------------------------- 1 | ## Advantages of PSK 2 | - 1. Easy for administrators. 3 | - 2. No overhead as present in certificates. 4 | 5 | ## Disadvantages 6 | - 1. More vunuerable 7 | - 2. Cannot be delpoyed easily on 1000's of sites, since manual key exchange becomes immpossible. 8 | -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-3/Security/Encryption_at_hardware_level.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Networking/OSI-Layers/Layer-3/Security/Encryption_at_hardware_level.png -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-3/Security/Hash_MessageDigest_MAC_HMAC/README.adoc: -------------------------------------------------------------------------------- 1 | == link:https://code-with-amitk.github.io/Networking/OSI-Layers/Layer-3/Security/Hash%20MAC.html[Hash, MAC, HMAC] 2 | -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-3/Security/Integrity/README.adoc: -------------------------------------------------------------------------------- 1 | :toc: 2 | :toclevels: 5 3 | 4 | == link:https://code-with-amitk.github.io/Networking/OSI-Layers/Layer-3/Security/[Integrity] 5 | * Achieved using: 6 | ** 1. Hashing (SHA256, MD5, Argon2), MAC, HMAC 7 | ** 2. Signing / Digital Signatures 8 | -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-3/Security/Terms/Connected_Security/connected_security.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Networking/OSI-Layers/Layer-3/Security/Terms/Connected_Security/connected_security.JPG -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-3/VPN/OpenSource_VPN_server_Clients/VPN_Clients/README.md: -------------------------------------------------------------------------------- 1 | ## VPN Clients 2 | - *1.* ExpressVPN 3 | - *2.* NordVPN 4 | - *3.* IPVanish 5 | - *4.* phantom VPN(Avira): 61% user satisfaction 6 | - *5.* Anyconnect (Cisco): 81% user satisfaction 7 | -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-3/VPN/Part1_IKE/IKE_Headers_Payloads/README.md: -------------------------------------------------------------------------------- 1 | ## IKE Headers and Payloads 2 | - [Headers](Headers) 3 | - [Payloads](Payloads) 4 | -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-3/VPN/Part1_IKE/IKEv1/ProxyID/README.md: -------------------------------------------------------------------------------- 1 | ## ProxyID 2 | - This identifies what traffic is part of the VPN. 3 | - It contains 2 components: 4 | - _a._ Local & remote IP prefix 5 | - _b._ Service. 6 | - Strictly speaking, the proxy IDs do not really need to match the traffic, hence removed in much devices as SRX. 7 | -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-3/VPN/Terms/Anti_Replay_Protection/README.md: -------------------------------------------------------------------------------- 1 | ## Anti Replay Protection 2 | - [Replay Attack?](/Networking/OSI-Layers/Layer-3/Security/Security_Vulnerabilities) 3 | - How IPSec protects from this? //using a sequence of numbers 4 | - VPN G/W does not accept a packet whose seq no is already seen. 5 | - Seq no is maintained by the gateway. 6 | -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-3/VPN/Terms/SP/README.md: -------------------------------------------------------------------------------- 1 | ## SP / Security Policy 2 | ```c 3 | SP Format 4 | Node 3 2 5 | SA sa1 transport 192.168.2.2 ESP 1234 6 | -E DES_CBC "Auth-Key" 7 | -A HMAC_MD5 "encrypt-key" 8 | SP NA-1.0//src NA-5.0//dst ANY -P OUT IPSEC sa1 9 | SP 192.168.1.0 192.168.5.0 UDP -P IN IPSEC sa1 10 | `` 11 | -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-4/Protocols/Google_QUIC/QUIC_over_TCP-3-way-handshake.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Networking/OSI-Layers/Layer-4/Protocols/Google_QUIC/QUIC_over_TCP-3-way-handshake.JPG -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-4/Protocols/TCP/Characteristics/Error_Detection/TCP_SACK.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Networking/OSI-Layers/Layer-4/Protocols/TCP/Characteristics/Error_Detection/TCP_SACK.png -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-4/Protocols/TCP/Characteristics/Flow_and_Congestion_Control/TCP_Flow_Control/README.md: -------------------------------------------------------------------------------- 1 | ## Flow Control Methods 2 | - *1.* STOP-N-WAIT 3 | - *2.* SLIDING WINDOW 4 | - *3.* Silly Window Syndrome: Poor Flow Control Implementation 5 | - Solution: Clark's Algo 6 | -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-4/Protocols/TCP/Characteristics/Flow_and_Congestion_Control/TCP_Flow_Control/Stop-n-Wait/README.md: -------------------------------------------------------------------------------- 1 | ## Stop n Wait 2 | - Sender sends 1 packet, waits for ACK from receiver. ACK arrives then sends new packet. 3 | - **Disadv:** 4 | - a. Slow Transmission 5 | - b. Transmission speed(Depends on (N/W Speed, Speed of Receiver sending ACKs)) 6 | - *Solution:* [Sliding window](../) 7 | -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-4/Protocols/TCP/Characteristics/Multiplexing/TCP_Multiplexing.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Networking/OSI-Layers/Layer-4/Protocols/TCP/Characteristics/Multiplexing/TCP_Multiplexing.JPG -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-4/Protocols/TCP/TCP_Applications.md: -------------------------------------------------------------------------------- 1 | ## TCP Applications / Use Cases 2 | - *1.* Anything where we want get all transmitted data 3 | - SSH, FTP, telnet 4 | - Mails (SMTP, sending mail), (IMAP/POP, receiving mail) 5 | -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-4/Protocols/TCP/TCP_State_Diagram.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Networking/OSI-Layers/Layer-4/Protocols/TCP/TCP_State_Diagram.gif -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-4/Protocols/UDP/Advantages_Disadv_of_UDP.md: -------------------------------------------------------------------------------- 1 | ## Advantages 2 | - *1.* Fast 3 | - *2.* Takes less resources 4 | - *3.* Less delay 5 | - *4.* No Retransmissions 6 | 7 | ## Disadv 8 | - *1.* Connection less 9 | - *2.* No packet loss recovery 10 | - *3.* Unreliable 11 | -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-4/Protocols/UDP/Features/README.md: -------------------------------------------------------------------------------- 1 | ## Features 2 | - **UDP Hole Punching?** Making UDP packets to passthru the NAT. 3 | -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-4/Socket_Programming/APIs_Structures/APIs/README.md: -------------------------------------------------------------------------------- 1 | ## APIs 2 | - [socket](socket) 3 | -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-4/Socket_Programming/APIs_Structures/APIs/accept/README.md: -------------------------------------------------------------------------------- 1 | ### int accept(int sockfd, struct sockaddr `*client_addr`, socklen_t `*addrlen`) 2 | - Extract 1st connection from Connection Queue & return newfd. 3 | - Return: 4 | - -1 on failure, sets errorno (EAGAIN (resource temporarily unavailable)) 5 | -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-4/Socket_Programming/APIs_Structures/APIs/bind/README.md: -------------------------------------------------------------------------------- 1 | ## int bind(int sockfd, const struct sockaddr_in `*my_addr`, addrlen) 2 | - Assigns IP address to sockfd 3 | - if we want Server should bind to IP on which machine is running do bind. 4 | - *Returns* -1 on failure, sets errorno 5 | -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-4/Socket_Programming/APIs_Structures/APIs/connect/README.md: -------------------------------------------------------------------------------- 1 | ### int connect(int sockfd, struct sockaddr `*serv_addr`, int addrlen) 2 | - Only for TCP. UDP is connectionless, makes little sense to connect. 3 | - return values: 4 | - 0 on success 5 | - -1 on failure and errno is set 6 | -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-4/Socket_Programming/APIs_Structures/APIs/gethostname/README.md: -------------------------------------------------------------------------------- 1 | ### int gethostname(char `*hostname`, size_t size) 2 | - who am i 3 | - hostname is filled with hostname on return size is length of hostname array 4 | - Return: 5 | - 0 success 6 | - -1 on failure, sets errorno 7 | -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-4/Socket_Programming/APIs_Structures/APIs/getpeername/README.md: -------------------------------------------------------------------------------- 1 | ### int getpeername(int sockfd_connected, struct sockaddr `*their_addr`, int `*addrlen`) 2 | - Tells who is at the other end of a connected stream socket 3 | - Return 4 | - -1 on failure, sets errorno 5 | -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-4/Socket_Programming/APIs_Structures/APIs/inet_addr/README.md: -------------------------------------------------------------------------------- 1 | ## inet_addr 2 | - Converts IP address from IPv4 dotted notation to N/W byte order. 3 | -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-4/Socket_Programming/APIs_Structures/APIs/recv/README.md: -------------------------------------------------------------------------------- 1 | ### no_of_bytes_read = recv(int sockfd, void `*buf`, int len, int flags) 2 | - Can be used for both TCP and UDP 3 | - Return value: 4 | - -1 on failure, sets errorno 5 | - 0: remote side closed connection 6 | -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-4/Socket_Programming/APIs_Structures/APIs/recvfrom/README.md: -------------------------------------------------------------------------------- 1 | ### no_of_bytes_read= recvfrom(int sockfd, void `*buf`, int len, unsigned int flags,const struct sockaddr `*from_addr`, socklen_t tolen); 2 | - Return value: 3 | - -1 on failure, sets errorno 4 | - 0: remote side closed connection 5 | -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-4/Socket_Programming/APIs_Structures/APIs/sendto/README.md: -------------------------------------------------------------------------------- 1 | ### no_of_bytes_send = sendto(int sockfd, const void `*msg`, int len, unsigned int flags, const struct sockaddr `*dest_addr`, socklen_t tolen) 2 | - UDP send. Has 2 extra parameters destination Address struct, length 3 | - Return: 4 | - No of bytes sent(may be less than len). 5 | - -1 on failure, sets errorno 6 | -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-4/Socket_Programming/APIs_Structures/APIs/shutdown/README.md: -------------------------------------------------------------------------------- 1 | ### int shutdown(fd, int howto) 2 | - TCP 1/2 close feature. 3 | - howto 4 | - SHUT_RD: No more data can be read from socket 5 | - SHUT_WR: No data can be written to socket 6 | - SHUT_RDWR: same as close 7 | -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-4/Socket_Programming/APIs_Structures/README.md: -------------------------------------------------------------------------------- 1 | ### [APIs](APIs) 2 | - 3 | ### [Structures](Structures) 4 | - 5 | -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-7/ApplicationServer_WebServer/App_Webserver.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Networking/OSI-Layers/Layer-7/ApplicationServer_WebServer/App_Webserver.png -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-7/P2P_OverlayNetwork/Architecture/Overlay_Network.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Networking/OSI-Layers/Layer-7/P2P_OverlayNetwork/Architecture/Overlay_Network.jpg -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-7/P2P_OverlayNetwork/Terms/README.md: -------------------------------------------------------------------------------- 1 | ## Terms 2 | - **1. Free riding / Tragedy of the digital commons** 3 | - In most file-sharing systems, bigger fraction of participants only download files but send very few fragments. 4 | - Solution: (In BitTorrent) a file can be downloaded only when the downloading client is providing content to someone else. 5 | -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-7/P2P_OverlayNetwork/Types_of_Overlay_Network/Unstructured_Overlay/README.md: -------------------------------------------------------------------------------- 1 | ## Unstructured Overlay 2 | - [Methods of Exchanging data](Exchanging_data.md) 3 | -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-7/Protocols/DNS/Terms/DNS_Zone/dns-zones.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Networking/OSI-Layers/Layer-7/Protocols/DNS/Terms/DNS_Zone/dns-zones.PNG -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-7/Protocols/DNS/Terms/Domain_Name/domain-names.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Networking/OSI-Layers/Layer-7/Protocols/DNS/Terms/Domain_Name/domain-names.png -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-7/Protocols/DNS/forward-lookup.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Networking/OSI-Layers/Layer-7/Protocols/DNS/forward-lookup.JPG -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-7/Protocols/DNS/reverse-dns.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Networking/OSI-Layers/Layer-7/Protocols/DNS/reverse-dns.PNG -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-7/Protocols/DNS/reverse-lookup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Networking/OSI-Layers/Layer-7/Protocols/DNS/reverse-lookup.png -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-7/Protocols/Email/SMTP_Simple_Mail_Transfer_Protocol/SMTPArchitecture.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Networking/OSI-Layers/Layer-7/Protocols/Email/SMTP_Simple_Mail_Transfer_Protocol/SMTPArchitecture.JPG -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-7/Protocols/Encryption_Authentication/SSL_Vulnerabilities/README.md: -------------------------------------------------------------------------------- 1 | ## SSL Vulnerabilities 2 | - *[1. Freak Attack](Freak_Attack)* 3 | - *2. Beast:* Browser Exploit against SSL/TLS 4 | - *[3. Heartbleed](Heartbleed)* 5 | - *[4. Poodle](Poodle)* 6 | -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-7/Protocols/README.md: -------------------------------------------------------------------------------- 1 | ## Terms 2 | 3 | |URL(Uniform Resource Identifier)|Address of Webserver Not resource.Eg: http://www.w3.org/Icons/w3c_home| 4 | |---|---| 5 | |URI(Uniform Resource Locator)/web Address|Address of Web Resource, Web Page http://www.w3.org/Icons/w3c_home.gif 6 | |URN(Uniform resource Name)|Name of resource. Eg: Amit Kumar| 7 | -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-7/Terms/README.md: -------------------------------------------------------------------------------- 1 | ## Terms 2 | - [Application Firewall, IPS, IDS, UTM](ApplicationFirewall_IPS_UTM) 3 | -------------------------------------------------------------------------------- /Networking/OSI-Layers/Layer-7/WebServer_WebClient_WebService/WebClient_Connecting_WebServer/REST API.adoc: -------------------------------------------------------------------------------- 1 | 2 | 3 | == link:https://code-with-amitk.github.io/Networking/OSI-Layers/Layer-7/REST%20API/[REST API / RESTful API] 4 | -------------------------------------------------------------------------------- /Networking/OSI-Layers/Writing_own_Protocol/README.md: -------------------------------------------------------------------------------- 1 | ## Writing Own Protocol 2 | - **Protocol?** Collection of agreements allowing two or more devices and/or applications to communicate with each other. 3 | - it contains Handshake, Message Exchange, tear down 4 | - *[Understanding Pre-requisites Before design](Pre-requisites.md)* 5 | - *[Designing](Designing.md)* 6 | 7 | -------------------------------------------------------------------------------- /OOD/Amazon_Filtering/amazon_filtering_ood.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/OOD/Amazon_Filtering/amazon_filtering_ood.JPG -------------------------------------------------------------------------------- /OOD/MeetingRoom_Scheduler/Code/Meeting/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include_directories( 2 | ${PROJECT_SOURCE_DIR}/Meeting/inc 3 | ${PROJECT_SOURCE_DIR}/MeetingRoom/inc 4 | ${PROJECT_SOURCE_DIR}/MeetingScheduler/inc 5 | ${PROJECT_SOURCE_DIR}/Notification/inc 6 | ${PROJECT_SOURCE_DIR}/User/inc 7 | ${PROJECT_SOURCE_DIR}/common/inc 8 | ) 9 | 10 | ADD_LIBRARY(Meeting STATIC src/Meeting.cpp) -------------------------------------------------------------------------------- /OOD/MeetingRoom_Scheduler/Code/Meeting/inc/Meeting.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "common.h" 3 | 4 | class Meeting { 5 | float duration; 6 | int attendees; 7 | string subject; 8 | string agenda; 9 | public: 10 | Meeting(float d, int a, string s) :duration(d), attendees(a), subject(s) {} 11 | int GetAttendees(); 12 | string GetMeetingSubject(); 13 | }; 14 | -------------------------------------------------------------------------------- /OOD/MeetingRoom_Scheduler/Code/Meeting/src/Meeting.cpp: -------------------------------------------------------------------------------- 1 | #include "Meeting.h" 2 | 3 | int Meeting::GetAttendees() { return attendees; } 4 | 5 | string Meeting::GetMeetingSubject() { return subject; } 6 | 7 | -------------------------------------------------------------------------------- /OOD/MeetingRoom_Scheduler/Code/MeetingRoom/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include_directories( 2 | ${PROJECT_SOURCE_DIR}/Meeting/inc 3 | ${PROJECT_SOURCE_DIR}/MeetingRoom/inc 4 | ${PROJECT_SOURCE_DIR}/MeetingScheduler/inc 5 | ${PROJECT_SOURCE_DIR}/Notification/inc 6 | ${PROJECT_SOURCE_DIR}/User/inc 7 | ${PROJECT_SOURCE_DIR}/common/inc 8 | ) 9 | 10 | ADD_LIBRARY(MeetingRoom STATIC src/MeetingRoom.cpp) -------------------------------------------------------------------------------- /OOD/MeetingRoom_Scheduler/Code/MeetingRoom/inc/MeetingRoom.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class MeetingRoom { 4 | int capacity; 5 | float len, width; 6 | public: 7 | //Requirment-3: Default room capacity=10. 8 | MeetingRoom() :capacity(10), len(40), width(50) {} 9 | MeetingRoom(int c, float l, float w) :capacity(c), len(l), width(w) {} 10 | int GetRoomCapacity(); 11 | }; -------------------------------------------------------------------------------- /OOD/MeetingRoom_Scheduler/Code/MeetingRoom/src/MeetingRoom.cpp: -------------------------------------------------------------------------------- 1 | #include "MeetingRoom.h" 2 | 3 | int MeetingRoom::GetRoomCapacity() { return capacity; } -------------------------------------------------------------------------------- /OOD/MeetingRoom_Scheduler/Code/MeetingScheduler/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include_directories( 2 | ${PROJECT_SOURCE_DIR}/Meeting/inc 3 | ${PROJECT_SOURCE_DIR}/MeetingRoom/inc 4 | ${PROJECT_SOURCE_DIR}/MeetingScheduler/inc 5 | ${PROJECT_SOURCE_DIR}/Notification/inc 6 | ${PROJECT_SOURCE_DIR}/User/inc 7 | ${PROJECT_SOURCE_DIR}/common/inc 8 | ) 9 | 10 | ADD_LIBRARY(MeetingScheduler STATIC src/MeetingScheduler.cpp) -------------------------------------------------------------------------------- /OOD/MeetingRoom_Scheduler/Code/Notification/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include_directories( 2 | ${PROJECT_SOURCE_DIR}/Meeting/inc 3 | ${PROJECT_SOURCE_DIR}/MeetingRoom/inc 4 | ${PROJECT_SOURCE_DIR}/MeetingScheduler/inc 5 | ${PROJECT_SOURCE_DIR}/Notification/inc 6 | ${PROJECT_SOURCE_DIR}/User/inc 7 | ${PROJECT_SOURCE_DIR}/common/inc 8 | ) 9 | 10 | ADD_LIBRARY(Notification STATIC src/Notification.cpp) -------------------------------------------------------------------------------- /OOD/MeetingRoom_Scheduler/Code/Notification/inc/Notification.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "User.h" 3 | #include "common.h" 4 | class User; 5 | 6 | class Notification { 7 | public: 8 | Notification() {} 9 | bool SendNotification(vector& vecUsers, string& strMsg); 10 | }; 11 | 12 | class test { 13 | public: 14 | test(){} 15 | }; -------------------------------------------------------------------------------- /OOD/MeetingRoom_Scheduler/Code/Notification/src/Notification.cpp: -------------------------------------------------------------------------------- 1 | #include "Notification.h" 2 | 3 | bool Notification::SendNotification(vector& vecUsers, string& strMsg) { 4 | for (auto i : vecUsers) 5 | i.GetMeetingNotification(strMsg); 6 | return true; 7 | } -------------------------------------------------------------------------------- /OOD/MeetingRoom_Scheduler/Code/User/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include_directories( 2 | ${PROJECT_SOURCE_DIR}/Meeting/inc 3 | ${PROJECT_SOURCE_DIR}/MeetingRoom/inc 4 | ${PROJECT_SOURCE_DIR}/MeetingScheduler/inc 5 | ${PROJECT_SOURCE_DIR}/Notification/inc 6 | ${PROJECT_SOURCE_DIR}/User/inc 7 | ${PROJECT_SOURCE_DIR}/common/inc 8 | ) 9 | 10 | ADD_LIBRARY(User STATIC src/User.cpp) -------------------------------------------------------------------------------- /OOD/MeetingRoom_Scheduler/Code/common/inc/common.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | #include 4 | #include 5 | #include 6 | using namespace std; 7 | enum class UserType { 8 | organizer, 9 | attendee 10 | }; 11 | -------------------------------------------------------------------------------- /OOD/SpreadSheet/README.md: -------------------------------------------------------------------------------- 1 | **SpreadSheet** 2 | 3 | ### SpreadSheet 4 | - Apache openoffice 5 | ``` 6 | code: https://github.com/apache/openoffice/tree/trunk/main 7 | Architecture,docs: https://wiki.openoffice.org/wiki/Architecture 8 | ``` 9 | -------------------------------------------------------------------------------- /Operating_Systems/Linux/Access_Control/Access_Control_List_ACL/README.md: -------------------------------------------------------------------------------- 1 | ## ACL(Access control List) / User Specific Permissions / + 2 | -------------------------------------------------------------------------------- /Operating_Systems/Linux/Administration/Commands/chroot-jail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Operating_Systems/Linux/Administration/Commands/chroot-jail.png -------------------------------------------------------------------------------- /Operating_Systems/Linux/Administration/Remote_Command_Execution/README.md: -------------------------------------------------------------------------------- 1 | ## Remote commands 2 | - **1. Killing Remote process** 3 | ```c 4 | # ssh remotehost "kill -9 \$(ps -aux | grep a.out)" 5 | password: 6 | ``` 7 | -------------------------------------------------------------------------------- /Operating_Systems/Linux/FileSystem/images/README.md: -------------------------------------------------------------------------------- 1 | test 2 | -------------------------------------------------------------------------------- /Operating_Systems/Linux/FileSystem/images/filesystem-consistency-check-fsck.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Operating_Systems/Linux/FileSystem/images/filesystem-consistency-check-fsck.jpg -------------------------------------------------------------------------------- /Operating_Systems/Linux/FileSystem/images/filesystem.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Operating_Systems/Linux/FileSystem/images/filesystem.PNG -------------------------------------------------------------------------------- /Operating_Systems/Linux/FileSystem/images/inode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Operating_Systems/Linux/FileSystem/images/inode.png -------------------------------------------------------------------------------- /Operating_Systems/Linux/FileSystem/images/virtual_file_system.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Operating_Systems/Linux/FileSystem/images/virtual_file_system.PNG -------------------------------------------------------------------------------- /Operating_Systems/Linux/Kernel/Interrupts/interrupt.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Operating_Systems/Linux/Kernel/Interrupts/interrupt.jpg -------------------------------------------------------------------------------- /Operating_Systems/Linux/Kernel/Interrupts/precise_imprecise_interrupts.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Operating_Systems/Linux/Kernel/Interrupts/precise_imprecise_interrupts.JPG -------------------------------------------------------------------------------- /Operating_Systems/Linux/Kernel/Shell/shell.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Operating_Systems/Linux/Kernel/Shell/shell.PNG -------------------------------------------------------------------------------- /Operating_Systems/Linux/Kernel/System_Calls/APIs/README.md: -------------------------------------------------------------------------------- 1 | ## System Call APIs 2 | - [dup(), dup2(), dup3()](dup) 3 | -------------------------------------------------------------------------------- /Operating_Systems/Linux/Kernel/System_Calls/APIs/fopen/README.md: -------------------------------------------------------------------------------- 1 | ## fopen 2 | ```c 3 | FILE *fopen(const char *filename, const char *mode) 4 | 5 | Returns: 6 | FILE pointer. Otherwise, NULL is returned and the global variable errno is set to indicate the error. 7 | ``` 8 | - [What is FILE pointer and what Information it has?](Reading_from_file) 9 | -------------------------------------------------------------------------------- /Operating_Systems/Linux/Kernel/System_Calls/How_to_reduce_time_spent_in_sys_call.md: -------------------------------------------------------------------------------- 1 | ## How to reduce time spent in system call 2 | - Keep socket and network information in application code rather than used by kernel. 3 | -------------------------------------------------------------------------------- /Operating_Systems/Linux/Kernel/System_Calls/README.md: -------------------------------------------------------------------------------- 1 | ## System Call 2 | - _[System call vs Normal call](SystemCall_vs_NormalCall.md)_ 3 | - _[How to reduce time spent in system call](How_to_reduce_time_spent_in_sys_call.md)_ 4 | - _[How_System_Call_Works? ie control goes from user to kernel space](How_System_Call_Works)_ 5 | -------------------------------------------------------------------------------- /Operating_Systems/Linux/Kernel/System_Calls/SystemCall_vs_NormalCall.md: -------------------------------------------------------------------------------- 1 | ## System Call vs Normal Call 2 | 3 | ||System Call|Normal Call| 4 | |---|---|---| 5 | |What|Call into kernel, done using calling interrupt.|fun(), which does not go to kernel for processing| 6 | |Speed|Bcoz of mode switching from user to kernel|comparably fast 7 | |How|calls [trap instruction](/Motherboard/CPU/Memory/Virtual_Physical_Memory/Terms.md)|calls call instruction| 8 | -------------------------------------------------------------------------------- /Operating_Systems/Linux/Partitions_Mounting/lvm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Operating_Systems/Linux/Partitions_Mounting/lvm.png -------------------------------------------------------------------------------- /Operating_Systems/Linux/Protection_Rings/protection_rings-area.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Operating_Systems/Linux/Protection_Rings/protection_rings-area.JPG -------------------------------------------------------------------------------- /Operating_Systems/Linux/Resource_Control/Kernel_Namespaces/ipc/README.md: -------------------------------------------------------------------------------- 1 | ## Interprocess Communication / ipc 2 | - **What?** This isolates interprocess communication (IPC) resources. 3 | - System V IPC objects and POSIX message queues 4 | - **Use case?** 5 | - separate the shared memory (SHM) between two processes to avoid misusage 6 | - each process will be able to use the same identifiers for a shared memory segment and produce two distinct regions. 7 | -------------------------------------------------------------------------------- /Operating_Systems/Linux/Resource_Control/Kernel_Namespaces/uts/README.md: -------------------------------------------------------------------------------- 1 | ## UNIX Time-sharing System / uts 2 | - **What?** Allows us to unshare the domain and hostname from the current host system. 3 | ```c 4 | > sudo unshare -u 5 | # hostname 6 | nb 7 | # hostname new-hostname 8 | # hostname 9 | new-hostname 10 | 11 | //Look at the system level nothing has changed, hooray: 12 | > hostname 13 | nb 14 | ``` 15 | -------------------------------------------------------------------------------- /Operating_Systems/Linux/Resource_Control/README.md: -------------------------------------------------------------------------------- 1 | ## Resource Control / Resource Management 2 | - **What?** Resource(CPU, IO, Network, Memory(RAM, Hard disk)) given in controlled manner to processes. 3 | - **Why?** Increase overall system efficiency of system. 4 | - **How?** On RHEL7 resource management settings are moved from the process level to the application level. 5 | 6 | ### Method of Resource Control 7 | - *1.* Kernel Namespaces 8 | -------------------------------------------------------------------------------- /Operating_Systems/Linux/Troubleshooting/Network/Terminating_Network_Process.md: -------------------------------------------------------------------------------- 1 | ## Terminating a network process 2 | - *1.* Get pid process running on remote port using [netstat](/Operating_Systems/Linux/Administration/Commands/netstat) 3 | - *2.* [Kill the remote pid using ssh](/Operating_Systems/Linux/Administration/Remote_Command_Execution) 4 | -------------------------------------------------------------------------------- /Operating_Systems/README.md: -------------------------------------------------------------------------------- 1 | - **[Operating System Design Goals](Design_Goals.md)** 2 | - **[Types of Operating Systems](Types_of_OS)** 3 | - Comparison 4 | - [Linux vs Windows](Linux_vs_Windows.md) 5 | -------------------------------------------------------------------------------- /Operating_Systems/Virtualization/How_Virtualization_Works/Type1_Hypervisor/How_Type1_Hypervisor_works.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Operating_Systems/Virtualization/How_Virtualization_Works/Type1_Hypervisor/How_Type1_Hypervisor_works.jpg -------------------------------------------------------------------------------- /Operating_Systems/Virtualization/SRIOV/sriovarchitecture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Operating_Systems/Virtualization/SRIOV/sriovarchitecture.png -------------------------------------------------------------------------------- /Operating_Systems/Virtualization/Type1_Type2_Hypervisors.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Operating_Systems/Virtualization/Type1_Type2_Hypervisors.jpg -------------------------------------------------------------------------------- /Operating_Systems/Windows/Active_Directory/structure-of-ad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Operating_Systems/Windows/Active_Directory/structure-of-ad.png -------------------------------------------------------------------------------- /Operating_Systems/Windows/Editors/VisualStudioCode/Access_Remote_Machine/README.md: -------------------------------------------------------------------------------- 1 | ## [Remote Machine development using ssh](https://code.visualstudio.com/docs/remote/ssh) 2 | - *1.* Install an OpenSSH compatible SSH client if one is not already present. 3 | - *2.* Install Visual Studio Code or Visual Studio Code Insiders. 4 | - *3.* Install the Remote Development extension pack. 5 | SSH host setup 6 | -------------------------------------------------------------------------------- /Operating_Systems/Windows/Editors/VisualStudioCode/README.md: -------------------------------------------------------------------------------- 1 | ## Visual Studio Code 2 | - **What?** This is code editor 3 | - **[VS Code vs Visual Studio?](VSCode_vs_VisualStudio)** 4 | - [Remote machine development using ssh](Access_Remote_Machine) 5 | -------------------------------------------------------------------------------- /Operating_Systems/Windows/IDE/Microsoft_Visual_Studio/File_Types/README.md: -------------------------------------------------------------------------------- 1 | ## File Types 2 | 3 | - [vcxproj File](vcxproj): XML file containing compiler/linker paths & command-line options. same as (Makefile in Unix). This is for 1 project. 4 | - [.sln](): Solution file. This contains multiple projects. 5 | -------------------------------------------------------------------------------- /Projects/C++/Read_ActiveDirectory_EventLogs/README.adoc: -------------------------------------------------------------------------------- 1 | :toc: 2 | :toclevels: 5 3 | 4 | == Objective 5 | * Read event logs from channel="Security" any 1 of following paths: 6 | ```c 7 | "Event/System" 8 | "Event/System[EventId=4624 or EventId=4634]" //4624=logon, 4634=logout 9 | ``` 10 | -------------------------------------------------------------------------------- /Projects/C++/Read_File_Custom_Dump_XMLTxtJsonConsole/Display/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include_directories( 2 | ${PROJECT_SOURCE_DIR}/Parser/inc 3 | ${PROJECT_SOURCE_DIR}/Display/inc 4 | ${PROJECT_SOURCE_DIR}/common/inc 5 | ) 6 | ADD_LIBRARY(Display STATIC src/Display.cpp) 7 | -------------------------------------------------------------------------------- /Projects/C++/Read_File_Custom_Dump_XMLTxtJsonConsole/Parser/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include_directories( 2 | ${PROJECT_SOURCE_DIR}/Parser/inc 3 | ${PROJECT_SOURCE_DIR}/Display/inc 4 | ${PROJECT_SOURCE_DIR}/common/inc 5 | ) 6 | ADD_LIBRARY(Parser STATIC src/Parser.cpp) 7 | -------------------------------------------------------------------------------- /Projects/Cross_Platform/Read_csv_files_Find_Total_Spending/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(SUM VERSION 1.0) 4 | 5 | add_executable(SPENDING main.cpp) 6 | 7 | configure_file(main.h main.h) 8 | 9 | if(NOT WIN32) 10 | add_definitions(-DLINUX) 11 | endif() 12 | 13 | target_include_directories(SPENDING PUBLIC 14 | "${PROJECT_BINARY_DIR}") 15 | -------------------------------------------------------------------------------- /Projects/Cross_Platform/Read_csv_files_Find_Total_Spending/Table02.csv: -------------------------------------------------------------------------------- 1 | Age_Range, Spending 2 | 3 | Resident_Age_0,100 4 | 5 | Resident_Age_1,200 6 | 7 | Resident_Age_2,300 8 | 9 | Resident_Age_3,400 10 | -------------------------------------------------------------------------------- /Projects/Cross_Platform/Read_csv_files_Find_Total_Spending/Table03.csv: -------------------------------------------------------------------------------- 1 | City, L_Weight, W_Weight 2 | Mumbai,1.8,2 3 | 4 | Delhi,1.7,1 5 | 6 | Dhaka,1.2,1.5 7 | 8 | Bejing,0.9,2.5 9 | 10 | Kolambo,0.8,2 11 | 12 | California,1.2,0.8 13 | 14 | New York,2.5,4 15 | 16 | London,2.4,1.9 17 | -------------------------------------------------------------------------------- /Projects/Machine_Learning/Image_Classification_into_10_categories_0_through_9/README.adoc: -------------------------------------------------------------------------------- 1 | :toc: 2 | :toclevels: 5 3 | 4 | == link:https://amitkumar50.github.io/Machine%20Learning/Code/Image%20Classification.html[Documentation on github.io] 5 | == link:Projects/Machine_Learning/Image_Classification_into_10_categories_0_through_9/image_classification.py[Code] 6 | -------------------------------------------------------------------------------- /Projects/Python/README.md: -------------------------------------------------------------------------------- 1 | ### Python 2 | - [1. Parser for /var/log/samba/log.*](https://github.com/RedHatInsights/insights-core/pull/2362) 3 | - [2. Parser for /etc/dirsrv/slapd-<>/dse.ldif](https://github.com/RedHatInsights/insights-core/pull/2362) 4 | - [3. Read Etherium blockchain data using Etherscan APIs](Etherscan_APIs) 5 | -------------------------------------------------------------------------------- /Projects/React-Native/StickerSmash/app/_layout.tsx: -------------------------------------------------------------------------------- 1 | import { Stack } from "expo-router"; 2 | 3 | export default function RootLayout() { 4 | return ; 5 | } 6 | -------------------------------------------------------------------------------- /Projects/React-Native/StickerSmash/assets/a: -------------------------------------------------------------------------------- 1 | a 2 | -------------------------------------------------------------------------------- /Projects/React-Native/StickerSmash/assets/fonts/SpaceMono-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Projects/React-Native/StickerSmash/assets/fonts/SpaceMono-Regular.ttf -------------------------------------------------------------------------------- /Projects/React-Native/StickerSmash/assets/images/adaptive-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Projects/React-Native/StickerSmash/assets/images/adaptive-icon.png -------------------------------------------------------------------------------- /Projects/React-Native/StickerSmash/assets/images/background-image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Projects/React-Native/StickerSmash/assets/images/background-image.png -------------------------------------------------------------------------------- /Projects/React-Native/StickerSmash/assets/images/emoji1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Projects/React-Native/StickerSmash/assets/images/emoji1.png -------------------------------------------------------------------------------- /Projects/React-Native/StickerSmash/assets/images/emoji2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Projects/React-Native/StickerSmash/assets/images/emoji2.png -------------------------------------------------------------------------------- /Projects/React-Native/StickerSmash/assets/images/emoji3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Projects/React-Native/StickerSmash/assets/images/emoji3.png -------------------------------------------------------------------------------- /Projects/React-Native/StickerSmash/assets/images/emoji4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Projects/React-Native/StickerSmash/assets/images/emoji4.png -------------------------------------------------------------------------------- /Projects/React-Native/StickerSmash/assets/images/emoji5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Projects/React-Native/StickerSmash/assets/images/emoji5.png -------------------------------------------------------------------------------- /Projects/React-Native/StickerSmash/assets/images/emoji6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Projects/React-Native/StickerSmash/assets/images/emoji6.png -------------------------------------------------------------------------------- /Projects/React-Native/StickerSmash/assets/images/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Projects/React-Native/StickerSmash/assets/images/favicon.png -------------------------------------------------------------------------------- /Projects/React-Native/StickerSmash/assets/images/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Projects/React-Native/StickerSmash/assets/images/icon.png -------------------------------------------------------------------------------- /Projects/React-Native/StickerSmash/assets/images/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Projects/React-Native/StickerSmash/assets/images/splash.png -------------------------------------------------------------------------------- /Projects/React-Native/StickerSmash/eas.json: -------------------------------------------------------------------------------- 1 | { 2 | "build": { 3 | "preview": { 4 | "android": { 5 | "buildType": "apk" 6 | }, 7 | "distribution": "internal" 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Projects/React-Native/StickerSmash/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "expo/tsconfig.base", 3 | "compilerOptions": { 4 | "strict": true, 5 | "paths": { 6 | "@/*": [ 7 | "./*" 8 | ] 9 | } 10 | }, 11 | "include": [ 12 | "**/*.ts", 13 | "**/*.tsx", 14 | ".expo/types/**/*.ts", 15 | "expo-env.d.ts" 16 | ] 17 | } 18 | -------------------------------------------------------------------------------- /Projects/React/TicTacToeGame/README.adoc: -------------------------------------------------------------------------------- 1 | :toc: 2 | :toclevels: 4 3 | 4 | == link:https://react.dev/learn/tutorial-tic-tac-toe[How to Run?] 5 | ```c 6 | $ git clone .. 7 | $ npm start 8 | http://localhost:3000 9 | ``` 10 | 11 | === Understanding Code 12 | * Proper comments are provided in App.js 13 | 14 | image::without_state1.png?raw=true[Tic Tac Toe] 15 | -------------------------------------------------------------------------------- /Projects/React/TicTacToeGame/public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Document 7 | 8 | 9 |
10 | 11 | 12 | -------------------------------------------------------------------------------- /Projects/React/TicTacToeGame/src/index.js: -------------------------------------------------------------------------------- 1 | import React, { StrictMode } from "react"; 2 | import { createRoot } from "react-dom/client"; 3 | import "./styles.css"; 4 | 5 | import App from "./App"; 6 | 7 | const root = createRoot(document.getElementById("root")); 8 | root.render( 9 | 10 | 11 | 12 | ); 13 | -------------------------------------------------------------------------------- /Projects/React/TicTacToeGame/without_state1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Projects/React/TicTacToeGame/without_state1.png -------------------------------------------------------------------------------- /Projects/TLS_SSL/Mutual_TLS_client-sending-its-certs/SSL-CLIENT-SENDING-CLIENT-CERTIFICATE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Projects/TLS_SSL/Mutual_TLS_client-sending-its-certs/SSL-CLIENT-SENDING-CLIENT-CERTIFICATE -------------------------------------------------------------------------------- /Projects/TLS_SSL/Mutual_TLS_client-sending-its-certs/SSL-SERVER: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Projects/TLS_SSL/Mutual_TLS_client-sending-its-certs/SSL-SERVER -------------------------------------------------------------------------------- /Projects/TLS_SSL/Normal_TLS_client-notsending-itsCerts/SSL-CLIENT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Projects/TLS_SSL/Normal_TLS_client-notsending-itsCerts/SSL-CLIENT -------------------------------------------------------------------------------- /Projects/TLS_SSL/keyAndCerts/ssl-server-certandkey.srl: -------------------------------------------------------------------------------- 1 | A68B3D612088A9FE 2 | -------------------------------------------------------------------------------- /Projects/golang/README.adoc: -------------------------------------------------------------------------------- 1 | :toc: 2 | :toclevels: 6 3 | 4 | == Daemon 5 | * main should relaunch itself in background once main exits 6 | * daemon process should read cpu, gpu usage and log the same in 7 | ```c 8 | linux = /tmp/gpu_usage.txt and /tmp/cpu_usage.txt 9 | windows = c:/temp/gpu_usage.txt and c:/temp/cpu_usage.txt 10 | ``` 11 | * This should work seemlessly on cross platform on windows and linux. 12 | -------------------------------------------------------------------------------- /Projects/golang/build.sh: -------------------------------------------------------------------------------- 1 | GOOS=darwin GOARCH=arm64 go build -trimpath -ldflags '-w -s' -o bin/mac_binary cli/*.go 2 | GOOS=linux GOARCH=amd64 go build -trimpath -ldflags '-w -s' -o bin/linux_binary cli/*.go 3 | GOOS=windows GOARCH=amd64 go build -trimpath -ldflags '-w -s' -o bin/windows.exe cli/*.go 4 | -------------------------------------------------------------------------------- /Projects/golang/go.mod: -------------------------------------------------------------------------------- 1 | module test 2 | 3 | go 1.22.0 4 | 5 | require ( 6 | github.com/auth0/go-jwt-middleware/v2 v2.2.1 7 | github.com/fatih/color v1.16.0 8 | github.com/google/uuid v1.6.0 9 | github.com/hashicorp/go-retryablehttp v0.7.5 10 | github.com/shirou/gopsutil/v4 v4.24.6 11 | golang.org/x/oauth2 v0.19.0 12 | ) 13 | 14 | require ( 15 | github.com/go-ole/go-ole v1.2.6 // indirect 16 | ) 17 | -------------------------------------------------------------------------------- /System-Design/Concepts/AWS/Analytics/Athena/README.md: -------------------------------------------------------------------------------- 1 | **Athena** 2 | - [Data formats](#df) 3 | 4 | ### Athena 5 | - This is an SQL query service, which can get data in S3. Just define the schema, and start querying. 6 | - Athena is serverless, so there is no infrastructure to manage, and you pay only for the queries that you run. 7 | 8 | 9 | #### Data formats 10 | This is compatible with CSV,json,orc,avro,parquet. 11 | -------------------------------------------------------------------------------- /System-Design/Concepts/AWS/Analytics/CodePipeline/README.md: -------------------------------------------------------------------------------- 1 | **CodePipeline** 2 | 3 | ### CodePipeline 4 | This is continuous delivery service that helps to automate release pipelines for fast and reliable application and infrastructure updates. 5 | -------------------------------------------------------------------------------- /System-Design/Concepts/AWS/Application_Integration/SWF/README.md: -------------------------------------------------------------------------------- 1 | **SWF** 2 | 3 | ### SWF / Simple Workflow Service 4 | - Coordinate work between distributed application components. Application examples 5 | - Media processing 6 | - web application back-ends 7 | - business process workflows 8 | - Analytics pipelines 9 | -------------------------------------------------------------------------------- /System-Design/Concepts/AWS/Artificial_Intelligence/Rekognition/README.md: -------------------------------------------------------------------------------- 1 | **Rekognition** 2 | 3 | 4 | ### Rekognition 5 | Image recognition service that can: 6 | - Detects objects, scenes, and faces(Recognizes celebrities), identifies inappropriate content in images. 7 | - search and compare faces 8 | - Extracts text 9 | -------------------------------------------------------------------------------- /System-Design/Concepts/AWS/Business_Applications/AWS_Connect/README.md: -------------------------------------------------------------------------------- 1 | **AWS Connect** 2 | 3 | ### AWS Connect 4 | Automated Contact center(chatbot, voice support). 5 | -------------------------------------------------------------------------------- /System-Design/Concepts/AWS/Compute/EMR/README.md: -------------------------------------------------------------------------------- 1 | EMR / Elastic Map Reduce 2 | 3 | ### EMR 4 | - Service that helps process vast amounts of data(Big Data). 5 | - Hadoop runs on EC2 and S3. 6 | 7 | ### How EMR Works 8 | ```c 9 | Step-1: Configure, create cluster 10 | Step-2: Upload Big data to S3 11 | Step-3: Hadoop will process data from S3. 12 | ``` 13 | -------------------------------------------------------------------------------- /System-Design/Concepts/AWS/Compute/Light_Sail/light-sail1.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Concepts/AWS/Compute/Light_Sail/light-sail1.PNG -------------------------------------------------------------------------------- /System-Design/Concepts/AWS/Compute/Light_Sail/light-sail2.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Concepts/AWS/Compute/Light_Sail/light-sail2.PNG -------------------------------------------------------------------------------- /System-Design/Concepts/AWS/Compute/Outpost/README.md: -------------------------------------------------------------------------------- 1 | **AWS Outpost** 2 | 3 | ### AWS Outpost 4 | This is used for building AWS infrastructure and services inside customer's premises. 5 | -------------------------------------------------------------------------------- /System-Design/Concepts/AWS/Configuration_Management/Quick_Start/README.md: -------------------------------------------------------------------------------- 1 | **Quick Start** 2 | 3 | ### Quick Start 4 | - AWS service to deploy a deployment with very few steps. QS has accelerators which reduces hundreds of manual procedures into just a few steps. 5 | - QS also includes: 6 | - _1._ CloudFormation templates that automate the deployment 7 | - _2._ A guide that discusses the architecture and provides step-by-step deployment instructions 8 | -------------------------------------------------------------------------------- /System-Design/Concepts/AWS/Container/ECS/README.md: -------------------------------------------------------------------------------- 1 | **ECS** 2 | 3 | ## ECS(Elastic Container Service) 4 | - [Container](/System-Design/Concepts/All_About_Containers/Container.md) management service on AWS. We can run containers on AWS using it. 5 | - Amazon ECS supports Docker containers. 6 | 7 | 8 | -------------------------------------------------------------------------------- /System-Design/Concepts/AWS/Container/EKS/README.md: -------------------------------------------------------------------------------- 1 | **EKS** 2 | 3 | ## EKS / Elastic Kubernetes Service 4 | - This is used to run [Kubernetes](/System-Design/Concepts/All_About_Containers/Kubernets/) on AWS. 5 | -------------------------------------------------------------------------------- /System-Design/Concepts/AWS/Container/Fargate/README.md: -------------------------------------------------------------------------------- 1 | **Fargate** 2 | 3 | ### AWS Fargate 4 | - This is [serverless](/System-Design/Concepts/AWS/) compute engine for containers. It works with both Amazon ECS and Amazon EKS. 5 | - Since its serverless,When using AWS Fargate, you do not need to provision or manage servers. 6 | -------------------------------------------------------------------------------- /System-Design/Concepts/AWS/Developer_Tools/CDK/README.md: -------------------------------------------------------------------------------- 1 | **CDK / Cloud Development Kit** 2 | 3 | ### CDK 4 | - Open source SDK to define cloud application resources using familiar programming languages. 5 | - Infrastructure can be deployed using AWS CloudFormation. 6 | -------------------------------------------------------------------------------- /System-Design/Concepts/AWS/Developer_Tools/CodeStar/README.md: -------------------------------------------------------------------------------- 1 | **CodeStar** 2 | 3 | ### CodeStar 4 | - This helps to: 5 | - quickly develop 6 | - build 7 | - deploy applications on AWS. 8 | - This helps to manage software development activities in one place. 9 | - We can set up your entire continuous delivery toolchain in minutes, allowing you to start releasing code faster. 10 | -------------------------------------------------------------------------------- /System-Design/Concepts/AWS/Internet_of_Things/Core/README.md: -------------------------------------------------------------------------------- 1 | **IoT Core** 2 | 3 | ### IoT Core 4 | - This is managed cloud service that lets connected devices easily and securely interact with cloud applications and other devices. 5 | - Supports 6 | - Billions of devices 7 | - Trillions of messages 8 | - Process and routes those messages to AWS endpoints and to other devices reliably and securely. 9 | -------------------------------------------------------------------------------- /System-Design/Concepts/AWS/Machine_Learning/SageMaker/README.md: -------------------------------------------------------------------------------- 1 | SageMaker 2 | 3 | SageMaker 4 | -------------------------------------------------------------------------------- /System-Design/Concepts/AWS/Management_Governance/CloudWatch/README.md: -------------------------------------------------------------------------------- 1 | **Cloudwatch = Grafanna** 2 | 3 | 4 | ## CloudWatch 5 | - Send alarms(sending email notifications, when threshold exceeds) for many things: 6 | - CPU, n/w usage, ec2 usage etc 7 | - Metrics as prometheus 8 | - Logs 9 | 10 | 11 | -------------------------------------------------------------------------------- /System-Design/Concepts/AWS/Management_Governance/CloudWatch/cloudwatch.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Concepts/AWS/Management_Governance/CloudWatch/cloudwatch.JPG -------------------------------------------------------------------------------- /System-Design/Concepts/AWS/Management_Governance/Config/README.md: -------------------------------------------------------------------------------- 1 | **AWS Config** 2 | 3 | ### AWS Config 4 | Provides information about the resources(on AWS account): 5 | - configuration history 6 | - configuration change notifications(configurations and their relationships have changed over time) 7 | -------------------------------------------------------------------------------- /System-Design/Concepts/AWS/Management_Governance/Kinesis/README.md: -------------------------------------------------------------------------------- 1 | **Kinesis** 2 | 3 | ### Kinesis 4 | Collect, process, and analyze real-time, streaming data. 5 | ```c 6 | images------> 7 | app logs --> |---------| --for Analytics -> |Data Analytics| 8 | db logs--> | Kinesis | --for batch processing -> |S3 bucket| 9 | |---------| 10 | videos ----> 11 | IoT data --> 12 | ``` 13 | -------------------------------------------------------------------------------- /System-Design/Concepts/AWS/Management_Governance/README.md: -------------------------------------------------------------------------------- 1 | **Health Dashboard** 2 | 3 | ### Health Dashboard 4 | This dashboard provides alerts, remediation steps about events that may impact AWS resources. 5 | -------------------------------------------------------------------------------- /System-Design/Concepts/AWS/Management_Governance/System_Manager_SSM/README.md: -------------------------------------------------------------------------------- 1 | **System Manager** 2 | 3 | ### SSM / System Manager 4 | Gain Operational Insight(View operational data) and Take Action on AWS Resources. 5 | - _1. Group your resources & save into resource groups._ 6 | - _2. View insights:_ See relevant operational data and dashboards about your grouped resources 7 | - _3. Take action:_ Mitigate issues by performing operations directly on groups 8 | -------------------------------------------------------------------------------- /System-Design/Concepts/AWS/Management_Governance/Trusted_Advisor/trusted-advisor.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Concepts/AWS/Management_Governance/Trusted_Advisor/trusted-advisor.JPG -------------------------------------------------------------------------------- /System-Design/Concepts/AWS/Migration_and_Transfer/DataSync/README.md: -------------------------------------------------------------------------------- 1 | **DataSync** 2 | 3 | ### DataSync 4 | Service that automates, accelerates moving data between on-prem and AWS datacenters. 5 | -------------------------------------------------------------------------------- /System-Design/Concepts/AWS/Migration_and_Transfer/Snow_Family/snowball.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Concepts/AWS/Migration_and_Transfer/Snow_Family/snowball.png -------------------------------------------------------------------------------- /System-Design/Concepts/AWS/Network/Managed_BlockChain/README.md: -------------------------------------------------------------------------------- 1 | **AWS Managed Blockchain** 2 | 3 | 4 | ### AWS Managed Blockchain 5 | - With this service you can use to create and manage blockchain networks with open-source frameworks. 6 | - Blockchain is a distributed ledger system that lets multiple parties run transactions and share data without a central authority. 7 | 8 | -------------------------------------------------------------------------------- /System-Design/Concepts/AWS/Security/Cloud_HSM/README.md: -------------------------------------------------------------------------------- 1 | **HSM / Hardware Security Module** 2 | 3 | ### HSM 4 | Hardware based encryption key generator in cloud. 5 | - HSM enables application to integrate with: PKCS#11, Java Cryptography Extensions (JCE), and Microsoft CryptoNG (CNG) libraries. 6 | - **Compliant:** FIPS 140-2 Level 3. 7 | -------------------------------------------------------------------------------- /System-Design/Concepts/AWS/Security/Detective/README.md: -------------------------------------------------------------------------------- 1 | **Detective** 2 | 3 | 4 | ### Detective 5 | Analyzes, investigates and identify the root cause: 6 | - Security issues or 7 | - Suspicious activities. 8 | - **How it works?** 9 | - It automatically collects logs from your AWS resources and uses AL, statistical analysis, and graph theory to perform security investigations. 10 | -------------------------------------------------------------------------------- /System-Design/Concepts/AWS/Security/GuardDuty/README.md: -------------------------------------------------------------------------------- 1 | **GuardDuty** 2 | 3 | 4 | ### GuardDuty 5 | - Provides threat detection for your AWS infrastructure and resources 6 | - How it detects? 7 | - continuously monitoring the network activity. 8 | - Monitoring VPC Flow Logs and DNS logs. 9 | - If GuardDuty detects any threats it will provide detailed findings about them from the AWS Management Console 10 | -------------------------------------------------------------------------------- /System-Design/Concepts/AWS/Security/KMS/README.md: -------------------------------------------------------------------------------- 1 | **Key Management Service / KMS** 2 | 3 | ## KMS 4 | - Used to store cryptographic keys which are used for performing cryptographic operations. 5 | - Data can be secured: 6 | - _1._ When it is stored: encryption at rest 7 | - _2._ When it is transmitted: encryption in transit. 8 | - keys never leave AWS KMS. 9 | -------------------------------------------------------------------------------- /System-Design/Concepts/AWS/Security/README.md: -------------------------------------------------------------------------------- 1 | ||What| 2 | |---|---| 3 | |WAF|Firewall at CDN| 4 | |Sheild|Protect against DDoS(Distributed DOS)| 5 | -------------------------------------------------------------------------------- /System-Design/Concepts/AWS/Storage/Block/EBS/ebs_snapshots.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Concepts/AWS/Storage/Block/EBS/ebs_snapshots.JPG -------------------------------------------------------------------------------- /System-Design/Concepts/AWS/Terms/ACL_security_group.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Concepts/AWS/Terms/ACL_security_group.JPG -------------------------------------------------------------------------------- /System-Design/Concepts/AWS/Terms/north-america-political-map.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Concepts/AWS/Terms/north-america-political-map.jpg -------------------------------------------------------------------------------- /System-Design/Concepts/AWS/Terms/regions_and_az.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Concepts/AWS/Terms/regions_and_az.JPG -------------------------------------------------------------------------------- /System-Design/Concepts/AWS/Terms/transit_gateway.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Concepts/AWS/Terms/transit_gateway.png -------------------------------------------------------------------------------- /System-Design/Concepts/Automation/Jenkins/build_test_deploy.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Concepts/Automation/Jenkins/build_test_deploy.PNG -------------------------------------------------------------------------------- /System-Design/Concepts/Automation/Jenkins/pull_from_git_build.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Concepts/Automation/Jenkins/pull_from_git_build.PNG -------------------------------------------------------------------------------- /System-Design/Concepts/Bottlenecks_of_Distributed_Systems/Admission_Control/README.md: -------------------------------------------------------------------------------- 1 | ## Admission Control 2 | - Mechanism is needed to authenticate a node before allowing admission into distributed system. (using: kerberos) 3 | -------------------------------------------------------------------------------- /System-Design/Concepts/Bottlenecks_of_Distributed_Systems/Consistency_Problem/README.md: -------------------------------------------------------------------------------- 1 | ## Consistency/Accuracy Problem 2 | - With multiple copies of data maintained between (master & replicas) OR (web server and cache). Every read receives the most recent write or not? 3 | 4 | -------------------------------------------------------------------------------- /System-Design/Concepts/Bottlenecks_of_Distributed_Systems/Developer_idealistic_mindset/README.md: -------------------------------------------------------------------------------- 1 | ## Developer designing Distributed system with following mindset 2 | - The network is reliable 3 | - The network is secure 4 | - The network is homogeneous 5 | - The topology does not change 6 | - Latency is zero 7 | - Bandwidth is infinite 8 | - Transport cost is zero 9 | - There is one administrator 10 | -------------------------------------------------------------------------------- /System-Design/Concepts/CI-CD/phases-of-cd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Concepts/CI-CD/phases-of-cd.png -------------------------------------------------------------------------------- /System-Design/Concepts/Cache/images/t: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /System-Design/Concepts/Cache/images/web-browser-cache.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Concepts/Cache/images/web-browser-cache.png -------------------------------------------------------------------------------- /System-Design/Concepts/Cache/images/web-proxy-cache.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Concepts/Cache/images/web-proxy-cache.png -------------------------------------------------------------------------------- /System-Design/Concepts/Containers/Kubernets/images/kubernets_architecture4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Concepts/Containers/Kubernets/images/kubernets_architecture4.png -------------------------------------------------------------------------------- /System-Design/Concepts/Containers/README.adoc: -------------------------------------------------------------------------------- 1 | :toc: 2 | :toclevels: 6 3 | 4 | == link:https://code-with-amitk.github.io/Networking/Containers/index.html[Containers, Container Architecture, Container vs VM] 5 | -------------------------------------------------------------------------------- /System-Design/Concepts/Containers/TraditionalOS_vs_Containers.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Concepts/Containers/TraditionalOS_vs_Containers.jpg -------------------------------------------------------------------------------- /System-Design/Concepts/Containers/docker_image_to_container.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Concepts/Containers/docker_image_to_container.PNG -------------------------------------------------------------------------------- /System-Design/Concepts/Containers/images/container.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Concepts/Containers/images/container.png -------------------------------------------------------------------------------- /System-Design/Concepts/Containers/kubernets_pod_worker_node.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Concepts/Containers/kubernets_pod_worker_node.png -------------------------------------------------------------------------------- /System-Design/Concepts/Databases/DataWareHouse/README.md: -------------------------------------------------------------------------------- 1 | **Datawarehouse** 2 | 3 | ### Datawarehouse 4 | - **Usecase:** For analysis of Historical data 5 | -------------------------------------------------------------------------------- /System-Design/Concepts/Databases/Database_Scaling/1.Replication/master_slave.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Concepts/Databases/Database_Scaling/1.Replication/master_slave.PNG -------------------------------------------------------------------------------- /System-Design/Concepts/Databases/Database_Scaling/Sharding/Partitioning_by_hash_of_keys.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Concepts/Databases/Database_Scaling/Sharding/Partitioning_by_hash_of_keys.PNG -------------------------------------------------------------------------------- /System-Design/Concepts/Databases/Database_Scaling/Sharding/Partitioning_by_term.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Concepts/Databases/Database_Scaling/Sharding/Partitioning_by_term.PNG -------------------------------------------------------------------------------- /System-Design/Concepts/Databases/Database_Scaling/Sharding/rebalancing_fixed_no_of_partitions.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Concepts/Databases/Database_Scaling/Sharding/rebalancing_fixed_no_of_partitions.PNG -------------------------------------------------------------------------------- /System-Design/Concepts/Databases/Database_Scaling/Sharding/request_routing.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Concepts/Databases/Database_Scaling/Sharding/request_routing.PNG -------------------------------------------------------------------------------- /System-Design/Concepts/Databases/Database_Scaling/Sharding/zookeeper.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Concepts/Databases/Database_Scaling/Sharding/zookeeper.PNG -------------------------------------------------------------------------------- /System-Design/Concepts/Databases/Migrating_DB/README.md: -------------------------------------------------------------------------------- 1 | **Migrating Databases** 2 | 3 | ### Migrating 4 | if you want to migrate database from 1 DB to other. 5 | -------------------------------------------------------------------------------- /System-Design/Concepts/Databases/NOSQL/AWS_DynamoDB/dynamodb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Concepts/Databases/NOSQL/AWS_DynamoDB/dynamodb.png -------------------------------------------------------------------------------- /System-Design/Concepts/Databases/NOSQL/Cassandra/README.md: -------------------------------------------------------------------------------- 1 | ## Cassandra 2 | -------------------------------------------------------------------------------- /System-Design/Concepts/Databases/NOSQL/Graph_DB/AWS_Neptune/README.md: -------------------------------------------------------------------------------- 1 | **AWS Neptune** 2 | 3 | ### AWS Neptune 4 | - Used for highly connected datasets, such as recommendation engines, fraud detection, and knowledge graphs. 5 | -------------------------------------------------------------------------------- /System-Design/Concepts/Databases/NOSQL/Wide_Coloumn/HBase/README.md: -------------------------------------------------------------------------------- 1 | ## Apache HBase 2 | - HBase is modeled after [Google’s BigTable] and runs on top of [Hadoop Distributed File System (HDFS)](/Operating_Systems/Linux/FileSystem/HDFS_Hadoop_Distributed_File_System.md) 3 | - Written in Java. 4 | - **Writes Data only Once** 5 | - HBase groups data together to store new data in a memory buffer and, once the buffer is full, it dumps the data to the disk. 6 | -------------------------------------------------------------------------------- /System-Design/Concepts/Databases/Terms/Isolation/images/dirty_read1.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Concepts/Databases/Terms/Isolation/images/dirty_read1.JPG -------------------------------------------------------------------------------- /System-Design/Concepts/Databases/Terms/Isolation/images/dirty_write.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Concepts/Databases/Terms/Isolation/images/dirty_write.JPG -------------------------------------------------------------------------------- /System-Design/Concepts/Databases/Terms/Isolation/images/lost_update.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Concepts/Databases/Terms/Isolation/images/lost_update.JPG -------------------------------------------------------------------------------- /System-Design/Concepts/Databases/Terms/Isolation/images/non_repeatable_read.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Concepts/Databases/Terms/Isolation/images/non_repeatable_read.JPG -------------------------------------------------------------------------------- /System-Design/Concepts/Databases/Terms/Isolation/images/phantom_read.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Concepts/Databases/Terms/Isolation/images/phantom_read.JPG -------------------------------------------------------------------------------- /System-Design/Concepts/Databases/Terms/Isolation/images/write_skew.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Concepts/Databases/Terms/Isolation/images/write_skew.JPG -------------------------------------------------------------------------------- /System-Design/Concepts/DistributedSystems/Batch_Processing/images/sort-merge-join.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Concepts/DistributedSystems/Batch_Processing/images/sort-merge-join.PNG -------------------------------------------------------------------------------- /System-Design/Concepts/DistributedSystems/Batch_Processing/images/test: -------------------------------------------------------------------------------- 1 | re 2 | -------------------------------------------------------------------------------- /System-Design/Concepts/GCP/gcp.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Concepts/GCP/gcp.JPG -------------------------------------------------------------------------------- /System-Design/Concepts/GCP/gke1.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Concepts/GCP/gke1.JPG -------------------------------------------------------------------------------- /System-Design/Concepts/Hashing/Example/Consistent Hashing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Concepts/Hashing/Example/Consistent Hashing.png -------------------------------------------------------------------------------- /System-Design/Concepts/Hashing/images/Consistent_Hashing1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Concepts/Hashing/images/Consistent_Hashing1.png -------------------------------------------------------------------------------- /System-Design/Concepts/Hashing/images/Consistent_Hashing_Addition.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Concepts/Hashing/images/Consistent_Hashing_Addition.png -------------------------------------------------------------------------------- /System-Design/Concepts/Hashing/images/Consistent_Hashing_Deletion.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Concepts/Hashing/images/Consistent_Hashing_Deletion.png -------------------------------------------------------------------------------- /System-Design/Concepts/Hashing/images/Consistent_Hashing_VirtualNodes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Concepts/Hashing/images/Consistent_Hashing_VirtualNodes.png -------------------------------------------------------------------------------- /System-Design/Concepts/Hashing/images/t: -------------------------------------------------------------------------------- 1 | t 2 | -------------------------------------------------------------------------------- /System-Design/Concepts/MOM_ESB/Apache_Kafka/images/high-water-mark.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Concepts/MOM_ESB/Apache_Kafka/images/high-water-mark.JPG -------------------------------------------------------------------------------- /System-Design/Concepts/MOM_ESB/Apache_Kafka/images/kafka1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Concepts/MOM_ESB/Apache_Kafka/images/kafka1.png -------------------------------------------------------------------------------- /System-Design/Concepts/MOM_ESB/Apache_Kafka/images/kafka3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Concepts/MOM_ESB/Apache_Kafka/images/kafka3.png -------------------------------------------------------------------------------- /System-Design/Concepts/MicroServices/macro-micro.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Concepts/MicroServices/macro-micro.png -------------------------------------------------------------------------------- /System-Design/Concepts/Number_System/images/dec_to_base62.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Concepts/Number_System/images/dec_to_base62.jpg -------------------------------------------------------------------------------- /System-Design/Concepts/Number_System/images/dec_to_binary.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Concepts/Number_System/images/dec_to_binary.jpg -------------------------------------------------------------------------------- /System-Design/Concepts/Number_System/images/t: -------------------------------------------------------------------------------- 1 | s 2 | -------------------------------------------------------------------------------- /System-Design/Concepts/README.md: -------------------------------------------------------------------------------- 1 | - [CDN (Content Delivery Network)](https://code-with-amitk.github.io/System_Design/Concepts/CDN/) 2 | - [Distributed Systems: Cloud, Types of DS{Cluster, Grid, Cloud Computing, Edge, HPC}, Stream Processing, Batch Processing](DistributedSystems) 3 | - [Load Balancer, Types of Load Balancers](https://code-with-amitk.github.io/System_Design/Concepts/Load%20Balancer/) 4 | - 5 | -------------------------------------------------------------------------------- /System-Design/Concepts/Software_Architecture_Patterns/layered_arch.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Concepts/Software_Architecture_Patterns/layered_arch.PNG -------------------------------------------------------------------------------- /System-Design/Concepts/architecture-types-of-distributed-systems.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Concepts/architecture-types-of-distributed-systems.png -------------------------------------------------------------------------------- /System-Design/Concepts/distributed-system-middleware-layer.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Concepts/distributed-system-middleware-layer.PNG -------------------------------------------------------------------------------- /System-Design/Non_Scalable/parking-lot/README: -------------------------------------------------------------------------------- 1 | test 2 | -------------------------------------------------------------------------------- /System-Design/README: -------------------------------------------------------------------------------- 1 | APPROACH: 2 | 3 | A. UNDERSTAND REQUIREMENT? 4 | Eg: tinyurl 5 | -user can open multiple tinyurl tabs 6 | -url should not expire for 30 days 7 | -tinyurl should be generated within 2-3 sec 8 | -user can see his stats 9 | 10 | uber,ola,lyft 11 | -user can raise cab request 12 | -user can see near by taxis 13 | -user can see eta to dest 14 | -------------------------------------------------------------------------------- /System-Design/Scalable/BookMyShow_TicketMaster/bookmyshow-hld.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Scalable/BookMyShow_TicketMaster/bookmyshow-hld.png -------------------------------------------------------------------------------- /System-Design/Scalable/Botnet/Botnet_Architecture.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Scalable/Botnet/Botnet_Architecture.JPG -------------------------------------------------------------------------------- /System-Design/Scalable/Botnet/lifecycle-of-bot.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Scalable/Botnet/lifecycle-of-bot.JPG -------------------------------------------------------------------------------- /System-Design/Scalable/Cashback/images/cashback_system.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Scalable/Cashback/images/cashback_system.png -------------------------------------------------------------------------------- /System-Design/Scalable/Distributed-Cache-System/Distributed_Cache_overall.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Scalable/Distributed-Cache-System/Distributed_Cache_overall.png -------------------------------------------------------------------------------- /System-Design/Scalable/Distributed_Downloading_Systems/BitTorrent/Bittorrent_Architecture1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Scalable/Distributed_Downloading_Systems/BitTorrent/Bittorrent_Architecture1.jpg -------------------------------------------------------------------------------- /System-Design/Scalable/Distributed_Downloading_Systems/BitTorrent/Bittorrent_vs_http.md: -------------------------------------------------------------------------------- 1 | ## Bittorrent vs HTTP 2 | 3 | ||Bittorrent|HTTP| 4 | |---|---|---| 5 | |Download Speed|Uses multiple parallel connections for downloading hence improve download rates|Web browsers uses single TCP socket to transfer HTTP packets| 6 | |Model|Peer-assisted|Client-server| 7 | |Data availability Method|Random or rarest-first|Incremental| 8 | -------------------------------------------------------------------------------- /System-Design/Scalable/Distributed_Downloading_Systems/Freenet/Adv_Disadv_freenet.md: -------------------------------------------------------------------------------- 1 | ## Advantages 2 | - *1.* Secure 3 | - *2.* Publisher and consumer can keep their anonymity. 4 | 5 | ## Disadvantages 6 | - *1.* Freenet has its own [routing mechanism](Message_Flow/Routing) to build routing table and sending request for file to least cost nodes in routing table. This routing is not aware of underlying routing protocol of TCP/IP. 7 | -------------------------------------------------------------------------------- /System-Design/Scalable/Distributed_Downloading_Systems/Freenet/Message_Flow/freenet_message_flow.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Scalable/Distributed_Downloading_Systems/Freenet/Message_Flow/freenet_message_flow.JPG -------------------------------------------------------------------------------- /System-Design/Scalable/Distributed_Downloading_Systems/Freenet/README.md: -------------------------------------------------------------------------------- 1 | ## Freenet 2 | - **What?** Nodes(on network) ask to use their free Disk space for storing/publishing/retrieval of data/information. Encrypted data is stored. 3 | - [Advantages, Disadvantages of Freenet](Adv_Disadv_freenet.md) 4 | - [Type of Messages](Message_Types) 5 | - **[Architecture, Message Flow](Message_Flow)** 6 | -------------------------------------------------------------------------------- /System-Design/Scalable/Distributed_Downloading_Systems/Freenet/Security/README.md: -------------------------------------------------------------------------------- 1 | ## Security in Freenet 2 | - Nodes encrypt data using [AES 256 / Rijndael](https://sites.google.com/site/amitinterviewpreparation/networking/layer3/security) 3 | -------------------------------------------------------------------------------- /System-Design/Scalable/Distributed_Downloading_Systems/Gnutella/Architecture/Gnutella.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Scalable/Distributed_Downloading_Systems/Gnutella/Architecture/Gnutella.jpg -------------------------------------------------------------------------------- /System-Design/Scalable/Distributed_Downloading_Systems/Gnutella/README.md: -------------------------------------------------------------------------------- 1 | ## Gnutella 2 | - **What?** Distributed file downloading system which distributes both the search and download capabilities amongst peers. 3 | - **[Gnutella Nodes:](Node_Types.md)** Leaf, Ultra Nodes, Push Proxies 4 | - **[How Gnutella works / Architecture?](Architecture)** 5 | - **[Message Types](Message_Types.md)** 6 | - **[Problems in Gnutella](Problems_with_Gnutella.md)** 7 | -------------------------------------------------------------------------------- /System-Design/Scalable/Distributed_Downloading_Systems/Online_Music_Napster/napster.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Scalable/Distributed_Downloading_Systems/Online_Music_Napster/napster.JPG -------------------------------------------------------------------------------- /System-Design/Scalable/Distributed_File_System/AFS/README.md: -------------------------------------------------------------------------------- 1 | Andrew File System 2 | -------------------------------------------------------------------------------- /System-Design/Scalable/Distributed_File_System/GFS/gfs_architecture.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Scalable/Distributed_File_System/GFS/gfs_architecture.JPG -------------------------------------------------------------------------------- /System-Design/Scalable/Distributed_File_System/README.md: -------------------------------------------------------------------------------- 1 | Other File Systems: 2 | AFS, xFS, Frangipani [12], and 3 | Intermezzo [6], 4 | -------------------------------------------------------------------------------- /System-Design/Scalable/Distributed_Hash_Table/Chord/chord-dht.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Scalable/Distributed_Hash_Table/Chord/chord-dht.JPG -------------------------------------------------------------------------------- /System-Design/Scalable/Distributed_Hash_Table/Kademlia/XOR_Geometry/README.md: -------------------------------------------------------------------------------- 1 | ## XOR Geometry 2 | - The XOR distance between a node and itself is zero. 3 | - XOR is symmetric, and the distance from A to B and from B to A are equal. 4 | - XOR satisfies the triangle inequality property. 5 | ```console 6 | Distance between 3 nodes (x,y,z). d(x, y) + d(y, z) ≥ d(x, z) 7 | 8 | d(x, z) = d(x, y) ⊕ d(y, z) //⊕ is XOR 9 | ``` 10 | -------------------------------------------------------------------------------- /System-Design/Scalable/Dropbox_or_GoogleDrive/Client_Application/dropbox-client-application.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Scalable/Dropbox_or_GoogleDrive/Client_Application/dropbox-client-application.PNG -------------------------------------------------------------------------------- /System-Design/Scalable/Dropbox_or_GoogleDrive/Dropbox.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Scalable/Dropbox_or_GoogleDrive/Dropbox.jpg -------------------------------------------------------------------------------- /System-Design/Scalable/Facebook/Fake_Account_Detection/fb-fakeaccount-detect.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Scalable/Facebook/Fake_Account_Detection/fb-fakeaccount-detect.png -------------------------------------------------------------------------------- /System-Design/Scalable/Facebook/News Feed/facebook_newsfeed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Scalable/Facebook/News Feed/facebook_newsfeed.png -------------------------------------------------------------------------------- /System-Design/Scalable/Facebook/README.md: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /System-Design/Scalable/IDE_Visual_Studio/vscode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Scalable/IDE_Visual_Studio/vscode.png -------------------------------------------------------------------------------- /System-Design/Scalable/Messengers/FB_Messenger/Facebook_Messenger.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Scalable/Messengers/FB_Messenger/Facebook_Messenger.jpg -------------------------------------------------------------------------------- /System-Design/Scalable/Messengers/FB_Messenger/fb-get-friendlist.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Scalable/Messengers/FB_Messenger/fb-get-friendlist.png -------------------------------------------------------------------------------- /System-Design/Scalable/Messengers/FB_Messenger/fb-get-live-friends.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Scalable/Messengers/FB_Messenger/fb-get-live-friends.png -------------------------------------------------------------------------------- /System-Design/Scalable/Messengers/FB_Messenger/fb-messenger-send-hi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Scalable/Messengers/FB_Messenger/fb-messenger-send-hi.png -------------------------------------------------------------------------------- /System-Design/Scalable/Messengers/FB_Messenger/images/Facebook_Messenger1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Scalable/Messengers/FB_Messenger/images/Facebook_Messenger1.jpg -------------------------------------------------------------------------------- /System-Design/Scalable/Messengers/FB_Messenger/images/r: -------------------------------------------------------------------------------- 1 | t 2 | -------------------------------------------------------------------------------- /System-Design/Scalable/Messengers/Snap_Chat/snapchat1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Scalable/Messengers/Snap_Chat/snapchat1.jpg -------------------------------------------------------------------------------- /System-Design/Scalable/Messengers/Whatsapp/images/signal_protocol_whatsapp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Scalable/Messengers/Whatsapp/images/signal_protocol_whatsapp.png -------------------------------------------------------------------------------- /System-Design/Scalable/Notification/Price_Drop_Notification_Service/images/price-drop-notification-service.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Scalable/Notification/Price_Drop_Notification_Service/images/price-drop-notification-service.JPG -------------------------------------------------------------------------------- /System-Design/Scalable/Notification/Price_Drop_Notification_Service/images/t: -------------------------------------------------------------------------------- 1 | e 2 | -------------------------------------------------------------------------------- /System-Design/Scalable/Pastebin_PrivateBin_Hastebin_ControlC/Pastebin.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Scalable/Pastebin_PrivateBin_Hastebin_ControlC/Pastebin.jpg -------------------------------------------------------------------------------- /System-Design/Scalable/Scale_on_Cloud/images/scale_on_cloud.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Scalable/Scale_on_Cloud/images/scale_on_cloud.jpg -------------------------------------------------------------------------------- /System-Design/Scalable/tinyurl/TinyURL.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Scalable/tinyurl/TinyURL.jpg -------------------------------------------------------------------------------- /System-Design/Scalable/twitter/Twitter.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Scalable/twitter/Twitter.jpg -------------------------------------------------------------------------------- /System-Design/Scalable/uber/design.md: -------------------------------------------------------------------------------- 1 | test 2 | -------------------------------------------------------------------------------- /System-Design/Scalable/yelp_proximity_server/images/t: -------------------------------------------------------------------------------- 1 | t 2 | -------------------------------------------------------------------------------- /System-Design/Scalable/youtube/images/f: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /System-Design/Scalable/youtube/images/youtube.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/Scalable/youtube/images/youtube.png -------------------------------------------------------------------------------- /System-Design/System_Design_Patterns/images/sidecar_container.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/System-Design/System_Design_Patterns/images/sidecar_container.png -------------------------------------------------------------------------------- /System-Design/System_Design_Patterns/images/t: -------------------------------------------------------------------------------- 1 | a 2 | -------------------------------------------------------------------------------- /Testing/Test-Framework/Catch2/README.md: -------------------------------------------------------------------------------- 1 | Catch2 2 | 3 | ## Catch2 4 | - This unit testing framework for C++. 5 | -------------------------------------------------------------------------------- /Testing/Test-Framework/Python/README.adoc: -------------------------------------------------------------------------------- 1 | :toc: 2 | :toclevels: 5 3 | 4 | == Frameworks 5 | === link:https://code-with-amitk.github.io/Frameworks/Python/Unittest/[Pyunit or Unitest] 6 | * mock time consuming API with mock object 7 | -------------------------------------------------------------------------------- /Testing/Test-Framework/README.md: -------------------------------------------------------------------------------- 1 | **Differences** 2 | ```c 3 | | Catch2 | Google Test | CMake(CTest) | Boost Test | 4 | ------------|--------------|-------------------|--------------|--------------| 5 | Ease of use | Easiest | 6 | 7 | External | No 8 | 9 | Dependencies| no 10 | 11 | Free formed | yes 12 | Test names 13 | 14 | ``` 15 | -------------------------------------------------------------------------------- /Threads_Processes_IPC/IPC/IPC_Design_Issues/README.md: -------------------------------------------------------------------------------- 1 | ### IPC Design Issues 2 | - _1. Communication:_ How one process can pass information to other? 3 | - _2. No Interference:_ Making sure two or more processes do not changes each other's data. 4 | - _3. Sequence:_ Proper sequencing when dependencies are present: if process A produces data and process B prints them, B has to wait until A has produced some data before starting to print. 5 | -------------------------------------------------------------------------------- /Threads_Processes_IPC/IPC/synchronization/Mutex/README.adoc: -------------------------------------------------------------------------------- 1 | 2 | 3 | == link:https://code-with-amitk.github.io/Threads_Processes_IPC/Synchronization/mutex.html[mutex] 4 | * What is mutex 5 | ** How internally implemented, Problems with Mutex 6 | * Creating Mutex(C++, POSIX, Rust) 7 | * Wrappers over Mutex 8 | ** lock_guard 9 | ** unique_lock 10 | ** scoped_lock C++17 11 | 12 | == link:Mutex_Types.md[mutex types] 13 | -------------------------------------------------------------------------------- /Threads_Processes_IPC/MultiCPU_MultiCore/multicore.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Threads_Processes_IPC/MultiCPU_MultiCore/multicore.JPG -------------------------------------------------------------------------------- /Threads_Processes_IPC/Threads/userspace_kernelspace_threads.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/Threads_Processes_IPC/Threads/userspace_kernelspace_threads.PNG -------------------------------------------------------------------------------- /books/clean-code/Clean_Code.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-with-amitk/Code-examples/d0a314cd6c7e296351ab92db8d4dd1f6ba34b515/books/clean-code/Clean_Code.pdf --------------------------------------------------------------------------------