Skip to content

Commit 2d42886

Browse files
committed
update profile and add makefile
1 parent 1cfaf45 commit 2d42886

File tree

5 files changed

+181
-95
lines changed

5 files changed

+181
-95
lines changed

Makefile

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
# Makefile
2+
3+
# Variables
4+
TAG_NUMBER_FILE = '.tag_number'
5+
BRANCH_NAME ?= master
6+
#POM_FILE = pom.xml
7+
#ARTIFACT_ID ?= test-artifact
8+
9+
# Prevent make from treating the targets as files
10+
#.PHONY: all update_version commit_changes create_tag push_changes push_tags clean help
11+
.PHONY: all increment_version commit_changes create_tag push_changes push_tags clean help
12+
13+
# Default target
14+
#all: update_version commit_changes create_tag push_changes push_tags
15+
all: increment_version commit_changes create_tag push_changes push_tags
16+
17+
## Update the version for the specified artifactId in the pom.xml
18+
#update_version:
19+
# @git checkout $(BRANCH_NAME)
20+
# @git pull
21+
# @if [ -z "$(TAG_NUMBER)" ]; then \
22+
# echo "Error: No tag specified. Usage: make update_version <tag_number>"; \
23+
# exit 1; \
24+
# fi
25+
# @echo "Updating version to $(TAG_NUMBER) for artifactId $(ARTIFACT_ID) in $(POM_FILE)..."
26+
# # Remove prefix 'v' for version if it starts with 'v'
27+
# @VERSION=$$(echo "$(TAG_NUMBER)" | sed 's/^v//'); \
28+
# echo "Updating version to $$VERSION for artifactId $(ARTIFACT_ID) in $(POM_FILE)..."; \
29+
# awk -v version="$$VERSION" 'BEGIN {updated=0} \
30+
# /<artifactId>$(ARTIFACT_ID)<\/artifactId>/ {print; getline; sub(/<version>.*<\/version>/, "<version>" version "</version>"); updated=1} \
31+
# {print} \
32+
# END {if (!updated) {exit 1}}' $(POM_FILE) > $(POM_FILE).tmp && mv $(POM_FILE).tmp $(POM_FILE); \
33+
# if [ $$? -ne 0 ]; then \
34+
# echo "Error: Could not find artifactId $(ARTIFACT_ID) in $(POM_FILE)."; \
35+
# exit 1; \
36+
# fi
37+
# @echo "Version updated to $(TAG_NUMBER) for artifactId $(ARTIFACT_ID)."
38+
39+
# Increment version number
40+
increment_version:
41+
@latest_tag=$$(git describe --tags --abbrev=0 2>/dev/null || echo "v0.0.0"); \
42+
if [ "$$latest_tag" = "v0.0.0" ]; then \
43+
echo "Tags not found! Using default version v0.0.0"; \
44+
else \
45+
echo "Tags found: $$latest_tag"; \
46+
fi; \
47+
version=$$(echo "$$latest_tag" | sed 's/^v//'); \
48+
echo "Incrementing after version $$version"; \
49+
set -- $$(echo "$$version" | tr '.' ' '); \
50+
major=$$1; minor=$$2; patch=$$3; \
51+
echo "Current version: Major:$$major | Minor:$$minor | Patch:$$patch"; \
52+
new_patch=$$((patch + 1)); \
53+
TAG_NUMBER="v$$major.$$minor.$$new_patch"; \
54+
echo "New tag: $$TAG_NUMBER"; \
55+
echo "$$TAG_NUMBER" > $(TAG_NUMBER_FILE);
56+
57+
58+
# Commit the changes with the given message
59+
commit_changes:
60+
@$(call check_tag_number) \
61+
rm $(TAG_NUMBER_FILE); \
62+
# git add .; \
63+
# git commit -m "updated to $$TAG_NUMBER"; \
64+
# echo "Changes committed with tag $$TAG_NUMBER."; \
65+
echo "$$TAG_NUMBER" > $(TAG_NUMBER_FILE);
66+
67+
# Create a git tag with the given tag number
68+
create_tag:
69+
@$(call check_tag_number) \
70+
git tag "$$TAG_NUMBER"; \
71+
echo "Tag $$TAG_NUMBER created."; \
72+
rm $(TAG_NUMBER_FILE);
73+
74+
75+
# Push the changes to the origin branch
76+
push_changes:
77+
@git pull origin $(BRANCH_NAME)
78+
@git status
79+
@git push -u origin $(BRANCH_NAME)
80+
@echo "Changes pushed to branch $(BRANCH_NAME)."
81+
82+
# Push all tags to the remote repository
83+
push_tags:
84+
@git push --tags
85+
@echo "All tags pushed to remote."
86+
87+
# Clean up
88+
clean:
89+
@echo "Cleaning up..."
90+
@git reset --soft HEAD
91+
@echo "Cleanup done."
92+
@rm $(TAG_NUMBER_FILE)
93+
94+
95+
# Help message
96+
help:
97+
@echo "Usage:"
98+
@echo " make update_version <tag_number>"
99+
@echo "Targets:"
100+
@echo " all Updates version, commits changes, creates a tag, and pushes changes."
101+
@echo " increment_version Increments the version in by 1 patch level."
102+
@#echo " update_version Updates the version in pom.xml."
103+
@echo " commit_changes Commits the changes with a message."
104+
@echo " create_tag Creates a git tag."
105+
@echo " push_changes Pushes changes to the origin branch."
106+
@echo " push_tags Pushes all tags to the remote repository."
107+
@echo " clean Resets changes to HEAD."
108+
109+
# Handle arguments for the update_version target
110+
%:
111+
@:
112+
113+
define check_tag_number
114+
@if [ -f $(TAG_NUMBER_FILE) ]; then \
115+
TAG_NUMBER=$$(cat $(TAG_NUMBER_FILE)); \
116+
if [ -n "$$TAG_NUMBER" ]; then \
117+
echo "Using tag number from file $(TAG_NUMBER_FILE): $$TAG_NUMBER"; \
118+
else \
119+
echo "Error: $(TAG_NUMBER_FILE) is empty. Run 'make increment_version' first."; \
120+
exit 0; \
121+
fi \
122+
else \
123+
echo "Error: $(TAG_NUMBER_FILE) file not found. Run 'make increment_version' first."; \
124+
exit 0; \
125+
fi;
126+
endef

html/education.html

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
11
<div class="w3-container">
2-
<h5 class="w3-opacity-min"><b>International Islamic University Chittagong (IIUC)</b></h5>
3-
<h6 class="w3-text-indigo"><i class="fa fa-calendar fa-fw w3-margin-right"></i>
4-
B.Sc. in Computer Science & Engineering | 2014 - 2018</h6>
2+
<h5 class="w3-opacity-min"><i class="fa fa-institution fa-fw w3-margin-right"></i>
3+
<b>International Islamic University Chittagong (IIUC)</b> | B.Sc. in CSE | 2014 - 2019</h5>
54
</div>
65

76
<div class="w3-container">
8-
<h5 class="w3-opacity-min"><b>Government City College, Chittagong</b></h5>
9-
<h6 class="w3-text-indigo"><i class="fa fa-calendar fa-fw w3-margin-right"></i>
10-
Higher Secondary Certification | 2011 - 2013</h6>
7+
<h5 class="w3-opacity-min"><i class="fa fa-institution fa-fw w3-margin-right"></i>
8+
<b>Government City College, Chittagong</b> | HSC | 2011 - 2013</h5>
119
</div>
1210

1311
<div class="w3-container">
14-
<h5 class="w3-opacity-min"><b>Government Muslim High School, Chittagong</b></h5>
15-
<h6 class="w3-text-indigo"><i class="fa fa-calendar fa-fw w3-margin-right"></i>
16-
Secondary School Certification | 2005 - 2010</h6>
12+
<h5 class="w3-opacity-min"><i class="fa fa-institution fa-fw w3-margin-right"></i>
13+
<b>Government Muslim High School, Chittagong</b> | SSC | 2005 - 2010</h5>
1714
</div>
1815

1916
<hr>

html/open-source-contribution.html

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
<div class="w3-container">
2-
<h5 class="w3-opacity-min"><i class="fa fa-pagelines fa-fw w3-margin-right w3-large w3-text-indigo"></i><b><a
3-
href="https://github.com/thingsboard/thingsboard">ThingsBoard</a></b></h5>
4-
<h6 class="w3-text-indigo"><i class="fa fa-git fa-fw w3-margin-right"></i>
5-
<b>PR:</b> <a href="https://github.com/thingsboard/thingsboard/pull/6614">6614</a></h6>
2+
<i class="fa fa-pagelines fa-fw w3-margin-right w3-large w3-text-indigo"></i>
3+
<b><a href="https://github.com/thingsboard/thingsboard">ThingsBoard</a></b> : <a href="https://github.com/thingsboard/thingsboard/pull/6614">PR-6614</a>
64
</div>
75

86
<div class="w3-container">
9-
<h5 class="w3-opacity-min"><i class="fa fa-pagelines fa-fw w3-margin-right w3-large w3-text-indigo"></i><b><a
10-
href="https://github.com/MBSTUPC/tech-companies-in-bangladesh">Tech Companies in Bangladesh</a></b></h5>
11-
<h6 class="w3-text-indigo"><i class="fa fa-git fa-fw w3-margin-right"></i>
12-
PR: <a href="https://github.com/MBSTUPC/tech-companies-in-bangladesh/pull/44">44</a></h6>
7+
<i class="fa fa-pagelines fa-fw w3-margin-right w3-large w3-text-indigo"></i>
8+
<b><a href="https://github.com/MBSTUPC/tech-companies-in-bangladesh">Tech Companies in Bangladesh</a></b> : <a href="https://github.com/MBSTUPC/tech-companies-in-bangladesh/pull/44">PR-44</a>
139
</div>
1410

1511
<hr>

index.html

Lines changed: 21 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -13,127 +13,96 @@
1313

1414
<!-- Page Container -->
1515
<div class="w3-content w3-margin-top" style="max-width:1400px;">
16-
1716
<!-- The Grid -->
1817
<div class="w3-row-padding">
19-
2018
<!-- Left Column -->
2119
<div class="w3-third">
22-
2320
<div class="w3-white w3-text-black w3-card-4">
2421
<div class="w3-display-container">
25-
<a href="https://laziestcoder.github.io"><img src="Towfiqul_Islam.png" style="width:100%"
26-
id="profile_image" alt="Towfiqul Islam"
27-
title="Towfiqul Islam"></a>
22+
<a href="https://laziestcoder.github.io">
23+
<img src="Towfiqul_Islam.png" style="width:100%" id="profile_image" alt="Towfiqul Islam" title="Towfiqul Islam">
24+
</a>
2825
</div>
2926
<div class="w3-container">
30-
3127
<div personal-info-html="html/personal-info.html"></div>
3228
<span style="color: #1c7430" id="totalExperienceSummary">0</span> of experience with a passion for
3329
developing innovative programs that expedite the efficiency and effectiveness of organizational
3430
success in various environments with a breadth of programs and technologies. Well-versed in
3531
technology and writing code to create reliable and user-friendly systems. I have the proven ability
3632
to motivate, educate, and co-operate with a team of professionals to build software programs and
3733
effectively track changes. Confident communicator, strategic thinker, and innovative creator to
38-
develop customized software to meet a clientʼs needs, highlight their core competencies, and further
34+
develop customized software to meet a clients need, highlight their core competencies, and further
3935
their success.
4036
<li>Strong in integration with intuitive problem-solving skills.</li>
4137
<li>Proficient in Java (Spring Boot), MySQL, Oracle, DynamoDB, Tomcat, and Docker.</li>
4238
<li>Worked on various small and large projects and delivered on time.</li>
4339
<li>Ability to translate business requirements into technical solutions.</li>
4440
<li>Passionate about implementing and launching new projects.</li>
4541
<hr>
46-
4742
<p class="w3-large"><b><i class="fa fa-asterisk fa-fw w3-margin-right w3-text-indigo"></i>Skills</b>
4843
</p>
49-
5044
<div skills-html="html/skills.html"></div>
51-
5245
<div languages-html="html/languages.html"></div>
53-
5446
<p class="w3-large w3-text-theme"><b>
5547
<i class="fa fa-bars fa-fw w3-margin-right w3-text-indigo"></i>
5648
<a target="_blank" href="cv.html">Explore More</a></b>
5749
<hr>
58-
5950
<p class="w3-large w3-text-theme"><b>
6051
<i class="fa fa-file fa-fw w3-margin-right w3-text-indigo"></i>
6152
<a target="_blank" href="Towfiqul_Islam.pdf">Download CV</a></b>
6253
</p>
63-
6454
</div>
6555
</div>
66-
6756
<!-- End Left Column -->
6857
</div>
69-
7058
<div class="w3-twothird">
71-
7259
<!-- Experience -->
73-
7460
<div class="w3-container w3-card w3-white w3-margin-bottom">
7561
<h2 class="w3-text-black"><i
7662
class="fa fa-suitcase fa-fw w3-margin-right w3-xxlarge w3-text-indigo"></i>Work Experience
7763
(<span style="color: #1c7430" id="totalExperienceMain">0</span>)</h2>
78-
7964
<div work-experience-html="html/work-experience.html"></div>
80-
8165
</div>
8266
<!-- End Experience -->
8367

8468
<!-- Award Achievement -->
85-
8669
<div class="w3-container w3-card w3-white w3-margin-bottom">
87-
88-
<h2 class="w3-text-black"><i
89-
class="fa fa-trophy fa-fw w3-margin-right w3-xxlarge w3-text-indigo"></i>Award and Achievement
70+
<h2 class="w3-text-black">
71+
<i class="fa fa-trophy fa-fw w3-margin-right w3-xxlarge w3-text-indigo"></i>Award and Achievement
9072
</h2>
91-
9273
<div award-achievement-html="html/award-achievement.html"></div>
93-
9474
</div>
95-
9675
<!-- End Award Achievement -->
9776

9877
<!-- Projects -->
9978
<div class="w3-container w3-card w3-white w3-margin-bottom">
100-
101-
<h2 class="w3-text-black"><i
102-
class="fa fa-product-hunt fa-fw w3-margin-right w3-xxlarge w3-text-indigo"></i>Projects</h2>
103-
79+
<h2 class="w3-text-black"><i class="fa fa-product-hunt fa-fw w3-margin-right w3-xxlarge w3-text-indigo"></i>
80+
Projects
81+
</h2>
10482
<div projects-html="html/projects.html"></div>
105-
10683
</div>
107-
10884
<!-- End Projects -->
10985

110-
<!-- Education -->
111-
<div class="w3-container w3-card w3-white w3-margin-bottom">
112-
113-
<h2 class="w3-text-black"><i
114-
class="fa fa-certificate fa-fw w3-margin-right w3-xxlarge w3-text-indigo"></i>Education</h2>
115-
116-
<div education-html="html/education.html"></div>
117-
</div>
118-
119-
<!-- End Education -->
120-
12186
<!-- Open-Source Contribution -->
12287
<div class="w3-container w3-card w3-white w3-margin-bottom">
12388

124-
<h2 class="w3-text-black"><i
125-
class="fa fa-git-square fa-fw w3-margin-right w3-xxlarge w3-text-indigo"></i>Open-Source Contribution</h2>
126-
89+
<h2 class="w3-text-black"><i class="fa fa-git-square fa-fw w3-margin-right w3-xxlarge w3-text-indigo"></i>
90+
Open-Source Contribution
91+
</h2>
12792
<div open-source-contribution="html/open-source-contribution.html"></div>
12893
</div>
94+
<!-- End Open-Source Contribution -->
12995

96+
<!-- Education -->
97+
<div class="w3-container w3-card w3-white w3-margin-bottom">
98+
<h2 class="w3-text-black"><i class="fa fa-certificate fa-fw w3-margin-right w3-xxlarge w3-text-indigo"></i>
99+
Education
100+
</h2>
101+
<div education-html="html/education.html"></div>
102+
</div>
130103
<!-- End Education -->
131-
132104
</div>
133-
134-
135105
</div>
136-
137106
<!-- End Page Container -->
138107
</div>
139108

@@ -158,8 +127,8 @@ <h2 class="w3-text-black"><i
158127
includeHTML("work-experience-html");
159128
includeHTML("award-achievement-html");
160129
includeHTML("projects-html");
161-
includeHTML("education-html");
162130
includeHTML("open-source-contribution");
131+
includeHTML("education-html");
163132
</script>
164133

165134
</body>

0 commit comments

Comments
 (0)