Skip to content

Instantly share code, notes, and snippets.

@sphinxid
sphinxid / gist:c6a5a62349c2c4bf43c89f5fc176c55e
Created April 14, 2025 04:58
YABS Benchmark - BiznetGio Neo Virtual Compute (NVC) SS 2.2 - 2core 2GBram 60GBdisk @ 235rb/bulan
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #
# Yet-Another-Bench-Script #
# v2025-01-01 #
# https://github.com/masonr/yet-another-bench-script #
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #
Mon Apr 14 04:37:55 UTC 2025
Basic System Information:
---------------------------------
@sphinxid
sphinxid / gist:6c19c1f1b310c1d394cfd5615810e2fe
Created April 14, 2025 12:43
YABS Benchmark - VPS NevaCloud - 2core 2GBram 30GBdisk @ 180rb/bulan (20250414)
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #
# Yet-Another-Bench-Script #
# v2025-01-01 #
# https://github.com/masonr/yet-another-bench-script #
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #
Mon Apr 14 12:09:58 UTC 2025
Basic System Information:
---------------------------------
@sphinxid
sphinxid / gist:14d5cafd0522465e4846880d1edeb338
Created April 14, 2025 15:32
YABS Benchmark - BiznetGio NeoLite Pro MS 2.2 - 2core 2GBram 40GBdisk @ 219rb/bulan
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #
# Yet-Another-Bench-Script #
# v2025-01-01 #
# https://github.com/masonr/yet-another-bench-script #
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #
Mon Apr 14 21:29:48 WIB 2025
Basic System Information:
---------------------------------
@sphinxid
sphinxid / noip-ddns-update.sh
Created April 16, 2025 11:18
Simple DDNS updater for noip.com - Checks your real IP first before sending update.
#!/bin/bash
# Configuration variables
USERNAME="your_username"
PASSWORD="your_password"
HOSTNAME="mytest.example.com"
# Path to required binaries
CURL="/usr/bin/curl"
DIG="/usr/bin/dig"
@sphinxid
sphinxid / k6-wordpress-load-test.js
Created April 19, 2025 09:52
k6 script to do load test on wordpress page. it will try to gather all the wordpress urls from the sitemaps then do a random visit to those urls. (20% traffic to home and 80% traffic to those random urls)
import http from 'k6/http';
import { check, sleep } from 'k6';
import { parseHTML } from 'k6/html';
// CHANGE THIS TO YOUR WORDPRESS URL
const BASE_URL = 'https://wordpress.com/blog/';
const SITEMAP_INDEX_URL = `${BASE_URL}/sitemap.xml`;
export const options = {
scenarios: {
@sphinxid
sphinxid / neo.sh
Created May 25, 2025 12:51
script to install neo4j
#!/bin/bash
# Exit immediately if a command exits with a non-zero status.
set -euo pipefail
# --- Configuration ---
NEO4J_JAVA_VERSION="17" # Recommended Java version (11 or 17)
NEO4J_VERSION_SERIES="5" # Neo4j 5.x stable series
# --- Functions ---
@sphinxid
sphinxid / GetLicenseAssignmentsMicrosoftReports.ps1
Created September 8, 2025 12:57
This PowerShell script generates a report of Office 365 license assignments and removals within a specified timeframe by querying the Microsoft Graph API. It connects to Microsoft Graph, fetches audit log data, and parses different log formats to identify license changes.
#Requires -Modules Microsoft.Graph.Authentication, Microsoft.Graph.Reports, Microsoft.Graph.Identity.DirectoryManagement
#
# Firman Gautama <[email protected]>
#
<#
.SYNOPSIS
Generate a report of Office 365 license assignments and removals
.DESCRIPTION
This script connects to Microsoft Graph and retrieves audit log data for license assignments