When I was working on a Terminal, I used to type lots of cd and cd .. to go back and forth the directory. Too often, when I went to deep into the directory hierarchy, I got to type multiple times cd .. just to move up to parents, or a long command like cd … Continue reading Goes back quicker in Terminal
Category: journal
Less well-known uses of curl
When it comes to make HTTP calls, I always use curl as it is a ubiquitous tool for the job. Today, I discover that I can use curl for some other tasks. copying files curl supports the FILE protocol (file:/), therefore it is possible to "download" a file: $ curl file:/path/to/some/large/file -o /the/destination/file % Total … Continue reading Less well-known uses of curl
Convert Git to Git LFS
There are some Git repositories in the company contain mostly binary files (Words, Excel, PDFs, etc). As Git is not designed to track binary files effectively, eventually the repository ends up pretty large (over 2GB) and will become a PITA on git clone. In order to effectively solves this, switching a regular Git to Git … Continue reading Convert Git to Git LFS
TIF – Powerful SSH #1
Recently, I discovered that SSH have some wonderful features and usages that I didn't know before. Faster copying directories with rsync via SSH When it comes to copying files back and forth to a remote server, I usually go for scp. scp even supports to copy a whole directory: Not until recently, a colleague of … Continue reading TIF – Powerful SSH #1
Morning 28.9
Tweeted an article written by Digg Engineers about how they migrated one of their modules from Node.js to Golang. Their result was a success. The article gave a very detailed analysis why Node.js did not meet their needs anymore. It also mentioned that the performance of the module was increased a lot. However, they stated … Continue reading Morning 28.9