This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command
$ docker-compose up -d
# To Tear Down
$ docker-compose down --volumes
| ca-certificates | |
| fonts-liberation | |
| libappindicator3-1 | |
| libasound2 | |
| libatk-bridge2.0-0 | |
| libatk1.0-0 | |
| libc6 | |
| libcairo2 | |
| libcups2 | |
| libdbus-1-3 |
| version: '3' | |
| services: | |
| # Database | |
| db: | |
| image: biarms/mysql | |
| volumes: | |
| - db_data:/var/lib/mysql | |
| restart: always | |
| environment: |
| version: '3' | |
| services: | |
| # Database | |
| db: | |
| image: mysql:5.7 | |
| volumes: | |
| - db_data:/var/lib/mysql | |
| restart: always | |
| environment: |
| SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; | |
| # fix error when importing wordpress database |
Clean up
sudo apt-add-repository -r ppa:graphics-drivers/ppa &&
sudo apt update &&
sudo apt upgrade &&
sudo apt autoremove &&
sudo apt autoclean
Add PPA
| Using FSCK to repair file system error (initframs) | |
| fsck /dev/mapper/vgubuntu-root -y |
| Visual Studio Code frequently crashes linux. Using NVIDIA GPU | |
| 1. Open command pallete (Ctrl + Shift + P) | |
| 2. Enter "Preferences: Configure Runtime Arguments" | |
| 3. Add config: "disable-hardware-acceleration": true | |
| 4. Restart VS Code |
| /* Clear float, technique définitive */ | |
| li { float: left } | |
| ul { *zoom: 1 } | |
| ul:after { | |
| clear: left; | |
| content: ' '; /* Attention, c'est un espace insécable (alt+space) */ | |
| display: block; | |
| height: 0; | |
| } |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Untitled</title> | |
| <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
| <link rel="stylesheet/less" type="text/css" href="assets/css/styles.less"> | |
| <script src="assets/js/less-1.3.0.min.js" type="text/javascript"></script> | |
| </head> |