October 11, 2017

Get rid of .DS_Store files from GIT Repo on Mac OS X

Whether you are new to GIT repositories or an experienced developer, I am sure, at some point in using GIT, you must have come across these annoying .DS_Store files that seem to populate out of nowhere. It is a much apparent problem if you have enabled viewing hidden files.

What are they? DS_Store is a short form for Desktop Service Store that contains attributes of a folder and is created every single time a folder is navigated to. The more you navigate through your program source code, the more .DS_Store files you will end up finding. You can delete them but they will appear again.

I am okay with seeing them on my Mac but when you have an auto deployment script setup for GIT, you prefer not having these useless files on your Linux machine. We use a neat little auto deployment script which gets executed each time new updates are pushed to our repository. We have a repo for each of our business applications so it saves our developers plenty of time navigating their way through FTP programs and updating files through that.

To help address this issue, you can configure GIT globally to ignore .DS_Store files by executing this the following:

git config --global core.excludesfile ~/.gitignore

OR, if you already pushed some of these .DS_Store files, you can get rid of them from your repo in the following way. Go to the root of your app directory and execute the following command in terminal:

find . -name .DS_Store -print0 | xargs -0 git rm -f --ignore-unmatch

That will get rid of all recognition of .DS_Store in your repo. Next, add the .DS_Store to the ignore list. You can do that by simply creating a .gitignore file. Place the following in the .gitignore file at the root of your app directory.

.DS_Store

Save it as .gitignore and push the changes through. Voila! One less annoying problem to worry about 🙂 I am still giving thought towards publishing the source code for our Auto Deploy script 😉

July 11, 2017

That Beautiful Day…

As the song goes,
This is how the story went,
I met someone by accident,
Who blew me away,
Blew me away

Today marks the day I first met you,
I instantly knew you were special,
Little I knew I’d become so close,
Little I knew I’d care so much,
Neither in Life nor in Realive,
That moment that left me feeling,
Ah, all so alive

There was something about you,
Something so so different,
That day I remember as if it was today,
I passed you by wondering who it was,
This strange new one – so tall and pretty

You turned around and said Hi,
As your bright blue eyes sparkled,
With a smile so wide and bright,
It was only a matter of time before I was mesmerised,
For a brief moment, we looked at each other,
And found ourselves mirroring one another

Words came out as if we knew each other all along,
It felt so effortless and affable after so long,
But I soon found myself lost for words and lost in time,
I didn’t want it to end by getting into the playtime,
After all, it was right after the kid’s mealtime,
And oh to stop and carry on, it felt like such a crime

I went home wondering if our encounter seem at all strange,
And thinking about the looks that we have exchanged,
I thought to myself that it can’t get any better,
I longed to meet you again knowing it was for a tether,
And for the first time, I wished I could freeze time

You speak your mind,
And I’ll speak mine,
Where have you been all this time,
Your smile brightens up my day,
As I hang on every word you say,
There are days when I tried so hard,
So hard to make you smile,
And boy was it worth the while

I still reminisce the day we met and how you made me feel,
Imagining that beautiful smile on your pretty face,
And the idea of staring into your dreamy blue eyes,
Just everything about you feels just right

When all the songs are over,
And all the words have been said,
The sun grows dim across the sky,
And the world prepares for bed,
Or at least someone does by eleven

I oft can take a moment now,
To view the sky above,
And whisper God a simple prayer,
To thank him for you and I

No one knows what tomorrow brings,
One can only wish and believe,
In a short while, we have sure been through a lot,
You taught me things I would never know otherwise

For whatever lies in our future and wherever we end up,
All you need to know is I am just a word away,
I am neither anxious nor waiting for what lies ahead for us,
Because I am beyond grateful and glad for the time we’ve had

So as I run out of my poetic words,
It’s only right to acknowledge the one,
Who made all this possible,
For without Him, we’d never have met,
So thank you, Lord, for you are such a good God

Maybe one day when heaven makes a way,
And when you and I have all the time in the world,
As we sit on a mountaintop somewhere far away,
In the quietness of that hour as the sun begins to fade,
Maybe I will tell you all about how I once felt,
Until then, you take care.

I will see you around and will keep letting my heart race as fast as it pleases!

Ps. We never meet people by accident. God brings them into our lives for reasons beyond our understanding. All we need to know is this – He’s got this! Just trust Him. He knows what He’s doing.

He uses different people to teach us different things. It’s meant to be a beautiful journey, so learn to enjoy it. And who knows what will happen at the end? It may turn out quite favorable after-all!

🙂

Older Posts