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
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
Sending Messages to Yourself on Skype
I always like a simple feature in Slack that you can chat with yourself to store notes, links, files or your own reminders. Despite that fact that I use it most of the time, this feature doesn't exist in Skype, and I really hate it. Turns out there is a simple trick to do it … Continue reading Sending Messages to Yourself on Skype