This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Provide high-level UDP endpoints for asyncio. | |
Example: | |
async def main(): | |
# Create a local UDP enpoint | |
local = await open_local_endpoint('localhost', 8888) | |
# Create a remote UDP enpoint, pointing to the first one |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import clr | |
import sys | |
if sys.platform.lower() not in ['cli','win32']: | |
print("only windows is supported for wpf") | |
clr.AddReference(r"wpf\PresentationFramework") | |
from System.IO import StreamReader | |
from System.Windows.Markup import XamlReader | |
from System.Threading import Thread, ThreadStart, ApartmentState | |
from System.Windows import Application, Window, WindowState |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
########## | |
#parent.py | |
########## | |
import subprocess | |
import pickle | |
process = subprocess.Popen( | |
['python', 'child.py'], | |
stdin=subprocess.PIPE, | |
stdout=subprocess.PIPE, | |
bufsize=0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get update | |
apt-get upgrade | |
apt-get install git | |
git clone -b manyuser https://github.com/shadowsocksr-backup/shadowsocksr.git | |
cd shadowsocksr/ | |
apt-get install build-essential | |
wget https://github.com/jedisct1/libsodium/releases/download/1.0.12/libsodium-1.0.12.tar.gz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype HTML> | |
<head> | |
<style> | |
.green { | |
color: green; | |
} | |
</style> | |
</head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function api_encode_uid($uid) | |
{ | |
$sid = ($uid & 0x0000ff00) << 16; | |
$sid += (($uid & 0xff000000) >> 8) & 0x00ff0000; | |
$sid += ($uid & 0x000000ff) << 8; | |
$sid += ($uid & 0x00ff0000) >> 16; | |
$sid ^= 282335; |