Skip to content

Instantly share code, notes, and snippets.

View xg590's full-sized avatar

Xiaokang Guo xg590

  • China
View GitHub Profile
@NullArray
NullArray / extended-example.pac
Last active January 29, 2024 01:21
pac script example
// Simple PAC script example
function FindProxyForURL(url, host) {
if ( /*condition to pass the request through a local proxy server */ ) {
return 'PROXY 127.0.0.1:8080';
/* If you have Tor installed you can route this connection over Tor like so;*/
/* return 'PROXY 127.0.0.1:9050'; */
}
if ( /*condition to pass the request through a network proxy server */ ) {
@manuels
manuels / dtls-client.py
Last active September 11, 2020 08:55
dtls for python
# -*- coding: latin-1 -*-
#
# Copyright (C) AB Strakt
# Copyright (C) Jean-Paul Calderone
# See LICENSE for details.
"""
Simple SSL client, using blocking I/O
"""