Skip to content

Instantly share code, notes, and snippets.

View connectaryal's full-sized avatar
🎯
Focusing

Shiva Aryal connectaryal

🎯
Focusing
View GitHub Profile
@connectaryal
connectaryal / import.md
Created June 8, 2024 08:09 — forked from iamstoick/import.md
How to import database in MySQL in Docker?

This is a simple way of importing MySQL database in Docker.

  1. In you Dockerfile you must have a shared folder. Shared folder is a directory in your host machine that is mounted to Docker instance.

  2. Put the exported sql file in the shared folder.

  3. Login to your Docker instance via docker exec -it DOCKER_CONTAINER_ID bin/bash.

  4. Login to MySQL via mysql -u USERNAME -p.

@connectaryal
connectaryal / subcategory-filter.php
Created August 31, 2020 16:37 — forked from raajen/subcategory-filter.php
WordPress Subcategory Template
<?php
if (!function_exists('wpktm_aug_subcategory_template')) {
/**
* Adds our subcategory template.
*
* @param string $template Template file.
*
* @return string Template file