Trying to use Puppeteer and Chromium in AWS Lambda is not as easy as it may seem. So after doing some research, I decided to share my experience here.
Hopefully this guide will help you build your own serverless screenshot function and teach you something new in the process!
Read More Serverless Puppeteer with AWS Lambda Layers and Node.js
One of my goals for 2020 is to get back to writing. So here we go again.
Read More hiatus().then(…
I was tailing a logfile and I wanted to colorize some specific keywords in it. I found Andreas Schamanek’s mycolorize which serves perfectly for the purpose. Download it and use it by doing $ tail logfile | ~/mycolorize color ‘regexp’ You can check additional examples and documentation on the website.
Read More Colorized tail
If Terminator keybindings with Ctrl-something are not working for you, it’s due to a bug. Until it is fixed, you can edit your ~/.config/terminator/config and replace <Primary> by <Ctrl>.
Read More Issue with Terminator keybindings in Ubuntu 12.04
I had to clone a remote MySQL database into my Ubuntu notebook, and I just felt like doing a one-liner for it. $ mysqladmin -f -uroot create sandbox && ssh email@example.com “mysqldump -uroot sandbox | gzip -f” | gunzip | mysql -uroot sandbox
Read More Clone-a-database one-liner
In several occasions I find myself catting some file and then having to select the entire text with the mouse. If I want to keep my hands on the keyboard, I have to do a vim file, ggVG, “+y, :q. Well, I found a way to do it faster and nicer simply by piping to […]
Read More Sending data to the clipboard from command line
You like Scala. You like programming. You like vim. You are happy. Here’s the 2-line solution to increase your happiness even more: cd ~/.vim svn export –force http://lampsvn.epfl.ch/svn-repos/scala/scala-tool-support/trunk/src/vim . And there you go, nice indent and syntax highlighting support for Scala. Massive thanks to Nico “@nfmelendez” Meléndez for pointing this excellent package!
Read More Enhancing vim for Scala