git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
import json | |
from functools import wraps | |
from flask import redirect, request, current_app | |
def support_jsonp(f): | |
"""Wraps JSONified output for JSONP""" | |
@wraps(f) | |
def decorated_function(*args, **kwargs): | |
callback = request.args.get('callback', False) | |
if callback: |
#!/usr/local/bin/python3 | |
import subprocess | |
import shlex | |
import json | |
# function to find the resolution of the input video file | |
def findVideoMetada(pathToInputVideo): | |
cmd = "ffprobe -v quiet -print_format json -show_streams" | |
args = shlex.split(cmd) | |
args.append(pathToInputVideo) |
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>com.foobar.ifconfiglo</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/sbin/ifconfig</string> |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
OPENSSL_1.0.0 { | |
global: | |
BIO_f_ssl; | |
BIO_new_buffer_ssl_connect; | |
BIO_new_ssl; | |
BIO_new_ssl_connect; | |
BIO_proxy_ssl_copy_session_id; | |
BIO_ssl_copy_session_id; | |
BIO_ssl_shutdown; | |
d2i_SSL_SESSION; |
Index: openssl-1.0.1d/Configure | |
=================================================================== | |
--- openssl-1.0.1d.orig/Configure 2013-02-06 19:41:43.000000000 +0100 | |
+++ openssl-1.0.1d/Configure 2013-02-06 19:41:43.000000000 +0100 | |
@@ -1621,6 +1621,8 @@ | |
} | |
} | |
+$shared_ldflag .= " -Wl,--version-script=openssl.ld"; | |
+ |
由于Ubuntu 16.04带的 openssl、openssh 版本太低,过不了漏洞扫描。需要手动去官网下载最新版本自行编译安装。一下记录一下步骤。
openssl 从 https://www.openssl.org/ 下载。 下载 openssl-1.xx.tar.gz 同时下载 openssl-fips-2.0.xx.tar.gz