This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # ============================================================================ | |
| # BULK AVATAR UPDATER SCRIPT | |
| # ============================================================================ | |
| # | |
| # PURPOSE: | |
| # This script automates the process of updating user avatars in an eXo Platform | |
| # instance by uploading image files from the current directory. Each image file's | |
| # name (without extension) is treated as a username, and the image is set as |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import urllib.request | |
| import json | |
| # ⚠️ Replace this with your GitHub personal access token (must include notifications scope) | |
| GITHUB_TOKEN = "your_personal_access_token_here" | |
| BASE_URL = "https://api.github.com" | |
| HEADERS = { | |
| "Authorization": f"Bearer {GITHUB_TOKEN}", | |
| "Accept": "application/vnd.github+json", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function Send-UdpDatagram | |
| { | |
| Param ([string] $EndPoint, | |
| [int] $Port, | |
| [string] $Message) | |
| $IP = [System.Net.Dns]::GetHostAddresses($EndPoint) | |
| $Address = [System.Net.IPAddress]::Parse($IP) | |
| $EndPoints = New-Object System.Net.IPEndPoint($Address, $Port) | |
| $Socket = New-Object System.Net.Sockets.UDPClient |