Skip to content

Instantly share code, notes, and snippets.

View seramo's full-sized avatar
🏠
Working from home

Rasoul Mousavian seramo

🏠
Working from home
View GitHub Profile
@seramo
seramo / rtl-chatgpt.css
Created July 11, 2026 10:30
RTL Chat GPT
/* Chat messages */
[data-message-author-role="user"],
[data-message-author-role="assistant"] {
direction: rtl;
text-align: right;
}
/* Message input */
#prompt-textarea {
direction: rtl;
@seramo
seramo / simple-proxy.php
Created June 26, 2026 12:41
simple php proxy
<?php
declare(strict_types=1);
/**
* Dynamic PHP Proxy
*
* Usage:
* /simple-proxy.php?link=https%3A%2F%2Fexample.com%2Fpath%3Fa%3D1
*/
@seramo
seramo / direct2drive-colab.py
Last active April 24, 2026 22:06 — forked from sedruski/main.py
direct2drive colab
# Install
!pip install -q ipywidgets requests
from google.colab import output
output.enable_custom_widget_manager()
# Mount
from google.colab import drive
drive.mount('/content/drive')
# Imports
@seramo
seramo / trimming-x-graphql-params.md
Created April 22, 2026 15:16
trimming x graphql params

File: proxy_server.py

Search for: # Parse headers

Example:

# Parse headers
headers = {}
@seramo
seramo / commands-for-sharing-local-internet-with-autossh.sh
Last active July 5, 2026 15:05
commands for sharing local internet with autossh
# Update system packages
sudo apt update
# Install autossh for persistent SSH tunnels
sudo apt install autossh
# Generate SSH key (ed25519)
ssh-keygen -t ed25519
# Copy SSH key to remote server (port 9011)