← Înapoi la Urmăritori

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 114
  1. (Update 2020-03-01: there’s a better way to do this, see below) Situation You’ve been working on a (Git) branch and you need to generate the list of files modified on that branch.

  2. Comments on the Command-Line

    Bulgarian Translation, thanks to Zlatan.

  3. The Best Books I Read in 2019

    I have read many books in 2019; let’s forget most and talk about the good ones.

  4. What Exec Does in Shell Scripts

    If you think the answer is: The exec() family of functions replaces the current process image with a new process image. you are only partially right… That’s only true if you don’t redirect: Redirections are a special case, and exec does not destroy the cu…

  5. Up your Go Game with golangci-lint

    Another linter?

  6. QR Codes on the Command-Line

    Why QR codes?

  7. There are multiple scenarios where removing empty lines might be necessary: reformatting source code cleaning up some data simplifying command-line output … but what’s the easiest way of automating this?

  8. Go Slice Gotcha

    Go is, mostly, a straightforward and unsurprising language.

  9. Watch ANY Video Faster

    Azerbaijanian Translation, thanks to Amir.

  10. tmux Synchronized Panes

    tmux can send the text you type to multiple panes: (screenshot source) Even though I’ve used tmux for years, I never realized that it could do that until my colleague (thanks @laurence_man!)

  11. Automatically Show Exit Codes in Bash

    When software stops running, it produces an exit code.

  12. Dealing with Large Files in Vim

    Vim is fast, that’s one of its main selling points.

  13. The Best Books I Read in 2018

    I have read many books in 2018; some good and some not so good.

  14. The Family Emoji

    I was reading Impatient JS and came up on a surprising part: > ...['👨‍👩‍👦'] [ '👨', '‍', '👩', '‍', '👦' ] // cool: man, woman, and boy emojis... but when my friend Jordan tried it: > [...'👪'] [ '👪' ] What… why?!

  15. JavaScript tooling: prettier

    Prettier is an awesome code formatter.

  16. JavaScript tooling: madge

    In large projects, the way files depend on each other is not always clear.

  17. The chances to find a JavaScript project with all dependencies correct and up-to-date is almost zero.

  18. This isn’t your code or project: you git clone and step into the directory… Where do you start?

  19. 8 Years of Reading, Visualized

    The Data I’ve been keeping track of what I read for years.

  20. Mocha and Istanbul in 5 minutes

    Who is this for?

  21. Why?

  22. The Best Books I Read in 2017

    I have read many books in 2017, but it wasn’t all good.

  23. Throwaway MySQL Servers with Docker

    MySQL without the Mess Sometimes, I need MySQL1 but: I don’t want to install MySQL on macOS (homebrew or otherwise).

  24. Reject Summary Statistics

    A summary statistic is what you get when you reduce a bunch of numbers down to a single number: # the heights of 10 people you know (cm): 180 175 165 176 183 173 186 175 180 181 # the "average" of those heights: 177.4 But it doesn’t have to be the mean,…

  25. Bash Aliases, Functions and Commands

    The first thing you type on a command-line is either an alias, a function or a command.

  26. SKIP grep, use AWK

    Over the years, I’ve seen many people use this pattern (filter-map): $ [data is generated] | grep something | awk '{print $2}' but it can be shortened to: $ [data is generated] | awk '/something/ {print $2}' You (probably) don’t need grep Following this l…

  27. From iptables to UFW: 5 things to note

    When I migrated a droplet from Ubuntu 14.04 to 16.04, the tutorials clearly implied that I should use UFW.

  28. Handling Broken JSON with jq

    Problem $ cat broken.json { "color": "red" } { "color": "green" { "color": "blue" } There’s a missing } after green. $ cat broken.json | jq . { "color": "red" } parse error: Expected separator between values at line 6, column 1 When jq hits invalid JSON,…

  29. Problem Solving with MiniZinc

    It all started with this banner; a course recommendation on Coursera: How can you say “no” to that?

  30. Get Your Last Downloaded File

    Mac software is setup to receive files in ~/Downloads.

  31. Untangling Your Homebrew Dependencies

    Does this look familiar?

  32. The Best Books I Read in 2016

    I have read many books in 2016, but it wasn’t all good.

  33. 10 Pages a Day

    Russian Translation, thanks to Angelina.

  34. My Best Awk Tricks

    This is a wrap-up of my AWK tutorial series.

  35. Awk Tutorial, part 3

    I already mentioned why you should learn AWK.

  36. Awk Tutorial, part 2

    I already mentioned why you should learn AWK.

  37. Awk Tutorial, part 1

    I already mentioned why you should learn AWK.

  38. Why Learn AWK?

    Because of the arcane syntax?

  39. The Partition Problem

    Update (November 12, 2021): Apparently, I’m not the only person who has ever stumbled into this problem and wondered if there was a better way.

  40. The Best Books I Read in 2015

    I have read many books in 2015, but it wasn’t all good.

  41. Sending HTML to Mailgun with cURL

    I used to run Postfix and have it send my emails through Mailgun, mostly for the reasons explained in The Hostile Email Landscape.

  42. Shuffling How do you shuffle on the command-line?

  43. Wrapping Command-Line Tools

    Let’s say you want to improve cd: after cd, print the current directory given a filename, cd to the directory containing the file Here’s something that won’t work: cd() { # check if path is a file, etc cd "$dest" # print pwd } The problem is that cd…

  44. Statistics: How Many Would You Check?

    Russian Translation, thanks to Vlad.

  45. Inverse Globbing

    It felt like a command-line blind spot: is it possible to invert a glob?

  46. Watch YouTube Faster

    Swedish Translation, thanks to Eric.

  47. Have you ever done this?

  48. type -a

    I mentioned previously that which -a is what you want to use to find what command you’re about to run.

  49. One-liner Bash Functions

    Here’s a problem: $ grep something file If you’re going to search for different strings, repeatedly, what you really want is for “something” to be the last argument.

  50. Warp

    I write software for myself.