Skip to content

Instantly share code, notes, and snippets.

View wathmal's full-sized avatar
🎯
Focusing

Sasitha Sonnadara wathmal

🎯
Focusing
View GitHub Profile
@wathmal
wathmal / postman.desktop
Last active June 21, 2018 06:38
postman native app .desktop file for ubuntu (desktop shortcut). put this inside /home/username/.local/share/applications/ folder.
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Name=Postman
Comment=Postman Native App
Exec=/opt/Postman/Postman — %u
Icon=/opt/Postman/app/resources/app/assets/icon.png
Terminal=false
Type=Application
Categories=Network;Development
@wathmal
wathmal / wpbackup.sh
Last active January 19, 2017 09:58
bash script to backup wordpress site and database to dropbox
#!/usr/bin/env bash
BLOG_DIR="/var/www/html/blog/"
OUT_DIR="/home/pi/temp/"
PREFIX="wp_"
TS=$(date +"%Y-%m-%d");
# zip the whole blog directory
echo "compressing $BLOG_DIR directory"
zip -q -r "$OUT_DIR$PREFIX$TS.zip" "$BLOG_DIR"