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 | |
| TEAMS=kbteams.txt | |
| for unwanted_team in $( | |
| keybase team list-memberships | cut -f 1 -d ' ' | tail -n +2 | grep -v -f <(awk '{print "^" $0 "$"}' $TEAMS) | |
| ) | |
| do | |
| echo Leaving team $unwanted_team | |
| keybase team leave $unwanted_team |
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
| $ErrorActionPreference = "Stop" | |
| try { | |
| $SaveFolder = ((Get-ChildItem $ENV:APPDATA\SpaceEngineers\Saves | Where-Object -Property Name -NE 1234567891011 | Get-ChildItem -Directory | Out-GridView -PassThru -Title "Please select a save game")[0]).FullName | |
| [xml]$Sandbox = Get-Content "$SaveFolder\Sandbox.sbc" -Encoding UTF8 | |
| $BackupName="Sandbox_Backup_$(Get-Date -Format "yyyy-MM-dd_hh-mm-ss").sbc" | |
| Write-Host "Fixing container in saved game: $($Sandbox.MyObjectBuilder_Checkpoint.SessionName)" | |
| Write-Host "Renaming current Sandbox.sbc file to Sandbox_Backup_$(Get-Date -Format "yyyy-MM-dd_hh:mm:ss").sbc" | |
| Rename-Item "$SaveFolder\Sandbox.sbc" "$SaveFolder\$BackupName" | |
| $Sandbox.MyObjectBuilder_Checkpoint.SessionComponents.MyObjectBuilder_SessionComponent.PlayerData.PlayerContainerData | ForEach-Object -Process {$_.Active="true"} | |
| $Sandbox.Save("$SaveFolder\Sandbox.sbc") |
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 | |
| # NO CHECKING, NO WARRANTY. | |
| # Don't run this blindly, that would be moronic. Check nuget package versions and Steam paths. | |
| # Also, don't check in any of the changes to Git. Malware will glare at you. | |
| # Install Rider and .NET | |
| sudo snap install rider --classic | |
| sudo add-apt-repository ppa:dotnet/backports | |
| sudo apt-get update && sudo apt-get install -y dotnet-sdk-9.0 | |
| # I didn't do this, but Mdk.CheckDotNet did look like it would need it. Weird. |
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
| param ( | |
| [Parameter(ParameterSetName='Preset')][string]$BlueprintFolder, | |
| [Parameter(ParameterSetName='Preset')][ValidateSet('Gray','Red','Green','Blue','Yellow','DarkWhite','Black', | |
| 'LightGray','LightRed','LightGreen','LightBlue','LightYellow','White','LightBlack','Brown', | |
| 'Cyan','Magenta','LightCyan','LightMagenta','InternationalOrange')][string]$Color, | |
| [Parameter(ParameterSetName='Preset')][Alias('Ships')][string[]]$Ship | |
| ) | |
| $ColorPreset = @{ | |
| Gray = '<ColorMaskHSV x="0" y="-0.8" z="0" />'; |
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
| param ( | |
| [Parameter()][string]$OutputFolder | |
| ) | |
| if ($null -eq $OutputFolder -or $OutputFolder.Length -eq 0) { | |
| $OutputFolder = Join-Path $env:USERPROFILE -ChildPath "SE Blueprint References" | |
| Write-Warning "Using default folder: $OutputFolder" | |
| } | |
| $SteamPath = Get-ItemProperty HKCU:\Software\Valve\Steam | Select-Object -ExpandProperty SteamPath |
OlderNewer