Skip to content

Instantly share code, notes, and snippets.

@ig-gh
ig-gh / git-deployment.md
Created December 16, 2023 03:40 — forked from noelboss/git-deployment.md
Simple automated GIT Deployment using Hooks

Simple automated GIT Deployment using GIT Hooks

Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.

How it works

You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like deepl.io to act upon a Web-Hook that's triggered that service.

@ig-gh
ig-gh / azure-openai-proxy.py
Created April 24, 2025 16:54 — forked from israrwz/azure-openai-proxy.py
Azure OpenAI in Zed Editor
from http.server import BaseHTTPRequestHandler, HTTPServer
import json
import requests
import re
AZURE_API_ENDPOINT = "<YOUR_DEPLOYMENT_ENDPOINT_URL>"
# "https://****************.cognitiveservices.azure.com/openai/deployments/o3-mini"
AZURE_API_VERSION = "<DEPLOYMENT_API_VERSION>"
# "2025-01-01-preview"
AZURE_API_KEY = "<YOUR_API_KEY>"
@ig-gh
ig-gh / telegramRestore.md
Created September 14, 2025 08:59 — forked from avivace/telegramRestore.md
Restore deleted Telegram messages from groups

Restore deleted Telegram messages, medias and files from groups

There's not telegram API method for this, we need to call MTProto methods to retrieve messages from the "Recent Actions" (Admin Log) since deleted messages (and medias) gets moved there for 48 hours before the permanent deletion.

from telethon import TelegramClient, events, sync
from telethon.tl.types import InputChannel, PeerChannel