Skip to content

Instantly share code, notes, and snippets.

View alabhyajindal's full-sized avatar
🤠

Alabhya Jindal alabhyajindal

🤠
View GitHub Profile
@alabhyajindal
alabhyajindal / rest.fish
Last active April 18, 2025 10:58
Work and rest pomodoro timers, running in the terminal, for the fish shell. Inspired by @bashbunni.
# place file in ~/.config/fish/functions
function rest
timer 10m || return 1
notify-send 'Break is over! Get back to work 😬' -t 3000
paplay /usr/share/sounds/freedesktop/stereo/complete.oga
end
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@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 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