Email or username:

Password:

Forgot your password?
17 posts total
Show previous comments
Jan Steinman

@b0rk_reruns

Wait! It gets better!

On MacOS, you also have access control lists AND extended attributes! (GAG!)

NumberDoctor

@b0rk_reruns I’ve been on Unix/linux systems since my early 20s AND I still need to look up the permissions commands. Thank you for this.

ah
@b0rk_reruns there's no need for 644, just use chmod u=rw,go=r foobar.txt ... You can even do relative changes like chmod u+r foobar.txt ... No need to mess your brain up with manually thinking of bits.
Eli the Bearded

@b0rk_reruns

Each section has an intro page. Different systems may have different numbers for sections. "man 2 intro" "man 4 intro", etc

Tim Ward ⭐🇪🇺🔶 #FBPE

@b0rk_reruns ... leading to the age-old question "why is this the only system on which the help command isn't spelled h-e-l-p?"

DamonHD

@b0rk_reruns Someone really needs to explain Cache-Control max-age and If-Modified-Since to whoever looks after pulling in podcast feeds at #Apple and #Amazon and #Spotify!

earth.org.uk/RSS-efficiency.ht

Show previous comments
LisPi
@b0rk_reruns @indigoparadox There are some added rules about conditional dispatch for set -e, but they themselves perserve the general hackiness of bash.
Johannes Schnatterer

@b0rk_reruns
I use
set -o errexit -o nounset -o pipefail
Because it is easier to understand.
Also, it took me ages to remember which option is which option is which and `set -eu` is not very intuitive.

patter

@b0rk_reruns if you're scripting rather than tapping raw bash into the terminal, this should give the same behaviour

"#!/bin/bash -e -u -o"

Show previous comments
odefey

@b0rk_reruns ctrl-u deletes backward until beginning of line,

𝚟𝚘𝚒𝚍 *

@b0rk_reruns I also use `Ctrl+U` a lot to clear the current input.

It works great, specially if you misstype a password field and want to start over, which happens to me quite often.

𝚟𝚘𝚒𝚍 *

@b0rk_reruns Also, having these:

## arrow up
"\e[A":history-search-backward
## arrow down
"\e[B":history-search-forward

In your `~/.inputrc` file makes it very easy to use history search on the current input and it's very intuitive. I will write `git` and hit the up and down arrows to navigate the git command history, for instance.

askubuntu.com/questions/59846/

@b0rk_reruns Also, having these:

## arrow up
"\e[A":history-search-backward
## arrow down
"\e[B":history-search-forward

In your `~/.inputrc` file makes it very easy to use history search on the current input and it's very intuitive. I will write `git` and hit the up and down arrows to navigate the git command history, for instance.

Julia's Reruns Bot

oh shit! I did something terribly wrong, does git have a magic time machine?

Permalink: wizardzines.com/comics/oh-shit

sirlan

@b0rk_reruns@social.jvns.ca "so I put version control in your version control, so you can control the version of your version control"

Show previous comments
seeker

@b0rk_reruns having an explainer that shows "explain plan" for a sample query could be a logical follow up. One could argue that it's too complex for your audience. But you have the skill to present complex things in a way people can actually understand.

Stephen Belcher-Saunders

@b0rk_reruns the ORM I use allows composing query concepts in any order technically, but in practice it almost always starts from a "from" base concept (like, DV[:some_table] is "SELECT * FROM some_table", but filtering with WHERE and only some cols could be DB[:some_table].filter(some_col: 'value').select(:col1, :col2)). Might be one of the unconscious reasons I like it, since it maps to this better mental model of building SQL statements

dharris

This is syntax that rdbms clients could support. It’d also help with column name completion if you start with FROM.

Go Up