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 os | |
| import re | |
| import sys | |
| import hashlib | |
| import time | |
| import locale | |
| import requests | |
| from bs4 import BeautifulSoup |
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
| FROM ubuntu:20.04 | |
| # 先把套件庫切換到國網中心加速 | |
| RUN sed -i 's/\(archive\|security\).ubuntu.com/free.nchc.org.tw/' /etc/apt/sources.list && \ | |
| dpkg --add-architecture i386 && \ | |
| apt-get update | |
| # 搞定時區問題 | |
| # 如果沒處理, 安裝 software-properties-common 可能會弄爛 | |
| RUN export DEBIAN_FRONTEND=noninteractive && \ |
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
| ''' | |
| I/O test for asyncio.Queue | |
| QSIZE = 300000 | |
| QFILL = 300000 | |
| FORCE_SWITCH = False | |
| enqueue(): Put 100000 items. | |
| enqueue(): Put 200000 items. | |
| enqueue(): Put 300000 items. |
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 | |
| require_once 'vendor/autoload.php'; | |
| use Dapphp\Radius\Radius; | |
| $username = '...'; | |
| $password = '...'; | |
| $host = '...'; | |
| $secret = '...'; |
OlderNewer