Skip to content

Instantly share code, notes, and snippets.

View andriyudatama's full-sized avatar

Andri Yudatama andriyudatama

View GitHub Profile
ca-certificates
fonts-liberation
libappindicator3-1
libasound2
libatk-bridge2.0-0
libatk1.0-0
libc6
libcairo2
libcups2
libdbus-1-3
@andriyudatama
andriyudatama / docker_compose.yml
Created November 24, 2020 13:35
Wordpress Docker for Raspberry Pi
version: '3'
services:
# Database
db:
image: biarms/mysql
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
@andriyudatama
andriyudatama / docker_wordpress.md
Created November 23, 2020 23:22 — forked from bradtraversy/docker_wordpress.md
Docker Compose FIle For Wordpress, MySQL & phpmyadmin

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 November 23, 2020 23:14
Docker Compose Wordpress + Mysql + PhpMyAdmin
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
@andriyudatama
andriyudatama / Rollback AMD GPU Driver on Ubuntu.md
Created April 9, 2020 17:24
Rollback AMD GPU Driver on Ubuntu

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

@andriyudatama
andriyudatama / Fix file system error linux
Created April 8, 2020 16:05
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 April 7, 2024 07:26
Disable Hardware Acceleration (GPU) on Visual Studio Code
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 August 2, 2012 15:46 — forked from cahnory/dabblet.css
Clear float, technique définitive
/* 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 July 28, 2012 17:03
HTML: Basic HTML Page
<!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>