Skip to content

Instantly share code, notes, and snippets.

View kudaliar032's full-sized avatar
🇮🇩

Aditya Rahman kudaliar032

🇮🇩
View GitHub Profile
@kudaliar032
kudaliar032 / k0sctl.yaml
Created September 25, 2021 04:29
k0sctl ha configuration example
k0s:
config:
spec:
api:
externalAddress: <load balancer public ip address>
sans:
- <load balancer public ip address>
@kudaliar032
kudaliar032 / haproxy.cfg
Last active September 25, 2021 04:13
k0s haproxy configuration
global
log /dev/log local0
log /dev/log local1 notice
chroot /var/lib/haproxy
stats socket /run/haproxy/admin.sock mode 660 level admin expose-fd listeners
stats timeout 30s
user haproxy
group haproxy
daemon
@kudaliar032
kudaliar032 / haproxy.cfg
Last active September 25, 2021 03:59
HAProxy Configuration For k0s Multi-master
frontend kubeAPI
bind :6443
default_backend kubeAPI_backend
frontend konnectivity
bind :8132
default_backend konnectivity_backend
frontend controllerJoinAPI
bind :9443
default_backend controllerJoinAPI_backend
@kudaliar032
kudaliar032 / subdomain.domain.tld.conf
Last active September 12, 2021 01:39
Deploy VS Code pada Server Ubuntu 20.04
server {
listen 80;
server_name subdomain.domain.tld;
error_log /var/log/nginx/subdomain.domain.tld-err.log;
access_log /var/log/nginx/subdomain.domain.tld-access.log;
location / {
proxy_pass http://localhost:8080;
proxy_set_header Upgrade $http_upgrade;
@kudaliar032
kudaliar032 / invenioils-deployment.md
Last active April 18, 2021 13:14
Invenio Deployment

Deployment Invenio ILS

  1. Pastikan requirement system sudah terpenuhi semua (git, docker, docker-compose)
  2. Clone invenio ils
git clone https://github.com/inveniosoftware/invenio-app-ils.git
cd invenio-app-ils
@kudaliar032
kudaliar032 / 0. docker.md
Last active February 15, 2021 15:12
Docker

Docker

Adalah tools yang digunakan untuk menjalankan container

Container

Teknologi yang digunakan untuk menjalankan sebuah aplikasi, dimana dengan container aplikasi akan dibungkus bersama dengan libraries yang dibutuhkan aplikasi tersebut. Sehinga lebih cepat apabila dijalankan dibandingkan dengan virutalization.

Alternative

@kudaliar032
kudaliar032 / index.html
Created February 13, 2021 07:24
Google Maps + BigQuery
<!DOCTYPE html>
<html>
<!--
Copyright 2016 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
########################################################################
########################################################################
## This is a sample configuration file for the ftpsync mirror script. ##
## Only options most users may need are included. For documentation ##
## and all available options see ftpsync.conf(5). ##
########################################################################
########################################################################
# MIRRORNAME=`hostname -f`
TO="/home/debian-mirror/data"