Skip to content

Instantly share code, notes, and snippets.

@secator
secator / sync-iphone.ps1
Created Aug 11, 2021
Powershell Script Sync iPhone
View sync-iphone.ps1
# Powershell Script Sync iPhone v0.0.2
#
# Copy Files (Images/Videos) to PC
# Copy Files Created After `date`
# Rename Files to "yyyyMMdd_HHmmss.ext" (android style)
#
# Usage:
# .\sync-iphone.ps1
# .\sync-iphone.ps1 -After 2021-07-01
# .\sync-iphone.ps1 -After last
@secator
secator / CustomRules.js
Created Jul 21, 2021
fiddler url repeater
View CustomRules.js
/*
https://example.com/?id={@start_decimal@,@limit_decimal@}
https://example.com/?id={@0@,@999@}
*/
static function OnBeforeRequest(oSession: Session) {
var regex = /{@([0-9]+)@,@([0-9]+)@}/i;
var repeater = oSession.PathAndQuery.match(regex);
if (repeater) {