<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Hugues on Medium]]></title>
        <description><![CDATA[Stories by Hugues on Medium]]></description>
        <link>https://medium.com/@hlidotbe?source=rss-bc3eae164e29------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*-I4g1U73wzOv_8GY.jpg</url>
            <title>Stories by Hugues on Medium</title>
            <link>https://medium.com/@hlidotbe?source=rss-bc3eae164e29------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 00:34:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hlidotbe/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[60%, clicky switches and strange hobbies]]></title>
            <link>https://medium.com/@hlidotbe/60-clicky-switches-and-strange-hobbies-e367ea10ae3a?source=rss-bc3eae164e29------2</link>
            <guid isPermaLink="false">https://medium.com/p/e367ea10ae3a</guid>
            <category><![CDATA[mechanical-keyboards]]></category>
            <category><![CDATA[keyboard]]></category>
            <category><![CDATA[diy]]></category>
            <category><![CDATA[electronics]]></category>
            <dc:creator><![CDATA[Hugues]]></dc:creator>
            <pubDate>Tue, 27 Jun 2017 08:13:39 GMT</pubDate>
            <atom:updated>2017-06-27T08:13:39.534Z</atom:updated>
            <content:encoded><![CDATA[<p>At EPIC we have almost as much hobbies as people, from board games to running or cycling. This brings a lot to our creative process as it brings lots of different ideas for our clients.</p><p>A few months ago I fell into the rabbit hole of mechanical keyboards thanks to some post on reddit showing a custom keyset (<a href="http://imgur.com/a/XawGX">1976</a> actually). Keyboards are usually something people put very little thought in. You usually get one with a computer and baring some liquid accident or other abuse you don’t change it often if at all. Which is a shame given how much time we spend on them.</p><p>Mechanical keyboards are kind of “new old tech”, the basic technology existed for decades and actually predates membrane ones that are almost universally used now. Beside durability (as each switches are often rated for tens of millions of keystrokes), mechanical keyboards offer endless customisation options to suit every typing tastes and aesthetics. And while there’s a plethora of partially or fully assembled keyboards and keycaps to choose from I knew I wanted to go a bit further and build my own. Which I did, twice!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*oIuQvq-G07BgsFRE1pxYAg.gif" /></figure><h3>First you have to create the universe</h3><p>While not exactly rocket science, building your own keyboard involves a bit more than going to your local electronic store (or Aliexpress!). Since I really wanted something completely custom, the first step was to design the plate(s) to hold the switches</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zLV-K4hfVTzF-5epXDBdxA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mQ8vF-3lt5xNzGgMTwesug.png" /></figure><p>First skill picked: CAD softwares and better understanding of tolerances in industrial processes… Not the most fun part (for me at least)</p><p>Then (well, while waiting), sourcing components. I had a few things around from previous foray in electronics but needed much more: switches, diodes, leds, controllers, …</p><p>Second skill picked: patience. There’s just about everything available on Aliexpress for little more than the price of a stamp but with delivery times often calculated in months you have to anticipate and be able to play the wait game.</p><p>Once the plate(s) are cut and components received, the fun part begins!</p><h3>Some assembly required</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TGIu56eNMJSrMQnPUd_Zcg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DBIf9Mhn7yTSsZcZLu-NqA.jpeg" /></figure><p>Not wanting to do half-baked things the first keyboard I built involved a lot of wiring and soldering. Like… a lot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*awkDOeD_32ktD_vydfyW6A.jpeg" /></figure><p>Discovering just about everything along the way, this made for a pretty painful experience. Inadequate wires, low clearance, bad planning. It took quite a few lunch time to get there but in the end it was very rewarding.</p><p>Third skill picked: basic electronic circuitry and soldering.</p><p>The second keyboard went much more smoothly and is way cleaner as a result.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HR9H-UJHceWwusXBROMVOw.jpeg" /></figure><h3>1, 2, …</h3><p>And here I am, with 2 hand made keyboards waiting for new keycaps (I thought Aliexpress taught me patience, group buys are a whole ‘nother level…).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5uuxPHH9g8Yq200doe7_Gw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*08UF9lEwpAC0FApWkF_92A.jpeg" /></figure><p>It was a fun and rewarding journey and I will probably experiment again with layouts, materials, switches, …. And while the skills picked are only tangentially related to my day to day work, they might help understanding a client’s problem or offer a solution a bit different than what most agencies can.</p><p>I took a lot of shortcut in this article, longer build logs for both keyboards can be found <a href="http://imgur.com/a/3ShJV">here</a> and <a href="http://imgur.com/a/I1RPC">here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e367ea10ae3a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Docker @ EPIC]]></title>
            <link>https://medium.com/epicagency/docker-epic-26042fd16211?source=rss-bc3eae164e29------2</link>
            <guid isPermaLink="false">https://medium.com/p/26042fd16211</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[agency]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Hugues]]></dc:creator>
            <pubDate>Tue, 03 Jan 2017 17:03:03 GMT</pubDate>
            <atom:updated>2017-01-03T17:05:39.466Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H_NoxPExSb3_0FHcy52ENA.png" /></figure><h3>Thou shall contain all your apps</h3><p>Unless you’ve been living under a rock you know that containers are all the rage now. Docker, rkt, lxc, … everybody’s using <a href="https://cloudplatform.googleblog.com/2016/09/bringing-Pokemon-GO-to-life-on-Google-Cloud.html">them</a>. And rightfully so. When correctly implemented, containers are a great way to isolate your services, install pre-configured applications (hello discourse!) and secure components of your stack without too much overhead.</p><p>There’s pro and cons obviously and for every success story you read, someone drowns in 1000 microservices and complains loudly about it. Often, what you hear is startups splitting their application or using containers to scale on thousands of servers at the flick of a cli’s prompt. Much less often do you hear web agencies using them and how.</p><p>That’s why I wanted to talk a bit about how we use Docker at EPIC and where we’re going with it.</p><h3>Before coming to the port</h3><p>We’ve had a pretty standard evolution regarding deployment, FTP^H^H^H hem no, not FTP, never…, rsync, then git and ssh. We stood quite a bit at this stage, push on a centralized server, pull on the production server, all was good, mostly because we were less than 5 at the time and most if not all deployments went through one person (usually me).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SVRb7YgOS9QvRdwgtL10vA.gif" /></figure><p>That worked, initial deployments were a bit of a PITA because it involved a lot of manual action (create a db, create a user, update nginx’s config, setup a deploy key).</p><p>Once we started to hire more developers and add more sites to our portfolio, the bottleneck of having only one or two people doing deployments was becoming too much so we looked at better solutions. We stumbled upon<a href="https://deploybot.com/"> DeployBot</a> which offered lots of ways to deploy but especially one: ssh where we could use our exact workflow, only automated.</p><p>That was much better and, beside the initial setup that was still on the two backends, all deploys could be done by anyone on the team.</p><p>There was still two issues:</p><ul><li>The assets</li><li>The first deploy</li></ul><p>Up to a couple months ago, how we deployed compiled assets was a bit messy. Since we had the full repository on the production server, assets were compiled live on deploy.</p><p>This has multiple problems, first that means we have to install everything needed to compile assets on every production server. That includes compilers for native extensions, full node/sass/ruby/whatever which, security-wise, is not so great.</p><p>Then, it implies that we also have to install dev dependencies for every projects and that can grow quickly (thanks JS developers!).</p><p>Finally, it prevents atomic deployments, while git updates are very fast and for our purpose virtually atomic, waiting for gulp to compile and move around stuff is definitely not, leaving the site in a broken state for up to a minute for complex [code].</p><p>And initial setup was still the work of a few people, hurting the planning and prone to errors and oversights.</p><h3>The boat has docked</h3><p>A few months ago we decided to have a second look at Docker. The tools had matured and more importantly, Docker had become a first class citizen in<a href="http://gitlab.org/"> Gitlab</a> so it was a natural fit since we had an instance for quite some time now.</p><p>We set aside a few days to work on proof of concepts and use cases for our workflow.</p><p>Surprisingly, it went very well and we had a working scheme in very little time.</p><p>What we found out during those days was that Docker allowed us to:</p><ul><li><strong>Have reproducible environments:</strong> a website deploy on staging would behave exactly the same in production because each and every files are the same;</li><li><strong>Deploy atomically:</strong> No more waiting for compiled assets, once pulled, a site is restarted with the new image in a matter of seconds, every time;</li><li><strong>Improve security:</strong> even if a website was compromised, there’s no way it can come close to another client’s files. Beforehand, we had to be very careful about permissions and users to ensure the best security possible;</li><li><strong>Simplify maintenance:</strong> instead of maintaining servers, users, tools and permissions we now have bare machines with only docker on it.</li></ul><h3>The shipyard</h3><p>So how we did it? Most containers stories deal with deploying the same service to many servers in many datacenters but our needs are pretty much the opposite: <strong>many different services (sites) once on few servers.</strong> What’s the point then?</p><p>Obviously, clustering tools are not very useful for us (too bad,<a href="http://kubernetes.io/"> kubernetes</a> looks really cool!) but that doesn’t mean that containers are not for agencies, far from it.</p><p>It starts with some CI tool, we use Gitlab CI but others like<a href="https://drone.io/"> Drone</a> or<a href="https://travis-ci.org/"> Travis</a> would certainly fit the bill. The CI is responsible for the following:</p><ul><li>Building the assets</li><li>Building an image out of the site</li><li>Publishing the image to a private registry</li><li>Pulling the image on a production server and restarting the site</li></ul><p>Depending on the technology used and the needs of the client, additional steps can be performed such as unit or integration testing.</p><p>So now we have solved the assets issue, on the production server (actually in the container) we only have the files needed to run the site, nothing more. But, almost for free, we also have solved the initial setup. Because of the way docker works, the first or the 100th deploy are basically the same operation, we just have to create a folder, which the CI does, for persistent files (uploads usually) and we’re good to go.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*9jf2l7tsEdRR8xkboPuQmw.gif" /><figcaption>Gitlab CI + Docker = ❤️</figcaption></figure><h3>Port city</h3><p>While I specifically described how we use Docker for deployments at EPIC, it is not, by far, the only usage we have for it. We actually went “all-in” with Docker, our development environment makes heavy use of containers for everything from exposing test sites to running gulp and providing databases instances to everyone.</p><p>We also install most, if not all, our internal services through Docker. Thanks to the kind maintainers of tools such as Gitlab, Sentry, Discourses and many others, installing large, complex app is mostly pain free and allows us to focus on building great experience for our customer.</p><h3>Sailing away</h3><p>While we are already happy how things turned out we still have some kinks to iron out. Some processes are a bit unstable and would benefit from a bit more work and we still have to truly implement “zero touch” deployments.</p><p>Zero-touch is especially important to us because we really want anyone at EPIC to be able to deploy a site from scratch, autonomously and with as little as possible configuration. That means provisioning a database, syncing files between environments, setting up HTTPS (this is almost completely transparent now thanks to <a href="https://letsencrypt.org/">Let’s encrypt</a> and <a href="https://traefik.io/">Traefik</a> but could be automated further) and possibly spinning a new VPS if needed.</p><p>By forcing us to rethink the way updates are done and “frozen” in an image we also now avoid dangerous shortcuts such as changing files on the production server or doing upgrades live. We are also much more conscious of what should and should not go in the final image and better understand the structure of the framework we use.</p><p>In the end, containers are a great way to publish website and not just application and while not everything is flowers and rainbows it has definitely improved the way we work at EPIC.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=26042fd16211" width="1" height="1" alt=""><hr><p><a href="https://medium.com/epicagency/docker-epic-26042fd16211">Docker @ EPIC</a> was originally published in <a href="https://medium.com/epicagency">epicagency</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>