This file contains 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 | |
sudo apt update | |
sudo apt install docker.io -y | |
sudo systemctl enable docker --now | |
sudo usermod -aG docker $USER | |
echo "Clicking Yes will logout the current xfce-session." | |
zenity --question | |
if [[ $? == 0 ]] ; then |
This file contains 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 | |
sudo apt update | |
sudo apt install docker.io -y | |
sudo systemctl enable docker --now | |
sudo usermod -aG docker $USER |
This file contains 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 | |
random_dir="/tmp/$RANDOM" | |
mkdir $random_dir && cd random_dir | |
download_xampp_installer(grep_keyword) { | |
echo -e "Downloading XAMPP Installer..\n" | |
wget $(wget -q -O - https://www.apachefriends.org/index.html | grep $grep_keyword | cut -d '"' -f 6) 2> /dev/null | |
if [ ! -f ./xampp-*-installer.run ]; then | |
curl -o "./xampp-linux-installer.run" $(curl -s https://www.apachefriends.org/index.html | grep $grep_keyword | cut -d '"' -f 6) |
This file contains 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
trap 'BASH_CMD=$BASH_COMMAND' DEBUG | |
command_not_found_handle () { | |
only_cmd=${BASH_CMD%% *} | |
if type "$only_cmd.exe" | |
then | |
only_args=${BASH_CMD#* } | |
cmd="$only_cmd.exe $only_args" | |
$cmd | |
else |