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 firstname.lastname@example.org “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
I’ve been playing with an experimental UI for avoiding the NASCAR problem. The main idea is to be more open in the expected input from the user. Nowadays we have several popular identities we use in business cards, e-mail signatures, presentation slides, etc. Depending on what I do like the most, and probably depending on […]
Read More A “did you mean” alternative to the NASCAR problem
I have enough of heavyweight, sometimes cluttered IDEs. I don’t know, maybe I’m getting too old-school or something, but I find myself working faster with plain old vim. Of course, over time I have been optimizing the editor with the addition of several plugins and customization of its settings. Here is my current vim setup […]
Read More Enhancing vim as an HTML/JS/CSS/PHP editor
I’m not the typical Linux one-linerd, but there are some that I find very useful. Why execute 3 commands to download a tar.gz file, extract its contents and delete the archive, when actually there’s no need to store the archive physically (you only care about its contents) and you could save one command in the […]
Read More One-liner for downloading and extracting a tar.gz