Skip to content

Instantly share code, notes, and snippets.

View taheri24's full-sized avatar
🎯
Focusing

Majid Taheri taheri24

🎯
Focusing
  • qlub.io
  • Istanbul
View GitHub Profile
@taheri24
taheri24 / README.md
Created November 8, 2025 16:17
Go HTTP Forward Proxy with Raw HTTP Request Logging

Go HTTP Forward Proxy with Raw HTTP Request Logging

This Go-based HTTP server acts as a forward proxy, handling incoming requests and forwarding them to target URLs based on path matching defined in a path.json file. The server logs each incoming request in raw HTTP message format (request line, headers, body) to .http files, ensuring compatibility with HTTP file examples.

  • Uses only built-in Go packages (Go 1.25).
  • Logs requests in a clear, structured HTTP format for easy debugging or analysis.
  • Supports dynamic path-based routing to forward requests to different targets.
  • Saves request details to uniquely named .http files, ensuring no overwrites.
  • Simple and lightweight, ideal for debugging and testing HTTP-based interactions.
@taheri24
taheri24 / .env
Created November 4, 2025 10:53
Docker Compose for SQL Server with Adminer Management Panel
SA_PASSWORD=Contraseña12345678
@taheri24
taheri24 / bot.md
Last active September 29, 2025 12:29

Project Structure

config/start.xml

<start_config>
    <intro parse_mode="HTML">
        <![CDATA[
Welcome to our bot! This is the introduction text that users see when they start the conversation.

Features:
@taheri24
taheri24 / CustomCommitPurchase.xml
Created September 2, 2022 09:27
masterpass issue
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<CustomCommitPurchase xmlns="http://phaymobile.cardtekgroup/Tmm/">
<CustomCommitPurchaseRequest xmlns="http://phaymobile.cardtekgroup/Tmm/RemotePurchaseP2M">
<transaction_header>
<client_id xmlns="http://phaymobile.cardtekgroup/Tmm/CommonTypes">34708378</client_id>
<request_datetime xmlns="http://phaymobile.cardtekgroup/Tmm/CommonTypes">2022-09-01T18:16:17.440685983+03:00</request_datetime>
<request_reference_no xmlns="http://phaymobile.cardtekgroup/Tmm/CommonTypes">5386538943</request_reference_no>
<send_sms xmlns="http://phaymobile.cardtekgroup/Tmm/CommonTypes">N</send_sms>
@taheri24
taheri24 / beta-golang-fmt.sh
Last active March 25, 2022 13:41
golang local CI
#!/bin/zsh
rm test.out
go build -o test.out ./cmd/cli-clubpay/*.go
if [ -f "./test.out" ]; then
else
echo "Build fail"
exit 3
fi
# Check for errors and warnings
@taheri24
taheri24 / Readme.md
Created May 26, 2019 05:48
gulp-resources

#gulp-resources

Extracts js/css/less and other resources from html

Installation

npm install --save-dev gulp-resources
@taheri24
taheri24 / add-to-gopath.cmd
Last active March 13, 2019 07:57
solve GOPATH issue , Add link to gopath in windows
ECHO @off
if exist %cd%\main.go (
REM 1
) else (
ECHO main.go not found in %cd%
goto :eof
)
SET PROJECT_NAME=%1
SET SRC_PATH=%cd%
###########################################
### NODE(NVM) #############################
###########################################
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.32.1/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
nvm install node
cd ..
@taheri24
taheri24 / choco-items.bat
Created November 21, 2016 20:57
Choco Toolbox
choco install googlechrome
choco install winrar
choco install jre8
choco install firefox
choco install adobereader
choco install notepadplusplus.install
choco install nodejs
choco install autohotkey.portable
choco install git
@taheri24
taheri24 / java_install.sh
Created November 20, 2016 11:59 — forked from rjurney/java_install.sh
How to automagically install Oracle JDK 1.8 on CentOS
# Install Java 1.8 in CentOS/RHEL 6.X
sudo yum remove -y java-1.6.0-openjdk
wget --no-cookies \
--no-check-certificate \
--header "Cookie: oraclelicense=accept-securebackup-cookie" \
"http://download.oracle.com/otn-pub/java/jdk/8-b132/jdk-8-linux-x64.rpm" \
-O jdk-8-linux-x64.rpm
sudo rpm -Uvh jdk-8-linux-x64.rpm
sudo alternatives --install /usr/bin/java java /usr/java/jdk1.8.0/jre/bin/java 20000
sudo alternatives --install /usr/bin/jar jar /usr/java/jdk1.8.0/bin/jar 20000