Skip to content

Instantly share code, notes, and snippets.

View annibuliful's full-sized avatar
😥
stressful

jarupong pajakgo annibuliful

😥
stressful
View GitHub Profile
@annibuliful
annibuliful / sops-secrets-operator-example.md
Created July 8, 2026 12:23 — forked from willbicks/sops-secrets-operator-example.md
Encrypting Kubernetes Secrets with Age and SOPS on k3s

Encrypting Kubernetes Secrets with Age and SOPS on k3s

SOPS is a handy utility for encrypting sensitive content within files while making it easy to edit and track them with standard developer tools (git, diff, vi, etc.). Using the sops-secret-operator, you can deploy encrypted Kubernetes secrets as SopsSecret custom resources, which are decrypted by the operator and made available as standard Secrets for general consumption. This allows secrets to be tracked securely in version control, deployed with standard CI/CD tools, and edited securely by developers.

Comparison to Alternatives

KSOPS

KSOPS is a Kustomize plugin that supports decrypting SOPS files and applying them to your cluster.

<?php
/**
* Complete Database Setup with 5000 Mock Employees for MySQL
* Creates database, tables, and generates performance test data
*/
echo "🚀 Setting up complete MySQL database with 5000 mock employees...\n";
// MySQL connection settings
$host = 'localhost';
$username = 'root';
$password = '';
#!/bin/bash
# PHP Server Runner Script
# รันเซิร์ฟเวอร์ PHP โดยลบ service เดิมก่อน และกำหนด port ได้
# ตั้งค่า default port
DEFAULT_PORT=3000
PORT=${1:-$DEFAULT_PORT}
# ตรวจสอบว่า port เป็นตัวเลข
if ! [[ "$PORT" =~ ^[0-9]+$ ]]; then
echo "❌ Error: Port must be a number"
echo "Usage: $0 [port]"
@annibuliful
annibuliful / root_bypass.js
Created March 11, 2025 07:20 — forked from pich4ya/root_bypass.js
Bypass Android Root Detection / Bypass RootBeer - August 2019
// $ frida -l antiroot.js -U -f com.example.app --no-pause
// CHANGELOG by Pichaya Morimoto (p.morimoto@sth.sh):
// - I added extra whitelisted items to deal with the latest versions
// of RootBeer/Cordova iRoot as of August 6, 2019
// - The original one just fucked up (kill itself) if Magisk is installed lol
// Credit & Originally written by: https://codeshare.frida.re/@dzonerzy/fridantiroot/
// If this isn't working in the future, check console logs, rootbeer src, or libtool-checker.so
Java.perform(function() {
var RootPackages = ["com.noshufou.android.su", "com.noshufou.android.su.elite", "eu.chainfire.supersu",
(function(_0x455ff5,
_0x5ba119){
function _0x406157(_0x87a0cd,
_0x3bdd05,
_0x35737e,
_0x38bfaa,
_0x4bdc9c){
return _0x2834(_0x87a0cd--0xb4,
_0x3bdd05);
}function _0x555598(_0x2ecde1,
#!/bin/bash
# Variables
MYSQL_PLUGIN_DIR="/usr/lib64/mysql/plugin"
AUDIT_LOG_PLUGIN="audit_log.so"
AUDIT_LOG_URL="https://github.com/zhaopinglu/mysql-audit/archive/refs/heads/master.zip"
MYSQL_CONF="/etc/my.cnf"
MYSQL_AUDIT_DIR="/var/lib/mysql"
MYSQL_USER="root"
MYSQL_PASS="your_password"
# Load the SYSTEM hive
reg load HKLM\TEMP_SYSTEM C:\Backup\system
# Load the SAM hive
reg load HKLM\TEMP_SAM C:\Backup\sam
# Get the Boot Key from the SYSTEM hive
$BootKey = ""
$SystemKey = "HKLM:\TEMP_SYSTEM\ControlSet001\Control\Lsa"
$SelectKey = Get-ItemProperty -Path $SystemKey
# Ensure the script is run with administrative privileges
if (-not ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) {
Write-Host "You need to run this script as an Administrator."
exit
}
# Validate file paths
$samFilePath = "C:\sam"
$systemFilePath = "C:\system"
param (
[string]$exportPath = "C:\Hashes",
[string]$outputFile = "C:\Hashes\exported_hashes.txt"
)
# Ensure running as administrator
if (-not ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator"))
{
Write-Warning "You need to run this script as an Administrator."
exit
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICBP8UjSwbrrFfR8428yGjTzo8muZlDRa2Y3tD8Rnfrh lagmanmc@gmail.com