Skip to content

Instantly share code, notes, and snippets.

View panelssh's full-sized avatar
🏠
Working from home

Panel SSH panelssh

🏠
Working from home
View GitHub Profile
@panelssh
panelssh / import.md
Created March 29, 2023 18:28 — 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.

@panelssh
panelssh / slack-cleaner.js
Created March 20, 2021 11:48 — forked from gummiforweb/slack-cleaner.js
Clean up your Slack messages or files from either public channel, private channel, private message or group message. Fully interactive.
/**
* User Defined Values
*/
const agreedDisclaimer = false;
const apiToken = '';
/**
* Dont need to touch anything below
*/
const readline = require('readline');