Skip to content

Instantly share code, notes, and snippets.

@PollyP
PollyP / intel_pintools_vs2019.md
Last active December 19, 2023 14:52
Building and Running Intel Pintools with VS 2019 on Windows 10
@PollyP
PollyP / gist:026ffa962a76cc44c9e287ad1dad8d1b
Created September 28, 2022 00:20
Postman HTTPS proxy on Kali
I'm using Postman on Kali. I've set up Postman as a proxy on Chrome (using FoxyProxy) and can capture requests
over HTTP while I interact with my target site in Chrome. Awesome!
Now I want to capture requests running over HTTPS. According to the Postman documentation at
https://learning.postman.com/docs/sending-requests/capturing-request-data/capturing-https-traffic/#installing-the-certificate-for-use-with-chrome,
all I need to do is install the postman-proxy-ca.crt certificate that's in ~/.config/Postman/proxy in Chrome's CA certificate
store ... except that postman-proxy-ca.crt doesn't exist?!?
According to @mjhika's comment at https://community.postman.com/t/i-cant-found-the-postman-proxy-ca-crt-certificate-in-my-computer/23177/3,
this is because Postman requires OpenSSL version 1.1.1.1. The July 2022 version of Kali, which is the version I'm running,
@PollyP
PollyP / gist:8defecc0840eb32cca9845a854915da3
Created April 19, 2024 00:58
Batch conversion of .CR3 (Canon compressed raw files) images into .PNG files on Linux
Install RawTherapee, available from https://rawtherapee.com/downloads/5.10/.
My package manager had the old 5.8 one that couldn't handle .CR3 files, so I grabbed the 5.10 AppImage
and extracted the CLI tool with --appimage-extract.
Basic command line usage example: rawtherapee-cli -o ../canon-png/IMG_4555.CR3 -s -t -Y -c canon-raw/IMG_4555.CR3
Batch bash script: for f in canon-raw/*.CR3 ; do newf=./canon-png/`basename $f`; raw-therapee-cli -o $newf -s -t -Y -c $f; done
More examples at RawTherapee's CLI usage page: https://rawpedia.rawtherapee.com/Command-Line_Options
@PollyP
PollyP / gist:9038a731670daead270f3f9b108f316f
Created April 22, 2024 17:51
Using DarkTable 4.6.1 with images/sidecars shared between two systems on an external drive
I wanted to be able to put my raw images on an external drive and edit them with DarkTable from both a Linux and a MacOS system.
The following approach seems to work?
- Install DarkTable on both Linux and MacOS. In both copies, point the base directory naming pattern to a folder on my external drive (prefs->import->base directory naming pattern).
I also went to prefs->storage->look for updated xmp files on startup and checked it.
- On the Linux box, do a *copy import of my raw files to get them on the external drive, construct the xml sidecar files, and
build the library.db file for the local OS.
- On the MacOS box, do a *NON copy import* of my external drive to grab the sidecar files and build the library.db for the
local OS.