21 Matching Annotations
  1. May 2020
    1. Changing a user’s default Shell to bash v5

      The only way that setting bash v5 works after installing with homebrew

    1. function foo { local -n data_ref=$1 echo ${data_ref[a]} ${data_ref[b]} } declare -A data data[a]="Fred Flintstone" data[b]="Barney Rubble" foo data

      best way to pass associative arrays as function argument in bash

    1. Use VirtualBox’s Port Forwarding Rules window to forward ports. You don’t have to specify any IP addresses – those two fields are optional.

      Port forwarding from the host to the guest in VirtualBox

    1. break : . continue eval exec exit export readonly return set shift trap unset

      special built-ins in bash. reserved words.

  2. Apr 2020
    1. git commit --amend --author="John Doe <john@doe.org>"

      Update the author for a git commit

    1. $ docker network inspect my-bridge-network

      CORRECTION $ docker network connect my-bridge-network phpmyadmin