Skip to content

Commit

Permalink
Removed readonly from basedir snippet to avoid SC2155
Browse files Browse the repository at this point in the history
  • Loading branch information
dmotte committed Nov 14, 2024
1 parent cc2eebc commit 9e1b77e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snippets/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Some pieces of code I find useful for some reason.
- `curl -fLO https://...`, `curl -fLo target.zip https://...`
- `curl -I https://example.com/`, `curl -i https://example.com/`
- `top` and then press `xcV`. Then `W` to save the config
- `cd "$(dirname "$0")"` or `readonly basedir="$(dirname "$0")"`, useful in a _Bash_ script
- `cd "$(dirname "$0")"` or `basedir="$(dirname "$0")"`, useful in a _Bash_ script
- `sudo blkid`
- `ffmpeg -i input.mp4 -ss 97 -t 10 output.mp4`
- `ffmpeg -i input.jpg -vf 'scale=iw*1/2:ih*1/2' output.jpg`
Expand Down

0 comments on commit 9e1b77e

Please sign in to comment.