Skip to content

Instantly share code, notes, and snippets.

View dimaskiddo's full-sized avatar
🎯
Focusing

Dimas Restu H dimaskiddo

🎯
Focusing
View GitHub Profile
@dimaskiddo
dimaskiddo / list_manipulation.yml
Last active December 15, 2021 01:14
Ansible Snippet
- hosts: localhost
connection: local
gather_facts: false
tasks:
- name: "Create ListX"
set_fact:
listX:
- name: "Dwi"
command: "X"
@dimaskiddo
dimaskiddo / promethus-zfs.md
Created July 30, 2021 04:56
Prometheus Time-Series Database for Monitoring with ZFS

Prometheus Time-Series Database for Monitoring with ZFS

What's Prometheus

Prometheus is an open-source systems monitoring and alerting toolkit originally built at SoundCloud. Since its inception in 2012, many companies and organizations have adopted Prometheus, and the project has a very active developer and user community. It is now a standalone open source project and maintained independently of any company

How to Install Prometheus with ZFS

In this guide we will use Debian based Linux distribution version 10 (Buster). If you are using an Cloud Instance like in Amazon Web Service you can use the default provided Ubuntu Amazon Machine Image (AMI) Debian 10 (Buster) 64-bit when you are provisioning it

@dimaskiddo
dimaskiddo / 90DNS-Injection-to-Atmosphere-0.18.x-DNS.MITM-Module.md
Created March 15, 2021 08:28
90DNS Injection in Atmosphere 0.18.x DNS.MITM Module

Follow this Guide with YOUR OWN RISK!

REQUIRED: NX-Atmosphere 0.18.x

As Atmosphere 0.18.x Releases, there is dns.mitm module implementation to extend Nintendo Switch hosts file, but first we need to activate dns.mitm module to be started by configuring system_settings.ini file in atmosphere/config. Here's the snippet section of system_settings.ini file:

...
[atmosphere]
...
...
@dimaskiddo
dimaskiddo / jitsi-jibri-minio.md
Created July 10, 2020 09:06
Jitsi Jibri MinIO Setup Guide

How to Automatic Upload Jibri Recording Files to MinIO

Following tutorial will guide you how to automatic upload your Jibri recording files to your own on-premises, cloud, or dedicated servers MinIO.

Escalate Privileged

Before we begin you must make sure that you own the administration / root permission access by running following command:

@dimaskiddo
dimaskiddo / jibri-minio.sh
Created July 10, 2020 09:02
Jitsi Jibri Automatic MinIO Uploader
#!/bin/bash -e
PATH=${PATH}:/usr/local/bin
# Configure Recordings
RECORDINGS_DIR=$1
# Configure MinIO
MC_PROTOCOL="YOUR_MINIO_PROTOCOL_HTTP_OR_HTTPS"
@dimaskiddo
dimaskiddo / wsl-genie-setup.sh
Created July 10, 2020 07:07
WSL Genie Setup Script
#!/bin/bash
# Install .NET Core Runtime 3.0 Repository
wget -O packages-microsoft-prod.deb https://packages.microsoft.com/config/debian/10/packages-microsoft-prod.deb
dpkg -i packages-microsoft-prod.deb
rm -f packages-microsoft-prod.deb
# Install Arkane Genie Repository
curl -s https://packagecloud.io/install/repositories/arkane-systems/wsl-translinux/script.deb.sh | bash
@dimaskiddo
dimaskiddo / .vimrc
Created July 10, 2020 07:05
My Dot Files Configuration
set number
set tabstop=2
set shiftwidth=2
set expandtab
set nocompatible
set backspace=indent,eol,start
@dimaskiddo
dimaskiddo / settings.json
Last active June 14, 2020 11:04
My Visual Studio Code Customization
// Place your settings in this file to overwrite the default settings
{
"editor.fontSize": 13,
"editor.fontFamily": "Consolas",
"editor.lineHeight": 26,
"editor.tabSize": 2,
"editor.insertSpaces": true,
"editor.detectIndentation": false,
"editor.minimap.enabled": true,
"editor.snippetSuggestions": "top",
@dimaskiddo
dimaskiddo / settings.json
Last active October 7, 2021 15:39
My Windows Terminal Customization
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"actions":
[
{
"command":
{
"action": "copy",
"singleLine": false
},
@dimaskiddo
dimaskiddo / endpoints.yml
Last active May 14, 2020 21:48
OpenShift - Route to Host Outside Cluster
apiVersion: v1
kind: Endpoints
metadata:
name: "{{ service_name }}-service"
namespace: "{{ project_name }}"
subsets:
- addresses:
- ip: "{{ endpoint_ip_1 }}"
nodeName: "{{ endpoint_name_1 }}"
- ip: "{{ endpoint_ip_n }}"