Skip to content

Instantly share code, notes, and snippets.

View gilangvperdana's full-sized avatar
🎓
Still Learning

Gilang Virga Perdana gilangvperdana

🎓
Still Learning
View GitHub Profile
@gilangvperdana
gilangvperdana / manifests.yaml
Created September 20, 2022 02:37 — forked from tapih/manifests.yaml
Loki manifests
apiVersion: v1
kind: Namespace
metadata:
name: loki-stack
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: loki
namespace: loki-stack
@gilangvperdana
gilangvperdana / README.md
Last active July 4, 2022 12:25 — forked from lovellfelix/gist:1571bb3ed2d08b8cca9e
Linux Files Immutable?

Linux Files Immutable?

Ever feel 'operattion not-permitted' on linux, please do this to revert or even if you want to protect a file to be safe.

Execution

cat ~/.ssh/id_rsa.pub > authorized_keys
chattr +i authorized_keys 
rm authorized_keys

rm: remove write-protected regular file `file1'? y

@gilangvperdana
gilangvperdana / README.md
Last active November 9, 2022 01:36 — forked from sdmoko/OpenStack-instances-monitoring-with-Prometheus-Grafana.md
Step by step to Monitoring OpenStack Instances with Service Discovery Prometheus and Grafana

Monitoring Instances with Prometheus and Grafana

Download Prometheus Server

cd /tmp
wget -c https://github.com/prometheus/prometheus/releases/download/v2.13.1/prometheus-2.13.1.linux-amd64.tar.gz

Extract Prometheus Server