Better HN
topnewbestaskshowjobs
Log inSign up

0x00101010

-2 karma · joined Jan 14, 2019 (7y ago) · 14 submissions

Submissions

comment 3y ago · link · parent

I personally use bwrap, mainly for a chroot on steroids and to encapsulate things strictly (e.g. unshare namespaces) rather than profiles. In addition to more persistent "wraps" (e.g. ff may write to a wrap-specific XDG_DOWNLOAD_DIR) I have an "empty" profile (including some extensions) to fire up in a pure ramfs wrap. That allows to keep my disk clean, to separate customers from each other, to separate work from personal browsing, and in terms of development/debugging to ignore cache- related issues.

That's not very convinient though.

comment 3y ago · link · parent

zsh, nvim, fzf -- These things drive my daily everything. I'd pay if that wasn't all FOSS.

comment 3y ago · link · parent

Treat git directories, recursively. Is especially like the fact that I can use it together with git aliases, e.g. I use this at least once a (working) day like `gr -b /path/to/customer/git/repos fap` (--fetch --all --prune).

  #!/usr/bin/env bash

  set -o errexit
  set -o nounset

  usage(){
    printf "[TRACE=...] %s [-b /path/to/clones/root] (%s/w) -- <git commands/options>\n" "${0##*/}" "$HOME"
  }

  if [[ -n "${TRACE-}" ]]; then
    set -o xtrace
  fi

  trap 'set +o xtrace' ALRM HUP INT TERM EXIT

  : "${GIT_BASE:=$HOME}"
  while getopts b:h OPT; do
    case "$OPT" in
      b) GIT_BASE="$OPTARG";;
      h) usage; exit 0;;
      *) ;;
    esac
  done
  shift $(( OPTIND - 1 ))

  while read -r REPO; do
    [[ -d "$REPO"/.git ]] || continue
    [[ "$REPO" =~ \.terraform\/modules ]] && continue

    tput setaf 8
    printf "%s … %s\n" "$REPO" "$( git -C "$REPO" config --local --get remote.origin.url )"
    tput sgr0
    if [[ $# -eq 0 ]]; then
      git -C "$REPO" status -sb
    else
      git -C "$REPO" "$@"
    fi
    printf "\n"
  done < <( fd --one-file-system --type d . "$GIT_BASE" )

comment 3y ago · link · parent

Today it's a feature. Tomorrow it becomes mandatory by law. Loosing freedom with a big bang and a hole lot of happy people because they cannot compute. There is nothing good about things like that, at least on the long run.

comment 4y ago · link · parent

Have the same question for the weekend. I'll give him mini gold bars, like 1 gram. For his retirement!

comment 4y ago · link · parent

https://github.com/kamiyaa/joshuto in favor of nnn.

comment 4y ago · link · parent

And another one, because I've read ncdu so much. dua is very nice as well.

comment 4y ago · link · parent

Because no one mentioned it. procs. I love it as ps/top replacement.

comment 6y ago · link · parent

Qwant is Springer. Springer is the company that tries to blackmail google and all others by lobbying into EU law (article 17, former 13) fighting a free and open internet. I don't know which is worse. Springer is the german Apple in terms of privacy.

comment 6y ago · link · parent

man gitworkflows

comment 7y ago · link · parent

With Z-Shell git aliases have tab completion which is really nice. My workflow often involves something like

  g fp # git fetch --prune
  ...
  g rb origin/master master # rebase
  g co -
A lot of tab and very few keys in general when working with git.

My favorite aliases in this context are

  alias wow=git
  alias such=git
  alias many=git
  alias awesome=git
  alias much=git

comment 7y ago · link · parent

git aliases is best done with git itself, e.g. my favorite git alias is `git alias`, which lists all my git aliases.

  alias.alias config --global --get-regexp ^alias
I really like blameconflict:

  alias.blameconflict blame -L '/^<<<</,/^>>>>/'