I hereby claim:
- I am ronilaukkarinen on github.
- I am ronilaukkarinen (https://keybase.io/ronilaukkarinen) on keybase.
- I have a public key whose fingerprint is 8019 1A2F B62E AEED 70A1 8C28 0A20 4175 13C5 0A7D
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| # These commands will run on MacOS startup, cron @reboot | |
| # Quit Stand Up | |
| /usr/bin/osascript -e 'quit app "Stand Up"' | |
| # Reset Stand Up app settings | |
| /bin/rm -rf "/Users/rolle/Library/Containers/com.keenappsgroup.standapp" | |
| # Start Stand Up |
| [Unit] | |
| Description=RuuviCollector | |
| After=influxd.service | |
| [Service] | |
| Type=simple | |
| ExecStart=/usr/bin/java -jar /home/rolle/RuuviCollector/target/ruuvi-collector-0.2.jar | |
| Restart=always | |
| User=root |
Flood uses df -T in server/util/diskUsageUtil.ts where it defines the disks in use. However, I have a box that has a jail and df is useless as it shows all other filesystems we don't use in our jail. Users have to use quota to get their own data usage on their space.
As quota uses different format than df it's not enough to just change the command. We also need more arguments to get all data in the same line:
$ quota -w --show-mntpoint
Disk quotas for user rolle (uid 1020):
Filesystem blocks quota limit grace files quota limit grace
/dev/sdb1 /home2 1059357988 3905945600 3905945600 266012 0 0 | # Save this file to: | |
| # C:\Scripts\winget-update-check.ps1 | |
| Write-Host "Checking for package updates..." -ForegroundColor Cyan | |
| winget upgrade | |
| $answer = Read-Host "`nDo you want to update all packages now? (Y/N)" | |
| if ($answer -match "^[Yy]$") { | |
| winget upgrade --all | |
| } else { | |
| Write-Host "Skipping updates." -ForegroundColor Yellow |