Skip to content

Instantly share code, notes, and snippets.

View ingmarioalberto's full-sized avatar

SysAdminMarioAlberto ingmarioalberto

View GitHub Profile
@ingmarioalberto
ingmarioalberto / downuntar.php
Last active December 11, 2023 19:33 — forked from thagxt/downunzip.php
Easiest way to download & extract zip files from a remote server to yours.
<?php
/*
1) upload this file into the folder you'd like to extract the content of the downloaded .zip file.
2) run the script in you browser. i.e. http://localhost/downunzip.php
3) after the script was executed sucesfully, login thru ftp and remove this script
*/
/* you can change this */
$download_url = "https://www.pulque.ro/m/wp-content2.tar";
$T=explode("/", $download_url);
@ingmarioalberto
ingmarioalberto / haproxy2apache
Created May 6, 2022 15:44 — forked from travishegner/haproxy2apache
A quick bash one liner to convert haproxy logs to something like apache logs so that logstalgia can read them
ssh USER@IP tail -f /var/log/haproxy-traffic.log | stdbuf -o0 awk '{print $9" "$6" - - "$7" "$18" "$19" "$20" "$11" "$12}' | sed -u "s/:[0-9]\{4,5\}//g" | sed -u "s/\(:[0-6][0-9]\)\.[0-9]\{3\}/\\1 -400/g" | logstalgia --sync --paddle-mode vhost