Skip to content

Instantly share code, notes, and snippets.

View mertyertugrul's full-sized avatar
:octocat:

Mertugrul mertyertugrul

:octocat:
View GitHub Profile
@mertyertugrul
mertyertugrul / copy-code-base.sh
Last active April 14, 2023 15:54
Code that copy the code base recursively for a given path
# write the path here
dir=""
# Set the array to store file contents
contents=()
# Use the find command to locate all .java and .py files in the directory tree
while IFS= read -r -d '' file; do
# Read the contents of the file and add them to the array
@mertyertugrul
mertyertugrul / MongoDB Convert Field Type to Date.sh
Last active July 11, 2021 11:36
MongoDB Convert Field Type to Date
db.Purchases.updateMany(
{},
[{"$set":{"<fieldName>":{"$toDate":"$<fieldName>"}}}]
);