Skip to content

Instantly share code, notes, and snippets.

View supanadit's full-sized avatar
🦄
A Unicorn

Supan Adit Pratama supanadit

🦄
A Unicorn
View GitHub Profile
networks:
default:
name: pratama-network
external: true
services:
mariadb:
image: "bitnami/mariadb:10.8"
restart: always
environment:
networks:
default:
name: pratama-network
external: true
services:
wordpress:
image: bitnami/wordpress:6
container_name: wordpress
labels:
[http.routers]
# Traefik
[http.routers.api]
rule = "Host(`traefik.supanadit.com`)"
# Uncomment this for production use
# entrypoints = ["web","websecure"]
# Comment this for production use
entrypoints = ["web"]
service = "api@internal"
# Uncomment this for production use
[api]
dashboard = true
[entryPoints]
[entryPoints.web]
address = ":80"
# Uncomment this at production for redirecting to HTTPS automatically
# [entryPoints.web.http.redirections.entryPoint]
# to = "websecure"
# scheme = "https"
networks:
default:
name: pratama-network
external: true
services:
traefik:
container_name: traefik
image: traefik:v3.1.4
restart: always
@supanadit
supanadit / gist:dabf262f8e4114aa9a1cd0ca0afee1a7
Created August 24, 2024 07:28 — forked from jtopper/gist:8588263
Add a new disk to a VMWare vagrant box
config.vm.provider :vmware_fusion do |vm|
vdiskmanager = '/Applications/VMware\ Fusion.app/Contents/Library/vmware-vdiskmanager'
dir = "#{ENV['HOME']}/vagrant-additional-disk"
unless File.directory?( dir )
Dir.mkdir dir
end
@supanadit
supanadit / fonts.sh
Last active December 7, 2023 17:58
Arch Linux Fonts
yay -S noto-fonts ttf-dejavu noto-fonts-cjk noto-fonts-emoji noto-fonts-extra otf-font-awesome ttf-ms-fonts ttf-meslo ttf-meslo-nerd
@supanadit
supanadit / rest-api-response.md
Created January 4, 2021 04:22
Rest API Response

Solution for max watches limit on Arch Linux

echo fs.inotify.max_user_watches=524288 | sudo tee /etc/sysctl.d/40-max-user-watches.conf && sudo sysctl --system
@supanadit
supanadit / pom.xml
Created January 23, 2020 06:51
Set JDK 8 Version in Maven
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>domain.yourpackage</groupId>
<artifactId>your-artifact</artifactId>
<version>1.0.0</version>