Warning
This is being written as of 2025/04/05 18:45:00 UTC
Discord updates fast, so this could break !
| #!/bin/bash | |
| # Go To https://gitlab.com/-/user_settings/personal_access_tokens and create a token with the API permissions | |
| TOKEN="PERSONAL_ACCESS_TOKEN" | |
| GROUP_IDS=("GROUP_ID_1" "GROUP_ID_2") | |
| BASE_API_URL="https://gitlab.com/api/v4/groups" | |
| # Check if TOKEN is still set to the default value | |
| if [[ "$TOKEN" == "PERSONAL_ACCESS_TOKEN" ]]; then | |
| echo "ERROR: Please edit this script to set the Access Token" |
| (Get-Item (Read-Host "Enter the file name")) | % { "Name: $($_.Name)`nSize: $($_.Length) bytes ($([math]::Truncate($_.Length / 1MB)) MiB)`nSHA256: $((Get-FileHash -Path $_.FullName -Algorithm SHA256).Hash.ToLower())`nSHA1: $((Get-FileHash -Path $_.FullName -Algorithm SHA1).Hash.ToLower())" | Tee-Object -Variable output | Set-Clipboard; Write-Output $output } |