Skip to content

Instantly share code, notes, and snippets.

View alabhyajindal's full-sized avatar
🐽
Hi!

Alabhya Jindal alabhyajindal

🐽
Hi!
View GitHub Profile
@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"
@alabhyajindal
alabhyajindal / desktop.sh
Last active January 9, 2024 09:48
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