Skip to content

Instantly share code, notes, and snippets.

View alabhyajindal's full-sized avatar

Alabhya Jindal alabhyajindal

View GitHub Profile
@alabhyajindal
alabhyajindal / desktop.sh
Last active September 22, 2024 16:12
Create Desktop Entry from AppImage
#!/usr/bin/env bash
# Store icon and AppImage in variable
icon_path=$HOME/Downloads/<YOUR_LOGO_FILE_NAME>.png
exec_path=$HOME/Downloads/<YOUR_APPIMAGE_FILE_NAME>
# Copy both files
cp $icon_path ~/.local/share/applications/
cp $exec_path ~/.local/share/applications/
# Create a Desktop Entry file
@alabhyajindal
alabhyajindal / deploy.sh
Last active October 26, 2023 09:57
Deploy Express application on a virtual server
# Update dependencies
echo "Updating dependencies..."
apt-get update
apt update
# Ask for GitHub source code URL
echo "\nWhat is the URL of your GitHub public repo that you want to deploy?\n"
read url
source_code="$url.git"