Skip to content

Instantly share code, notes, and snippets.

@andriyudatama
andriyudatama / docker_compose.yml
Created Nov 24, 2020
Wordpress Docker for Raspberry Pi
View docker_compose.yml
version: '3'
services:
# Database
db:
image: biarms/mysql
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
@andriyudatama
andriyudatama / docker_wordpress.md
Created Nov 23, 2020 — forked from bradtraversy/docker_wordpress.md
Docker Compose FIle For Wordpress, MySQL & phpmyadmin
View docker_wordpress.md

Wordpress & Docker

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
@andriyudatama
andriyudatama / docker-compose.yml
Created Nov 23, 2020
Docker Compose Wordpress + Mysql + PhpMyAdmin
View docker-compose.yml
version: '3'
services:
# Database
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
View gist:b9e1eb5e1472638474247a96c51cad14
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
# fix error when importing wordpress database
View Rollback AMD GPU Driver on Ubuntu.md

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

View Fix file system error linux
Using FSCK to repair file system error (initframs)
fsck /dev/mapper/vgubuntu-root -y
@andriyudatama
andriyudatama / VS Code Disable GPU Acceleration
Last active Apr 8, 2020
Disable Hardware Acceleration (GPU) on Visual Studio Code
View VS Code Disable GPU Acceleration
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
@andriyudatama
andriyudatama / dabblet.css
Created Aug 2, 2012 — forked from cahnory/dabblet.css
Clear float, technique définitive
View dabblet.css
/* 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;
}
@andriyudatama
andriyudatama / gist:3194010
Created Jul 28, 2012
HTML: Basic HTML Page
View gist:3194010
<!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>