Remove obsolete code

This commit is contained in:
Manuel Thalmann 2024-09-22 15:10:36 +02:00
commit 976f543b36
223 changed files with 0 additions and 4889 deletions
scripts/Common/Software
Godot
JetBrains
Oh My Posh
Woodpecker CLI
gnome-shell-extension-installer
n
nuke-usb
pyenv
tea
zoxide

View file

@ -1,37 +0,0 @@
#!/bin/bash
# Elevate script
if [ ! "$UID" -eq 0 ]
then
sudo bash "$BASH_SOURCE" "$USER";
else
tempDir="$(mktemp -d)";
archiveName="$(mktemp)";
destination="/var/lib/godot";
if [ -d "$destination" ]
then
rm -rf "$destination";
fi
wget https://github.com/godotengine/godot/releases/download/4.0-stable/Godot_v4.0-stable_mono_linux_x86_64.zip -O "$archiveName";
unzip "$archiveName" -d "$tempDir";
mkdir -p "$destination";
mv "$tempDir"/*/* "$destination";
wget https://github.com/godotengine/godot/raw/4.0-stable/icon.svg -O "$destination/icon.svg";
rm -rf "$tempDir";
rm -f "$archiveName";
exeFile="$(find "$destination" -maxdepth 1 -perm -111 -type f)";
ln -fs "$exeFile" /usr/local/bin/godot;
{
echo "[Desktop Entry]";
echo "Encoding=UTF-8";
echo "Type=Application";
echo "Terminal=false";
echo "Exec=$exeFile";
echo "Name=Godot Engine";
echo "Icon=$destination/icon.svg";
} > /usr/share/applications/godot.desktop;
fi

View file

@ -1,24 +0,0 @@
#!/bin/bash
# Elevate script
if [ ! "$UID" -eq 0 ]
then
sudo bash "$BASH_SOURCE";
else
contextRoot="$(mktemp -d)";
pushd "$contextRoot" > /dev/null;
curl -fsSL https://raw.githubusercontent.com/nagygergo/jetbrains-toolbox-install/1.1/jetbrains-toolbox.sh \
| bash;
popd > /dev/null;
rm -rf "$contextRoot";
{
echo "[Desktop Entry]";
echo "Encoding=UTF-8";
echo "Type=Application";
echo "Terminal=false";
echo "Exec=/opt/jetbrains-toolbox/jetbrains-toolbox";
echo "Name=JetBrains Toolbox";
} > /usr/share/applications/jetbrains-toolbox.desktop;
fi

View file

@ -1,18 +0,0 @@
#!/bin/bash
NEXTCLOUD_DIR="${NEXTCLOUD_DIR}";
# Elevate script
if [ ! "$UID" -eq 0 ]
then
sudo NEXTCLOUD_DIR="${NEXTCLOUD_DIR}" bash "$BASH_SOURCE" "$USER";
else
bin=oh-my-posh;
contextRoot="$(mktemp -d)";
pushd "$contextRoot" > /dev/null;
wget https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/posh-linux-amd64 -O "$bin";
install "$bin" /usr/local/bin;
popd > /dev/null;
rm -rf "$contextRoot";
fi

View file

@ -1,23 +0,0 @@
#!/bin/bash
# Elevate script
if [ ! "$UID" -eq 0 ]
then
sudo bash "$BASH_SOURCE";
else
contextRoot="$(mktemp -d)";
pushd "$contextRoot" > /dev/null;
# Preview from docker container
# container_id="$(docker create woodpeckerci/woodpecker-cli:next)"
# docker cp $container_id:/bin/woodpecker-cli /usr/local/bin/woodpecker-cli
# Latest from GitHub
wget https://github.com/woodpecker-ci/woodpecker/releases/download/v0.15.5/woodpecker-cli_linux_amd64.tar.gz \
-O woodpecker-cli.tar.gz;
tar -xvzf woodpecker-cli.tar.gz;
install woodpecker-cli /usr/local/bin;
popd > /dev/null;
rm -rf "$contextRoot";
fi

View file

@ -1,10 +0,0 @@
#!/bin/bash
contextRoot="$(mktemp -d)";
commandName="gnome-shell-extension-installer";
pushd "$contextRoot" > /dev/null;
wget -O "$commandName" https://github.com/brunelli/gnome-shell-extension-installer/raw/master/gnome-shell-extension-installer;
sudo install "$commandName" /usr/local/bin;
popd > /dev/null;
rm -rf "$contextRoot";

View file

@ -1,8 +0,0 @@
#!/bin/bash
if [ ! "$UID" -eq 0 ]
then
sudo bash "$BASH_SOURCE";
else
npm install -g n;
n install latest;
fi;

View file

@ -1,4 +0,0 @@
#!/bin/bash
pushd "${BASH_SOURCE%/*}" > /dev/null;
sudo install -m 755 ./nuke-usb.sh /usr/local/bin/nuke-usb;
popd > /dev/null;

View file

@ -1,5 +0,0 @@
#!/bin/bash
pushd "${BASH_SOURCE%/*}" > /dev/null;
curl https://pyenv.run | bash;
. "../../Config/pyenv/install.sh";
popd > /dev/null;

View file

@ -1,15 +0,0 @@
#!/bin/bash
# Elevate script
if [ ! "$UID" -eq 0 ]
then
sudo bash "$BASH_SOURCE";
else
contextRoot="$(mktemp -d)";
pushd "$contextRoot" > /dev/null;
wget https://dl.gitea.io/tea/0.9.0/tea-0.9.0-linux-amd64 -O tea;
install tea /usr/local/bin;
popd > /dev/null;
rm -rf "$contextRoot";
fi

View file

@ -1,12 +0,0 @@
#!/bin/pwsh
. "$PSScriptRoot/../PowerShell/Profile.ps1";
Add-PowerShellProfileStatement `
-System `
-Category "zoxide" `
-Script $(
@(
"# zoxide",
$(Get-ScriptInitializer "zoxide init powershell | Out-String")
) -join [System.Environment]::NewLine
)