Skip to content

Instantly share code, notes, and snippets.

@daothinh
daothinh / install_zsh_hacking.sh
Last active February 7, 2026 16:51
Auto Setup Zsh Hacking Style (Kali Linux) 1-Click
#!/bin/bash
# ==============================================================================
# Script: setup_omz_hacking.sh
# Description: One-click setup for Oh My Zsh with 'half-life' theme
# and Kali-style plugins (autosuggestions, syntax-highlighting).
# Author: daothinh
# ==============================================================================
set -e
@daothinh
daothinh / dumprequest.php
Created March 21, 2025 08:29 — forked from magnetikonline/dumprequest.php
PHP script to dump full HTTP request to file (method, HTTP headers and body).
<?php
// https://gist.github.com/magnetikonline/650e30e485c0f91f2f40
class DumpHTTPRequestToFile {
public function execute($targetFile) {
$data = sprintf(
"%s %s %s\n\nHTTP headers:\n",
$_SERVER['REQUEST_METHOD'],
$_SERVER['REQUEST_URI'],
$_SERVER['SERVER_PROTOCOL']