Skip to content

Instantly share code, notes, and snippets.

@413x1
Last active June 28, 2023 10:36
Show Gist options
  • Save 413x1/592c609788b8a77e57a738b63fcb1ab6 to your computer and use it in GitHub Desktop.
Save 413x1/592c609788b8a77e57a738b63fcb1ab6 to your computer and use it in GitHub Desktop.
docker run --name=mysql-server \
-e MYSQL_ROOT_PASSWORD=toor \
-e MYSQL_ROOT_HOST='%' \
-p 3306:3306 \
-v path/to/config/dir:/etc/mysql/conf.d \
-v path/to/data/dir:/var/lib/mysql \
-d mysql/mysql-server:latest \
--character-set-server=utf8mb4 \
--collation-server=utf8mb4_unicode_ci
@likem3
Copy link

likem3 commented Jun 26, 2023

// redis command
docker run -d --name redis-server -p 6379:6379 -v /home/like/.docker/redis-server/volume/data:/data redis:lates

// check it from terminal
// sudo apt install redis-tools

@likem3
Copy link

likem3 commented Jun 28, 2023

git config --global alias.lgb "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset%n' --abbrev-commit --date=relative --branches"

git lgb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment