Skip to content

Instantly share code, notes, and snippets.

View donnitriosa's full-sized avatar
😆
Be Happy

Donni Triosa donnitriosa

😆
Be Happy
View GitHub Profile
@donnitriosa
donnitriosa / create_namespace.sh
Last active January 3, 2025 03:47
Script to create a namespace in Kubernetes and apply resource quota and network policies to it
#!/bin/bash
# Script to create a namespace in Kubernetes and apply resource quota and network policies to it
# Created by Donni Triosa ([email protected])
# Check if the namespace argument is provided
if [ -z "$1" ]; then
echo "Usage: $0 <namespace>"
exit 1
fi
@donnitriosa
donnitriosa / create-gitlab-account.sh
Last active September 25, 2024 15:13
This script is designed to create a new user in a GitLab instance using the GitLab API. It requires three arguments: the user's name, email, and username. The script retrieves a private token from the Git configuration to authenticate the API request.
#!/bin/bash
# Created by Donni Triosa ([email protected])
# Description:
# This script is designed to create a new user in a GitLab instance using the GitLab API.
# It requires three arguments: the user's name, email, and username.
# The script retrieves a private token from the Git configuration to authenticate the API request.
# Prerequisites:
# 1. jq is installed (https://stedolan.github.io/jq/)
# 2. A GitLab private token is set in the Git configuration using 'git config --global credential.gitlab.api <your_token>'
@donnitriosa
donnitriosa / zfs-install.sh
Created March 10, 2024 09:23
Script to Install ZFS on Debian
#!/bin/bash -e
# Script to intall zfs on debian
# use root to run this script
# Create By Donni Triosa ([email protected])
# check if user is root
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit 1
fi
@donnitriosa
donnitriosa / Install and Setup SNMP.md
Last active March 4, 2021 02:06
step by step to install an configure snmp

Install & setup SNMP di ubuntu

  1. Install

    sudo apt-get update
    sudo apt-get install -y snmpd
    
  2. Cek Status

sudo systemctl status snmpd