Skip to content

Instantly share code, notes, and snippets.

View faizalmansor's full-sized avatar
🎯
Focusing on making the world a better place

Osh faizalmansor

🎯
Focusing on making the world a better place
View GitHub Profile
@faizalmansor
faizalmansor / ost-local-backup-w-email.sh
Last active June 24, 2019 11:22
Script to automate local backup for files & database with email notification
#!/bin/bash
# Script : ost-local-backup-w-email.sh
# Author : Osh <[email protected]>
# Title : Osh local backup with email notification
# Description: Script to automate local backup for files & database with email notification
# Target OS : Centos 7
# Create archive of target folder
today=`date '+%Y%m%d_%H%M%S'`;
@faizalmansor
faizalmansor / mysql-change-root-pass.md
Last active May 27, 2025 14:57
MySQL / MariaDB Change Root Password Step by Step

MySQL / MariaDB Change Root Password

The initial root password on install can be found by running

grep 'temporary password' /var/log/mysqld.log

  1. Stop mysql:

systemctl stop mysqld

  1. Set the mySQL environment option
@faizalmansor
faizalmansor / ost-setup-mailx.sh
Last active June 24, 2019 11:20
Script to automate installation & configuration of mailx
#!/bin/bash
# Script : ost-setup-mailx.sh
# Author : Osh <[email protected]>
# Title : Osh Automated Mailx Installer
# Description: Script to automate installation & configuration of mailx
# Target OS : Centos 7
echo "Start Osh Automated Mailx Installer..."

Keybase proof

I hereby claim:

  • I am faizalmansor on github.
  • I am faizalmansor (https://keybase.io/faizalmansor) on keybase.
  • I have a public key ASBoMfh3abB6YHZnKjcI8cth9t1zpAkUxKbXNWKS8PC7kQo

To claim this, I am signing this object:

@faizalmansor
faizalmansor / slate-on-ubuntu1804.md
Last active January 14, 2020 05:15
Install Slate API Docs Generator on Ubuntu 18.04 LTS

When installing slate on ubuntu 18.04 I stumbled upon this error:

Can't find gem bundler (>= 0.a) with executable bundle (Gem::GemNotFoundException)

So checking the bundler version of slate:

$ cat Gemfile.lock | grep -A 1 "BUNDLED WITH"
BUNDLED WITH
   2.0.2
@faizalmansor
faizalmansor / change-mysql-root-pwd.md
Last active September 16, 2020 07:36
Change MySQL root password easily

Change MySQL root password easily

  1. Log on to your system as the user that MySQL server runs as (for example, mysql)

  2. Stop the MySQL server if it is running

shell> ps ax | grep mysql
3425 mysqld
shell> kill 3425