Recently described as the ‘tech gateway to the Middle East’, we explore the inner workings of Beirut, the world’s unlikeliest of tech hubs