Skip to content

Instantly share code, notes, and snippets.

View slanterns's full-sized avatar
💭
忽忽若有所亡

Slanterns slanterns

💭
忽忽若有所亡
View GitHub Profile
define void @provide(ptr noalias noundef nonnull readonly align 1 %self, ptr nocapture noundef nonnull align 8 %request.0, ptr noalias nocapture noundef readonly align 8 dereferenceable(24) %request.1) unnamed_addr #1 personality ptr @__CxxFrameHandler3 {
start:
%_21.i.i = load i64, ptr %request.0, align 8, !noalias !7, !noundef !7
switch i64 %_21.i.i, label %_ZN4core5error7Request7provide17hd1541e8c555bf191E.exit25 [
i64 -6855324817394048981, label %bb5.i.i
i64 -154245119238195431, label %bb5.i.i3
i64 2948784846192157939, label %bb5.i.i11
]
bb5.i.i: ; preds = %start
@slanterns
slanterns / DumpAZW6_py3.py
Created December 8, 2022 21:16 — forked from squaresmile/DumpAZW6_py3.py
Dump images in Kindle's AZW6 (.azw.res) file (Python3 version of this script: https://www.mobileread.com/forums/showpost.php?p=3114050&postcount=1145)
import argparse
import imghdr
import os
import struct
def get_image_type(imgname, imgdata=None):
imgtype = imghdr.what(imgname, imgdata)
# horrible hack since imghdr detects jxr/wdp as tiffs
slanterns@LAPTOP-EGD4SAUE:~$ openssl s_client -connect slanterns.net:443 -tls1_3 -keylogfile=sslkeylog.log -sess_out=tls13.sess CONNECTED(00000006)
depth=2 O = Digital Signature Trust Co., CN = DST Root CA X3
verify return:1
depth=1 C = US, O = Let's Encrypt, CN = Let's Encrypt Authority X3
verify return:1
depth=0 CN = slanterns.net
verify return:1
---
Certificate chain
0 s:CN = slanterns.net
#requires -Version 2 -Modules posh-git
function Write-Theme {
param(
[bool]
$lastCommandFailed,
[string]
$with
)
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"globals" :
{
"alwaysShowTabs" : true,
"defaultProfile" : "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"initialCols" : 120,
"initialRows" : 30,
"keybindings" :
[
// This file was initially generated by Windows Terminal 1.0.1401.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
// This file was initially generated by Windows Terminal 1.0.1401.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"copyOnSelect": false,
"copyFormatting": false,
"theme": "dark",
"confirmCloseAllTabs": false,
"profiles":
{
"defaults":

title: The PUJI Introduction to NGINX ver.2019.11 date: 2019-10-28 22:51:24 updated: 2023-04-09 15:42:59 tags:

  • Hexo
  • nginx
  • TLS/HTTPS
  • Let's Encrypt
  • 博客