Skip to content

Instantly share code, notes, and snippets.

bviews /
Last active Aug 13, 2017
Install openssl / openssh from source on Ubuntu 16.04 手动编译安装 Openssl openssh

在 Ubuntu 上手动安装最新版本的 openssl、openssh

由于Ubuntu 16.04带的 openssl、openssh 版本太低,过不了漏洞扫描。需要手动去官网下载最新版本自行编译安装。一下记录一下步骤。


openssl 从 下载。 下载 openssl-1.xx.tar.gz 同时下载 openssl-fips-2.0.xx.tar.gz

bviews / version-script.patch
Last active Aug 13, 2017
version script for openssl 1.0.2l
View version-script.patch
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";
bviews / openssl.ld
Created Aug 13, 2017
openssl.ld for OPENSSL_1.0.2l
View openssl.ld
OPENSSL_1.0.0 {
View gist:bbd37af4d4aa3f7609a72292d4a75da2

1. Clone your fork:

git clone

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://
git fetch upstream
bviews / com.foobar.ifconfiglo.plist
Created May 22, 2017 — forked from vvoody/com.foobar.ifconfiglo.plist
ifconfig alias loopback on macOS startup
View com.foobar.ifconfiglo.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
bviews /
Created Dec 15, 2016 — forked from jart/
Multithreaded Python os.walk
# 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
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
bviews /
Created Nov 14, 2016 — forked from oldo/
A python function utilising `ffprobe` to find any metadata related to a video file. Examples of what it can find include bitrate, fps, codec details, duration and many more. This gist returns the video height and width as an example.
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)
import json
from functools import wraps
from flask import redirect, request, current_app
def support_jsonp(f):
"""Wraps JSONified output for JSONP"""
def decorated_function(*args, **kwargs):
callback = request.args.get('callback', False)
if callback: