Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / 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 / 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: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:9fa6674457fc563cf9aeb10e1ba4649a
Created April 13, 2025 10:53
YABS Benchmark - BiznetGio NeoLite SS 2.2 - 2core 2GBram 60GBdisk @ 100rb/bulan
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #
# Yet-Another-Bench-Script #
# v2025-01-01 #
# https://github.com/masonr/yet-another-bench-script #
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #
Sun Apr 13 16:57:24 WIB 2025
Basic System Information:
---------------------------------
@sphinxid
sphinxid / gist:ef4edc12f0d48c01a2eb20d812448778
Created April 13, 2025 10:53
YABS Benchmark - VPS NevaCloud Nevalite - 2core 2GBram 30GBdisk @ 100rb/bulan (20250413)
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #
# Yet-Another-Bench-Script #
# v2025-01-01 #
# https://github.com/masonr/yet-another-bench-script #
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #
Sun Apr 13 10:09:20 UTC 2025
Basic System Information:
---------------------------------
#!/usr/bin/env python3
import argparse
import mysql.connector
import time
import random
import signal
import sys
from datetime import datetime
from typing import Optional
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/37.0.2062.94 Chrome/37.0.2062.94 Safari/537.36
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36
Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/600.8.9 (KHTML, like Gecko) Version/8.0.8 Safari/600.8.9
Mozilla/5.0 (iPad; CPU OS 8_4_1 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12H321 Safari/600.1.4
Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.10240
Mozilla/5.0 (Windows NT 6.3; WOW64; rv:40.0)
@sphinxid
sphinxid / settings.json
Created November 17, 2024 08:51
vscode microsoft gallery url
"extensions.gallery": {
"serviceUrl": "https://marketplace.visualstudio.com/_apis/public/gallery",
"cacheUrl": "https://vscode.blob.core.windows.net/gallery/index",
"itemUrl": "https://marketplace.visualstudio.com/items"
}