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
| #!/usr/bin/env python3 | |
| """ | |
| HuggingFace Dataset Column Extractor | |
| Extracts specified columns from any HuggingFace dataset and saves to CSV. | |
| """ | |
| import requests | |
| import csv | |
| import argparse | |
| import sys |
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 | |
| # Ensure the script exits if any command fails | |
| set -e | |
| # Set locale to handle special characters properly | |
| export LC_ALL=en_US.UTF-8 | |
| export LANG=en_US.UTF-8 | |
| # Configure Git to handle long paths and disable quote paths for better readability |
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
| # See https://learn.microsoft.com/en-us/windows/package-manager/winget/#install-winget-on-windows-sandbox | |
| # This script is a slight adjustment to the one below (copied from above link) | |
| <# | |
| $progressPreference = 'silentlyContinue' | |
| Write-Host "Installing WinGet PowerShell module from PSGallery..." | |
| Install-PackageProvider -Name NuGet -Force | Out-Null | |
| Install-Module -Name Microsoft.WinGet.Client -Force -Repository PSGallery | Out-Null | |
| Write-Host "Using Repair-WinGetPackageManager cmdlet to bootstrap WinGet..." | |
| Repair-WinGetPackageManager | |
| Write-Host "Done." |
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
| # Example Usage: | |
| # Send-Notification -Title "Hello World" -Message "This is a test notification." | |
| # Send-Notification -Title "Custom AppId Example" -Message "Using a custom AppId." -AppId "MyCustomAppId" | |
| Function Send-Notification { | |
| param ( | |
| [string]$Title, | |
| [string]$Message, | |
| [string]$AppId # Optional, no default value | |
| ) |
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
| ### Microsoft Visual C++ Redistributable Installation Script: Install-VCRedist.ps1 ### | |
| # Define download URLs for both x64 and x86 versions | |
| $vcRedistUrls = @{ | |
| "x64" = "https://aka.ms/vs/17/release/vc_redist.x64.exe" | |
| "x86" = "https://aka.ms/vs/17/release/vc_redist.x86.exe" | |
| } | |
| # Define directory to store installers temporarily | |
| $installerDir = "C:\Users\WDAGUtilityAccount\Desktop\VCRedistInstallers" |
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
| <Configuration> | |
| <VGPU>Enable</VGPU> | |
| <Networking>Enable</Networking> | |
| <LogonCommand> | |
| <Command>powershell.exe -NoProfile -ExecutionPolicy Bypass -Command " | |
| curl.exe -L -o $env:TEMP\Controller.ps1 https://gist.github.com/act-lilly/0651a86eacb4c54af2d9e3c7714bfcb8/raw/7294f1e267ed6c2e4c00ea0625aa2c5d8e32001e/wsb_controller.ps1; | |
| powershell.exe -File $env:TEMP\Controller.ps1; | |
| [System.Environment]::SetEnvironmentVariable('Path', [System.Environment]::GetEnvironmentVariable('Path', 'Machine') + ';' + [System.Environment]::GetEnvironmentVariable('Path', 'User'), 'Process'); | |
| curl.exe -L -o $env:TEMP\e2m.ps1 https://gist.github.com/act-lilly/7cddfc072edf30017465f6bd4df3112a/raw/2e4e0ffb4a68c7ebcc0fc72f705ae5e789ce90f3/install_and_run_e2m.ps1; | |
| powershell.exe -File $env:TEMP\e2m.ps1"</Command> |
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
| # Install Poetry if not already installed | |
| pip install poetry | |
| pip install git+https://github.com/wisupai/e2m.git --index-url https://pypi.org/simple | |
| # Clone the repository to the user's Desktop | |
| $desktopPath = Join-Path $env:USERPROFILE 'Desktop' | |
| $repoPath = Join-Path $desktopPath 'e2m' | |
| if (Test-Path $repoPath) { | |
| Write-Host "Directory already exists. Removing and recloning..." -ForegroundColor Yellow |
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
| ### Python Installation Script: Install-Python.ps1 ### | |
| # Retrieve release version from environment variable or use default | |
| $pythonVersion = if ($env:PYTHON_VERSION) { $env:PYTHON_VERSION } else { "3.12.8" } | |
| # Define download URL | |
| $pythonUrl = "https://www.python.org/ftp/python/$pythonVersion/python-$pythonVersion-amd64.exe" | |
| # Define path for installer | |
| $pythonInstallerPath = "C:\Users\WDAGUtilityAccount\Desktop\PythonInstaller.exe" |
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
| # Define the list of scripts to download and execute | |
| $scripts = @( | |
| @{ | |
| Name = "Install Visual C++ Redistributable" | |
| Url = "https://gist.github.com/act-lilly/bb6bb14083974fb292c1af49d1ef1d4f/raw/185eaa7e7014ca530714e3d911cdb7757c983d8c/install_ms_visual_c_plus_plus_redistr.ps1" | |
| Path = "C:\Users\WDAGUtilityAccount\Desktop\install_visual_c++_redistributable.ps1" | |
| BitPosition = 1 # Binary: 0001 | |
| }, | |
| @{ | |
| Name = "Install Git" |
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
| ### Git Installation Script: Install-Git.ps1 ### | |
| # Retrieve release version from environment variable or use default | |
| $gitVersion = if ($env:GIT_VERSION) { $env:GIT_VERSION } else { "2.48.0" } | |
| # Define download URL | |
| $gitUrl = "https://github.com/git-for-windows/git/releases/download/v$gitVersion-rc0.windows.1/Git-$gitVersion-rc0-64-bit.exe" | |
| # Define path for installer | |
| $gitInstallerPath = "C:\Users\WDAGUtilityAccount\Desktop\GitInstaller.exe" |
NewerOlder