- PHP
- PHP-curl
- Download it and put it into any folder
# -*- coding: utf-8 -*- | |
from __future__ import absolute_import | |
from __future__ import division | |
from __future__ import print_function | |
from argparse import ArgumentParser | |
from bs4 import BeautifulSoup | |
import os | |
import requests |
void validate_detector_PRcurve(char *datacfg, char *cfgfile, char *weightfile) | |
{ | |
list *options = read_data_cfg(datacfg); | |
char *valid_images = option_find_str(options, "valid", "data/voc.2007.test"); | |
network net = parse_network_cfg(cfgfile); | |
if(weightfile){ | |
load_weights(&net, weightfile); | |
} | |
set_batch_network(&net, 1); |
# -*- coding: utf-8 -*- | |
import time | |
import redis | |
import os | |
import cv2 | |
from threading import Thread | |
import requests | |
from tqdm import tqdm | |
from bs4 import BeautifulSoup |
from xmlrpc.client import Transport, GzipDecodedResponse | |
class CustomTransport(Transport): | |
def parse_response(self, response): | |
# Read response data from httpresponse, and parse it | |
# Check for new http response object, else it is a file object | |
if hasattr(response, 'getheader'): | |
if response.getheader("Content-Encoding", "") == "gzip": | |
stream = GzipDecodedResponse(response) |
#!/bin/bash | |
TMUX_VERSION="2.1" | |
LIBEVENT_VERSION="2.0.20" | |
NCURSES_VERSION="6.0" | |
# Set this flag to prevent errors | |
export CPPFLAGS="-P" | |
# Script for installing tmux on systems where you don't have root access. |
import torch | |
import torchvision | |
import torchvision.transforms as transforms | |
from torch.utils.data import DataLoader | |
import numpy as np | |
import os | |
from tqdm import tqdm, trange | |
from skimage.io import imsave | |
from easydict import EasyDict | |
from copy import deepcopy |
import base64 | |
server = "12.34.56.78" | |
port = "12345" | |
password = "Here is the password" | |
encrypt_method = "chacha20-ietf-poly1305" | |
s = "{}:{}".format(encrypt_method, password).encode() | |
print("ss://{}@{}:{}".format(base64.standard_b64encode(s).decode(), server, port)) |
Backup a specific binary release version of V2Ray.