Skip to content

Instantly share code, notes, and snippets.

@brianglass
brianglass / proxy.py
Created July 29, 2021 17:41
Django Channels Websocket Proxy
import asyncio
import logging
import websockets
from channels.exceptions import DenyConnection
from channels.generic.websocket import AsyncWebsocketConsumer
from django.utils.functional import cached_property
logger = logging.getLogger(__name__)
@gmolveau
gmolveau / golang_offline.md
Last active May 29, 2024 19:23
golang mod offline dependencies download

golang offline module dependencies download

Using go mod vendor

0 - With an existing module

  • copy go.mod and go.sum files from the offline PC to the internet PC

0bis - New module

@ozbillwang
ozbillwang / Git_Behind_Proxy.md
Last active May 20, 2025 14:14
Configure Git to use a proxy (https or SSH+GIT)