Skip to content

Instantly share code, notes, and snippets.

@ShahinDadashpour
ShahinDadashpour / install-docker.sh
Created June 3, 2026 10:15
Docker installer for Debian/Ubuntu/CentOS/Fedora — Iranian registry mirrors included
#!/usr/bin/env bash
# =============================================================================
# Docker installation script for Debian/Ubuntu/CentOS/Fedora and derivatives.
# Features: multi-distro support, wget fallback for restricted networks,
# Iranian registry mirrors, log rotation, live-restore, and docker group setup.
# Usage: sudo bash install-docker.sh
# =============================================================================
set -euo pipefail
@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
@sedruski
sedruski / main.py
Created April 23, 2026 15:41
Colab / Drive (yt-dlp)
# ==============================
# Install & Fix Widgets
# ==============================
!pip install -q ipywidgets requests yt-dlp
from google.colab import output
output.enable_custom_widget_manager()
# ==============================
# Mount Drive
# ==============================
@ircfspace
ircfspace / worker.js
Created September 18, 2025 08:05
Simple GitHub Raw Proxy Worker
export default {
async fetch(request) {
const url = new URL(request.url);
const path = url.pathname.replace(/^\/+/, "");
const parts = path.split("/");
if (parts.length < 4) {
return new Response("Usage: /owner/repo/branch/path/to/file.ext", { status: 400 });
}
const [owner, repo, branch, ...filePathParts] = parts;
const filePath = filePathParts.join("/");
92.243.74.0/24
185.148.106.0/24
77.232.142.0/24
194.76.18.0/24
31.43.179.0/24
194.59.5.0/24
45.80.111.0/24
45.135.235.0/24
38.180.154.0/24
13.36.140.0/24