国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
| import requests | |
| import json | |
| import random | |
| Back_URL = 'https://api.bilibili.com/x/web-interface/archive/stat?aid=' | |
| headers = { | |
| 'Cookie': "Replace Me With REAL COOKIE" , | |
| 'Pragma': 'no-cache', |
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
| #!/bin/bash | |
| # Author: kenshin17 | |
| # OS: Centos 7 | |
| # Description: Script install NDP Proxy Daemon, active full subnet ipv6. | |
| IPv6SUBNET="xxxx:xxxx:xxxx:xxxx::/64" | |
| echo "######################## CONFIG SYSCTL #########################" | |
| echo "net.ipv6.conf.all.accept_ra = 2" >> /etc/sysctl.conf | |
| echo "net.ipv6.conf.eth0.accept_ra = 2" >> /etc/sysctl.conf |
| from selenium import webdriver | |
| from selenium.webdriver.common.keys import Keys | |
| import requests | |
| import time | |
| import re | |
| import json | |
| import time | |
| def login(): | |
| options = webdriver.ChromeOptions() |
| [General] | |
| loglevel = warning | |
| bypass-system = true | |
| skip-proxy = 192.168.0.0/16,10.0.0.0/8,172.16.0.0/12,localhost,*.local,*.lan | |
| bypass-tun = 192.168.0.0/16,10.0.0.0/8,172.16.0.0/12 | |
| dns-server = 114.114.114.114,114.114.115.115 | |
| [Proxy] | |
| PROXY = custom,服务器地址,服务器端口,加密方式,密码,模块地址,tcp-fast-open=true |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # 此脚本不再更新, 毕竟要依赖第三方pycurl库. | |
| # 重写的脚本不再依赖非标准库, 感兴趣的见: https://github.com/isayme/v2ex | |
| import sys | |
| import string | |
| try: | |
| import pycurl2 as pycurl |
| <?php | |
| /** | |
| * 加密 hash,生成发送给用户的 hash 字符串 | |
| * | |
| * @param array $hash_data | |
| * @param string $hash_key | |
| * @return string | |
| */ | |
| function encode_hash($hash_data, $hash_key = false) |
| <?php | |
| $result = array(); | |
| $result_html = ''; | |
| if (isset($_POST['domain']) && !empty($_POST['domain'])) { | |
| $domain_regex = '/[a-z\d][a-z\-\d\.]+[a-z\d]/i'; | |
| if (preg_match($domain_regex, $_POST['domain'])) { | |
| if ($url = parse_url($_POST['domain'])) { //compatible when user post an url instead of a domain | |
| if (isset($url['host'])) { | |
| $result = dns_get_record($url['host'], DNS_A + DNS_AAAA + DNS_CNAME); | |
| } else if (isset($url['path'])) { |
| #!/bin/bash | |
| # Interactive PoPToP install script on a OpenVZ VPS | |
| # Tested on Debian 5, 6, and Ubuntu 11.04 | |
| # 2011 v1.1 | |
| # Author: Commander Waffles | |
| # http://www.putdispenserhere.com/pptp-debian-ubuntu-openvz-setup-script/ | |
| echo "######################################################" | |
| echo "Interactive PoPToP Install Script for OpenVZ VPS" | |
| echo "by Commander Waffles http://www.putdispenserhere.com" |