Skip to content

Instantly share code, notes, and snippets.

@16892434
16892434 / Quah-D-2020.08-Pandoc-Workflow-Markdown-PDF.md
Created December 21, 2021 10:35 — forked from DannyQuah/2020.08-D.Quah-Pandoc-Workflow-Markdown-PDF.md
My Pandoc Markdown-PDF Workflow for Routine, Not Especially Technical Writing

My Pandoc Markdown-PDF Workflow for Routine, Not Especially Technical Writing

by Danny Quah Aug 2020

TL;DR: I write technical articles in LaTeX. But shorter, non-technical writings are easier to do in Markdown. How do I produce PDF from Markdown documents? Answer: provide YAML information in the Markdown; run Pandoc (typically through a Makefile or Atom's Markdown Preview Enhanced). To make all this work, some adjustment is needed in Pandoc options and template files.

Pandoc is a filter that takes a written document in its given format, and produces a version of that same document in yet a different format. I use Pandoc primarily to transform Markdown documents to PDF, but I also draw on Pandoc to convert Word or ODT documents to Markdown. Or vice versa.

@16892434
16892434 / readme.md
Created February 5, 2023 01:51 — forked from h1code2/readme.md
FRIDA抓包相关笔记/常用操作 #frida #抓包 #hook #okhttp #proxy #pinning # ssl

FRIDA抓包相关笔记/常用操作

原文链接:https://api-caller.com/2019/11/05/capture-note/

抓包应该是被问到最多的事情了, 记录一些片段.

珍惜Any 之前提过 一种思路 是遍历所有类, 按照特征去判断校验类和方法.

此处的思路则是, 先跑一遍并让它失败, 找到特征打印堆栈, 即可锁定位置, 再行 hook 即可.

@16892434
16892434 / How to Install JDK MacOS Homebrew.md
Created February 4, 2023 13:18 — forked from gwpantazes/How to Install JDK MacOS Homebrew.md
How to install different JDK versions on MacOS with Homebrew

How To Install Different JDK Versions on MacOS with Homebrew

Keywords: Java, JDK (Java Development Kit), MacOS, Homebrew, Specific Version

This how-to guide covers how to install different versions of the JDK on MacOS with Homebrew.

Table of Contents

@16892434
16892434 / main.go
Created January 11, 2023 08:06 — forked from daehee/main.go
chromedp - get response headers
// https://stackoverflow.com/a/56602780
package main
import (
"context"
"io/ioutil"
"log"
"os"
"time"
@16892434
16892434 / sshtunnel.go
Created June 10, 2021 01:16 — forked from iamralch/sshtunnel.go
SSH tunnelling in Golang
package main
import (
"log"
"bufio"
"time"
"os"
"fmt"
"io"
"net"
http://www.sohu.com/a/131128039_505813
电商后台设计
本文包括以下几个部分:
电商后台系统概述
电商后台产品设计:商品中心
电商后台产品设计:订单拆单
电商后台产品设计:促销活动解析
电商后台产品设计:优惠券的设计和妙用
@16892434
16892434 / read_gzip_lines.go
Created October 14, 2022 08:55 — forked from lovasoa/read_gzip_lines.go
How to Read Lines from GZIP-Compressed Files in Go
package main
import (
"bufio"
"compress/gzip"
"fmt"
"io"
"log"
"os"
)
@16892434
16892434 / gzipWriter.go
Created October 14, 2022 08:54 — forked from mchirico/gzipWriter.go
Example of writing a gzip file in go (golang). This appends data to the same file every time it is run. It is important to Flush() the data before closing the file.
/*
This is an example of a golang gzip writer program,
which appends data to a file.
*/
package main
@16892434
16892434 / setcookie.go
Created October 13, 2022 03:03 — forked from NaniteFactory/setcookie.go
chromedp set-cookie example
package main
import (
"context"
"fmt"
"log"
"time"
"github.com/chromedp/cdproto/cdp"
"github.com/chromedp/cdproto/network"
@16892434
16892434 / JSONSaveLoad.swift
Created September 9, 2022 07:15 — forked from norsez/JSONSaveLoad.swift
Load and Save JSON objects into a local file (written in Swift)
import Foundation
/**
Extension to save/load a JSON object by filename. (".json" extension is assumed and automatically added.)
*/
extension JSONSerialization {
static func loadJSON(withFilename filename: String) throws -> Any? {
let fm = FileManager.default