Skip to content

Instantly share code, notes, and snippets.

sasitha wathmal wathmal

Block or report user

Report or block wathmal

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@wathmal
wathmal / postman.desktop
Last active Jun 21, 2018
postman native app .desktop file for ubuntu (desktop shortcut). put this inside /home/username/.local/share/applications/ folder.
View postman.desktop
[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 Jan 19, 2017
bash script to backup wordpress site and database to dropbox
View wpbackup.sh
#!/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"
You can’t perform that action at this time.