Skip to content

Instantly share code, notes, and snippets.

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

Slanterns slanterns

💭
忽忽若有所亡
View GitHub Profile
@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
  • 博客
package hello
import πg "grumpy"
var Code *πg.Code
func init() {
Code = πg.NewCode("<module>", "hello.py", nil, 0, func(πF *πg.Frame, _ []*πg.Object) (*πg.Object, *πg.BaseException) {
var πR *πg.Object; _ = πR
var πE *πg.BaseException; _ = πE
ß := πg.InternStr("")
ß4 := πg.InternStr("4")
ßA := πg.InternStr("A")