TIL - Bash Shift

Posted on Mon 28 September 2020 in TIL

In `bash`, use `shift` to reassign positional arguments.

For example:

```bash $1 $2 $3 ```

Would become

```bash $1 matches old $2 $2 matches old $3 ```


TIL - Git Rebase

Posted on Mon 28 September 2020 in TIL

In git, during rebase, ours and theirs are reversed. `theirs` is actually the current branch in the case of rebase.


TIL - How to match python regex postgis

Posted on Mon 28 September 2020 in TIL

Use `(.*)` for matching groups in Python regexes.