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
| # check if docker is running | |
| docker 1> /dev/null | |
| # success? | |
| if [ $? -eq 0 ]; then | |
| # folder/file exist? | |
| if test -f "$2"; then | |
| docker container create --name dummy -v $1:/root tianon/true | |
| docker cp "$2" dummy:"/root/$3" | |
| docker rm dummy | |
| echo "Copied $2 to $3 in Volume $1" |
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
| echo "Installing 'Oh My Posh'..." | |
| sudo wget https://www.github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/posh-linux-amd64 -O /usr/local/bin/oh-my-posh | |
| sudo chmod +x /usr/local/bin/oh-my-posh | |
| echo "Oh My Posh installation complete. Version:" | |
| oh-my-posh --version |
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
| New-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{7258BA11-600C-430E-A759-27E2C691A335}_is1" -Name DisplayVersion -Value ((Get-ItemProperty -Path HKLM:\SOFTWARE\WOW6432Node\GOG.com\GalaxyClient -Name version).version) -Force |