Skip to content

Instantly share code, notes, and snippets.

cute /
Created Feb 21, 2022 — forked from steakknife/
OpenSSL configure options

Deprecated - Use LibreSSL Portable instead

OpenSSL Configure Options (1.0.1e)

Standard party line

Usage: Configure [no-<cipher> ...] [enable-<cipher> ...] [experimental-<cipher> ...]
                 [-Dxxx] [-lxxx] [-Lxxx] [-fxxx] [-Kxxx] [no-hw-xxx|no-hw]
                 [[no-]threads] [[no-]shared] [[no-]zlib|zlib-dynamic] [no-asm]

[no-dso] [no-krb5] [sctp] [386] [--prefix=DIR]

cute / stuns
Created Apr 21, 2021 — forked from zziuni/stuns
STUN server list
View stuns
# source :
# A list of available STUN server.
View Sample.conf
# 除了注释建议浏览官方手册(、帮助中心(以及技术社区(
bypass-system = true
loglevel = notify
replica = false
# TLS 引擎
tls-provider = default
# IPv6 支持(关闭)
ipv6 = false
cute / verifyReceipt.php
Created Sep 10, 2020 — forked from jamesstout/verifyReceipt.php
Verify iOS in-app purchase receipts
View verifyReceipt.php
// verifies receipt from iOS in-app purchase
// returns:
// 0 - if params missing
// 1 - if receipt is valid
// 2 - if invalid receipt, or invalid response from verification server
// or bundle/in-app IDs are incorrect
cute / gist:25c4b233f375dae92e9997bc7a92b542
Created Sep 10, 2020 — forked from paulirish/gist:5558557
a brief history of detecting local storage
View gist:25c4b233f375dae92e9997bc7a92b542

A timeline of the last four years of detecting good old window.localStorage.

Jan Lenhart, bless his heart contributed the first patch for support:

October 2009: 5059daa

View Script_All_in_one.sgmodule
#!name=Script - All in one . By nzw9314
#!desc=该模块为脚本合集,用于Remove Ads + unlock vip.集成: NobyDa、yichahucha、Choler、onewayticket、langkhach以及个人收集整理的脚本. 需要配置 CA 证书并启用 MitM 开关. 您可以在使用后手动将本模块禁用,以免产生不必要的MITM.如果您是YouTube会员.请添加-*.googlevideo.com到hostname,否则无法加载视频.
# > 优酷 去广告
force-http-engine-hosts = %APPEND%
# > 京东 去启动广告
cute /
Created Aug 21, 2020 — forked from Jxck/


The API used for DTLS is mostly the same as for TLS, because of the mapping of generic functions to protocol specifc ones. Some additional functions are still necessary, because of the new BIO objects and the timer handling for handshake messages. The generic concept of the API is described in the following sections. Examples of applications using DTLS are available at [9].

DTLS の API は TLS とほぼ同じ。 BIO オブジェクトの生成とタイマのために追加でいくつか必要。

cute / ssl_server_nonblock.c
Created Nov 28, 2019 — forked from darrenjs/ssl_server_nonblock.c
OpenSSL example using memory BIO with non-blocking socket IO
View ssl_server_nonblock.c
This file had now been added to the git repo
... which also includes a non blocking client example.
ssl_server_nonblock.c -- Copyright 2017 Darren Smith -- MIT license
View main.c
#include <errno.h>
#include <stdio.h>
#include <unistd.h>
#include <netinet/tcp.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/socket.h>
int main(int argc, char **argv) {
cute /
Created Sep 27, 2019 — forked from surjikal/
Compile OpenSSH Portable on OSX
brew install openssl

git clone git://
cd openssh

# ./configure script does not exist, so we have to build it

mkdir dist