Pipe JSON Data into Node.js via Command Line

I was trying to pipe JSON data into node.js as an object. I came across an answer on StackOverflow, which was about something else, but led me in the right direction.

I was able to do it via cat and node using the following command:

cat ./example.json | node <<< "var o = $(cat); console.log(o);"

Worked like a charm.


Pray for Those…

First of all, then, I urge that entreaties and prayers, petitions and thanksgivings, be made on behalf of all men, for kings and all who are in authority, so that we may lead a tranquil and quiet life in all godliness and dignity. This is good and acceptable in the sight of God our Savior, who desires all men to be saved and to come to the knowledge of the truth. For there is one God, and one mediator also between God and men, the man Christ Jesus

1st Timothy 2:1-5 (NASB)

Note: This includes Obama, Trump, and Clinton.


Commit Your Way

All the ways of a man are clean in his own eyes; but the Lord weighs the motives. Commit your deeds to the Lord, and your plans shall succeed.

Proverbs 16:2-3 (NHEB)


Self-Closing Tags

Ever since the days on XHTML, I always wished script tags that had a src attribute could be self-closing. Such as:
<script type="text/javascript" src="some.js" />

Instead of:
<script type="text/javascript" src="some.js"></
script>


Your Sins Can Be Forgiven

From Morning and Evening by C.H. Spurgeon, for August 10th in the evening:

“The Son of Man hath power on earth to forgive sins.”

Matthew 9:6

Behold one of the great Physician’s mightiest arts: he has power to forgive sin! While here he lived below, before the ransom had been paid, before the blood had been literally sprinkled on the mercy-seat, he had power to forgive sin. Hath he not power to do it now that he hath died? What power must dwell in him who to the utmost farthing has faithfully discharged the debts of his people! He has boundless power now that he has finished transgression and made an end of sin. If ye doubt it, see him rising from the dead! behold him in ascending splendour raised to the right hand of God! Hear him pleading before the eternal Father, pointing to his wounds, urging the merit of his sacred passion! What power to forgive is here! “He hath ascended on high, and received gifts for men.” “He is exalted on high to give repentance and remission of sins.” The most crimson sins are removed by the crimson of his blood. At this moment, dear reader, whatever thy sinfulness, Christ has power to pardon, power to pardon thee, and millions such as thou art. A word will speak it. He has nothing more to do to win thy pardon; all the atoning work is done. He can, in answer to thy tears, forgive thy sins today, and make thee know it. He can breathe into thy soul at this very moment a peace with God which passeth all understanding, which shall spring from perfect remission of thy manifold iniquities. Dost thou believe that? I trust thou believest it. Mayst thou experience now the power of Jesus to forgive sin! Waste no time in applying to the Physician of souls, but hasten to him with words like these:

“Jesus! Master! hear my cry;

Save me, heal me with a word;

Fainting at thy feet I lie,

Thou my whisper’d plaint hast heard.”


« Previous PageNext Page »