Skip to main content

Posts

Showing posts from October, 2018

Cloning All Your GitHub Repositories or Updating Them in One Command

I had a new laptop couple weeks ago at work, and I had to set it up with everything I need including the projects I have been working on from GitHub, I remembered how I usually git clone every project I start working on, it involves going to GitHub to the project page, copy the clone URL then go to my terminal, change directory to my projects directory then execute git clone http://github.

Async Rendering a Page With Sinatra

I was thinking, what if you need a server that serves a page that does alot of processing, it sends multiple commands, does alot of queries and most of them takes a long time. Waiting for all commands to finish isn’t an option, fast response time is also a requirement, so a solution could be warming up a cache then render the page from this cache. That solution means you will also wait for all commands/queries to finish then respond with your output.