Skip to content

Instantly share code, notes, and snippets.

View naryal2580's full-sized avatar
:octocat:
Well, I'll check!

Captain Nick Lucifer* naryal2580

:octocat:
Well, I'll check!
View GitHub Profile
@naryal2580
naryal2580 / install_docker_kali.sh
Last active December 16, 2021 19:02
Install docker in Kali Linux
#!/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
@naryal2580
naryal2580 / Installing Docker in Kali
Created December 16, 2021 18:53
install_docker_kali.sh
#!/bin/bash
sudo apt update
sudo apt install docker.io -y
sudo systemctl enable docker --now
sudo usermod -aG docker $USER
@naryal2580
naryal2580 / install_xampp.sh
Last active December 14, 2021 08:26
Download and install XAMPP in supported Linux and OSX distro.
#!/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)
@naryal2580
naryal2580 / .wsl-extension.sh
Created August 26, 2020 11:08
Either source this on .bashrc or copy and paste it to your .bashrc of WSL you are working on, and forget appending .exe on commands like powershell and cmd
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