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 / debian-zfs-setup.sh
Last active May 31, 2023 06:16
Debian Linux ZFS Packages Setup Script
#!/usr/bin/env bash
apt-get -y update --allow-releaseinfo-change
apt-get -y install ca-certificates apt-transport-https software-properties-common lsb-release bash-completion dirmngr gnupg curl wget rsync logrotate byobu
apt-get -y install dpkg-dev
linux_kernel_is_cloud=`uname -r | grep cloud | wc -l`
if [[ ${linux_kernel_is_cloud} -eq 1 ]]
then
# Install Linux Kernel Dependencies (Cloud)
@dimaskiddo
dimaskiddo / debian-sanoid-syncoid-setup.sh
Last active January 11, 2024 12:42
Debian Linux Sanoid - Syncoid Packages Setup Script
#!/usr/bin/env bash
apt-get -y update --allow-releaseinfo-change
apt-get -y install ca-certificates apt-transport-https software-properties-common lsb-release bash-completion dirmngr gnupg curl wget rsync logrotate byobu
apt-get -y install procps pv lzop mbuffer libcapture-tiny-perl libconfig-inifiles-perl
mkdir -p /usr/bin
mkdir -p /usr/local/bin
mkdir -p /etc/sanoid
@dimaskiddo
dimaskiddo / rocky-essentials-setup.sh
Created September 29, 2022 07:51
Rocky Linux Essentials Packages Setup Script
#!/bin/bash
#
# Rocky Linux Essentials Packages
# By Dimas Restu Hidayanto <dimas.restu@student.upi.edu>
#
# WARNING PLEASE DO WITH YOUR OWN RISK
#
# This instruction will guide you to install
# essentials packages that might be useful for your systems
# or your opeartions
@dimaskiddo
dimaskiddo / centos-essentials-setup.sh
Last active September 29, 2022 07:48
CentOS Linux Essentials Packages Setup Script
#!/bin/bash
#
# CentOS Linux Essentials Packages
# By Dimas Restu Hidayanto <dimas.restu@student.upi.edu>
#
# WARNING PLEASE DO WITH YOUR OWN RISK
#
# This instruction will guide you to install
# essentials packages that might be useful for your systems
# or your opeartions
@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 / socat-manager.sh
Created October 7, 2021 15:40
Socat Manager
#!/bin/bash
# SOCAT Port Forwarder Management Script
# Created By Dimas Restu Hidayanto (dimas.restu@student.upi.edu)
IS_NUMBER='^[0-9]+$'
if [ $UID != 0 ]; then
echo "Administrator Previlege Needed. Please Run This Program As An Administrator/Root User!"
exit 1
fi
@dimaskiddo
dimaskiddo / ssh-hardening.sh
Last active April 1, 2024 13:07
SSH Hardening Script
#!/bin/bash
# SSH Hardenning Script
# Created By Dimas Restu Hidayanto (dimas.restu@student.upi.edu)
echo "--------------------------------------"
echo "SSH Hardening"
echo "dimas.restu@student.upi.edu"
echo "--------------------------------------"
echo ""
@dimaskiddo
dimaskiddo / 99-sysctl.conf
Last active September 21, 2021 12:44
Additional System Control (SysCtl) Value
vm.max_map_count=262144
net.core.somaxconn=4096
net.core.rmem_max=16777216
net.core.wmem_max=16777216
net.core.netdev_max_backlog=2500
net.ipv6.conf.default.disable_ipv6=1
net.ipv6.conf.all.disable_ipv6=1
net.ipv6.conf.lo.disable_ipv6=1
net.ipv6.conf.eth0.disable_ipv6=1
@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]
...
...