mzimmerm bookmarks: command - page: 1urn:uuid:{378FE346-74B3-E52C-3C7B-F5B54C51BF7B}2024-03-29T07:59:56Zbash - How can I fetch VRAM and GPU cache size in Linux? - Stack Overflow14898382024-03-07T03:42:36ZZIf you have AMD GPU as I do then you can grab PCI ID for the device with lspci command executed with -D flag (shows PCI doamin) and read the following file cat /sys/bus/pci/devices/${pci_slot}/mem_info_vram_total, it contains GPU VRAM size in bytes.1821mzimmermAssigning default values to shell variables with a single command in bash - Stack Overflow14893362024-01-20T01:13:41ZZ1821mzimmermbackup - rsync delete folders from destination if does not exists in source - Super User14889342023-12-26T07:18:59ZZ1821mzimmermHow do you pass arguments from command line to main in Flutter/Dart? - Stack Overflow14205802023-05-31T03:51:25ZZThe correct way: flutter run -d linux --dart-entrypoint-args 'arg1 arg2' file_with_main.dart => main(List args) => args[0]=arg1, args[1]=arg2
The workaround: flutter run -d linux --dart-define=PSEUDO_ARGS='arg1 arg2' file_with_main.dart => In main, use args=String.fromEnvironment('PSEUDO_ARGS').split(' ') => args[0]=arg1, args[1]=arg21821mzimmermlinux - Where can I set environment variables that crontab will use? - Stack Overflow12942872022-11-12T21:56:02ZZIn cron, use
```
0 * * * * bash -l -c 'sh /my/script.sh'
```
The -l makes bash act as login shell - that is, read the owner's ~/.bash_profile (which generally reads .profile)1821mzimmermupdate-service — AWS CLI 1.27.5 Command Reference12942312022-11-09T15:48:12ZZCommand can be used to set desired_count, max_count, etc, on a service. Something like: aws ecs --cluster=goosepilot list-services; aws ecs --cluster=goosepilot update-service --service=“arn:aws:ecs:us-east-2:823978586159:service/goosepilot/goosepilot“ --desired-count=01821mzimmermSystem Recovery and Snapshot Management with Snapper | Administration Guide | SUSE Linux Enterprise Server 12 SP412869732022-10-08T03:22:07ZZ1821mzimmermHow To Use set and pipefail in Bash Scripts on Linux10623962022-03-18T04:28:23ZZ1821mzimmermZsync – File transfer utility to download only new parts of a file | FOSS Linux9863222022-01-16T01:48:38ZZ1821mzimmermUsing xargs in Combination With bash -c to Create Complex Commands9591212021-12-07T18:30:06Z2022-02-20T10:47:11ZShows how to build super complex useful command pipes easily with xargs1821mzimmermRsync: Good description.9588752021-12-01T01:13:18ZZDescribes the default behavior is to force target system to be the same as source system.1821mzimmermtldr pages clients · tldr-pages/tldr Wiki · GitHub9588062021-11-25T16:53:58Z2021-11-25T09:02:33ZAll TLDR clients. I use tealdeer (written in rust, zypper in tealdeer)1821mzimmermHow To Partition and Format Storage Devices in Linux | DigitalOcean7703782021-08-27T18:40:54ZZ1821mzimmermPartition like a pro with fdisk, sfdisk and cfdisk - Linux-natives7703772021-08-27T18:40:08ZZ1821mzimmerm