Skip to content

Instantly share code, notes, and snippets.

View motsmanish's full-sized avatar
🎯
Focusing

Manish Motwani motsmanish

🎯
Focusing
View GitHub Profile
@motsmanish
motsmanish / android_backup.md
Last active September 16, 2024 11:13 — forked from yardnsm/android_backup.md
My "checklist" for backing up my Android devices

Android backup

Mainly for Android phones.

I mostly use Google's backup to Google Drive (which is freaking amazing). It backs up the following:

  • App data
  • Call history
  • Device settings
  • SMS
@motsmanish
motsmanish / imagick-3.7.0-PHP-7.4
Last active January 19, 2023 07:10 — forked from danielstgt/imagick3.4.4-PHP7.4-forge.sh
Install imagick 3.7.0 on PHP 7.4 server
#!/bin/bash
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
apt-get install pkg-config libmagickwand-dev -y
cd /tmp
wget https://pecl.php.net/get/imagick-3.7.0.tgz
tar xvzf imagick-3.7.0.tgz
@motsmanish
motsmanish / README.md
Last active March 14, 2018 13:17 — forked from Oxicode/README.md
Install wkhtmltopdf on Ubuntu 14.04 64-bit

Install wkhtmltopdf on Ubuntu

This was tested on:

  • Ubuntu 14.04 x64
  • Ubuntu 16.04 x64

Step 1

Install the xvfb server by running

@motsmanish
motsmanish / dump.sh
Last active August 23, 2019 13:29 — forked from andsens/dump.sh
Backup all MySQL databases into separate files
#!/bin/sh
## backup each mysql db into a different file, rather than one big file
## as with --all-databases. This will make restores easier.
## To backup a single database simply add the db name as a parameter (or multiple dbs)
## Putting the script in /var/backups/mysql seems sensible... on a debian machine that is
## Create the user and directories
# mkdir -p /var/backups/mysql/databases
# useradd --home-dir /var/backups/mysql --gid backup --no-create-home mysql-backup
## Remember to make the script executable, and unreadable by others