Creează un cont pentru a te abona la acest blog și a-i urmări articolele pe pagina Lectură.
-
(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.
-
Bulgarian Translation, thanks to Zlatan.
-
I have read many books in 2019; let’s forget most and talk about the good ones.
-
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…
-
Another linter?
-
Why QR codes?
-
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?
-
Go is, mostly, a straightforward and unsurprising language.
-
Azerbaijanian Translation, thanks to Amir.
-
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!)
-
When software stops running, it produces an exit code.
-
Vim is fast, that’s one of its main selling points.
-
I have read many books in 2018; some good and some not so good.
-
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?!
-
Prettier is an awesome code formatter.
-
In large projects, the way files depend on each other is not always clear.
-
The chances to find a JavaScript project with all dependencies correct and up-to-date is almost zero.
-
This isn’t your code or project: you git clone and step into the directory… Where do you start?
-
The Data I’ve been keeping track of what I read for years.
-
Who is this for?
-
Why?
-
I have read many books in 2017, but it wasn’t all good.
-
MySQL without the Mess Sometimes, I need MySQL1 but: I don’t want to install MySQL on macOS (homebrew or otherwise).
-
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,…
-
The first thing you type on a command-line is either an alias, a function or a command.
-
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…
-
When I migrated a droplet from Ubuntu 14.04 to 16.04, the tutorials clearly implied that I should use UFW.
-
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,…
-
It all started with this banner; a course recommendation on Coursera: How can you say “no” to that?
-
Mac software is setup to receive files in ~/Downloads.
-
Does this look familiar?
-
I have read many books in 2016, but it wasn’t all good.
-
Russian Translation, thanks to Angelina.
-
This is a wrap-up of my AWK tutorial series.
-
I already mentioned why you should learn AWK.
-
I already mentioned why you should learn AWK.
-
I already mentioned why you should learn AWK.
-
Because of the arcane syntax?
-
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.
-
I have read many books in 2015, but it wasn’t all good.
-
I used to run Postfix and have it send my emails through Mailgun, mostly for the reasons explained in The Hostile Email Landscape.
-
Shuffling How do you shuffle on the command-line?
-
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…
-
Russian Translation, thanks to Vlad.
-
It felt like a command-line blind spot: is it possible to invert a glob?
-
Swedish Translation, thanks to Eric.
-
Have you ever done this?
-
I mentioned previously that which -a is what you want to use to find what command you’re about to run.
-
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.
-
I write software for myself.