Skip to content

Instantly share code, notes, and snippets.

View anilnabin25's full-sized avatar

Divya Shrestha anilnabin25

View GitHub Profile
@anilnabin25
anilnabin25 / phpmyadmin-in-docker.md
Last active May 15, 2024 08:47 — forked from poudelmadhav/phpmyadmin-in-docker.md
Run phpmyadmin in docker and connect to local mysql

Run phpmyadmin in docker

Find the ip address running this command:

ip addr show docker0 | grep inet

This will be the PMA_HOST in below steps. The PMA_HOST of local machine is like this: 172.17.0.1

Create a user

use this command to create a user for phpmyadmin login

@anilnabin25
anilnabin25 / stimulus.md
Created November 2, 2022 08:58 — forked from mrmartineau/stimulus.md
Stimulus cheatsheet
@anilnabin25
anilnabin25 / reset_mysql_password.md
Created October 31, 2022 06:46 — forked from poudelmadhav/reset_mysql_password.md
Reset mysql root password

Reset MySQL Root Password:

  • Stop MySQL
sudo service mysql stop
  • Make MySQL service directory.
sudo mkdir /var/run/mysqld
  • Give MySQL user permission to write to the service directory.
@anilnabin25
anilnabin25 / deploy.sh
Created June 14, 2022 05:46 — forked from cagartner/deploy.sh
Laravel Push deploy Github actions example
#!/bin/sh
set -e
vendor/bin/phpunit
(git push) || true
git checkout production
git merge master
@anilnabin25
anilnabin25 / database.rules.json
Created December 23, 2021 05:14 — forked from codediodeio/database.rules.json
Common Database Rules for Firebase
// No Security
{
"rules": {
".read": true,
".write": true
}
}