Abstract: In this manuscript, we work over the non-chain ring R=F<em>2[u]/⟨u<sup>3</sup>−u⟩. Let m∈N and let L,M,N⊆[m]:=1,2,…,m. For X⊆[m], define ΔX​:=v∈F2​<sup>m</sup>:Supp(v)⊆X and D:=(1+u<sup>2)D1​</sup>+u<sup>2D2​</sup>+(u+u<sup>2)D3​, an ordered finite multiset consisting of elements from R<sup>m, where D1​∈ΔL​,ΔL​<sup>c,</sup>D2​∈ΔM​,ΔM​<sup>c,</sup>D3​∈ΔN​,ΔN​<sup>c. The linear code CD​ over R defined by (v⋅d)</em>d∈D:v∈R<sup>m</sup> is studied for each D. Further, we also consider simplicial complexes with two maximal elements in the above work. We study their binary Gray images and the binary subfield-like codes corresponding to a certain F2​-functional of R. Sufficient conditions for these binary linear codes to be minimal and self-orthogonal are obtained in each case. Besides, we produce an infinite family of optimal codes with respect to the Griesmer bound. Most of the codes obtained in this manuscript are few-weight codes.