Skip to content

Instantly share code, notes, and snippets.

@FurloSK
FurloSK / extract_har.py
Last active November 20, 2023 10:36 — forked from MrCheatEugene/extract_har.py
Python 3 script to extract images from HTTP Archive (HAR) files (Tested & working on Python 3.11)
#!/usr/bin/env python3
# Python 3 script to extract images from HTTP Archive (HAR) files (Tested & working on Python 3.11)
#
# Original code: kafran
# https://gist.github.com/kafran/0257c13b3d0a79620695b73062334930
# Updated code: Lewiscowles1986
# https://gist.github.com/Lewiscowles1986/645e79295efa84698f4e45cd06d610ea
# This code from: MrCheatEugene
# https://gist.github.com/MrCheatEugene/46ad8173e83efb70cf6543cb36629403
@FurloSK
FurloSK / Acrobat - Combine, reverse or alternate PDF pages.js
Created May 17, 2021 12:15
Combine, reverse or alternate PDF pages in Adobe Acrobat
// Combine, reverse or alternate PDF pages in Adobe Acrobat
//
// Original author: Planet PDF (http://www.planetpdf.com/)
// Modified by Jeff Baitis:
// added Acrobat 9 and Acrobat X compatibility; improved Collate function with status bar.
// Completely rewritten and tweaked by FurloSK.
// How to use:
// 1. Put this file into ~/Library/Application Support/Adobe/Acrobat/9.0/JavaScripts
// 2. Run Acrobat 9
@FurloSK
FurloSK / extractSubtitles.sh
Last active December 12, 2024 13:16
Extract subtitles from MKV/MP4 videos
#!/bin/sh
# Extract subtitles from each MKV/MP4 file in the given directory
# [updated 2024-01-09 by FurloSK]
# Permanent gist address: https://gist.github.com/FurloSK/7f52303a10ab7478e3cddfe4bcc50881
#
# ===== Usage =====
# extractSubtitles.sh [-i] [<fileOrDirectory>]
# -i
# Supplying this option will skip extraction and only print information about subtitles in file
# <fileOrDirectory>
#!/usr/bin/php
<?php
declare(strict_types = 1);
// require_once ('hhb_.inc.php');
hhb_init ();
if ($argc !== 3) {
fprintf ( STDERR, "usage: %s timestamp url\n", $argv [0] );
fprintf ( STDERR, "example: %s 20091012061648 http://www.p4w.se\n", $argv [0] );
die ( 1 );
}
@FurloSK
FurloSK / alarm_clock_spotify.scpt
Created January 25, 2019 00:09 — forked from ngopal/alarm_clock_spotify.scpt
Setup your mac to use Spotify as your alarm clock
# In order to use this script, you must replace 'YOURUSERNAMEHERE' with your Spotify username.
# Execute this script like so: 'osascript alarm_clock_spotify.scpt' (without single-quotes obviously)
# Full explanation here: http://www.nikhilgopal.com/2011/08/show-and-tell-applescript-spotify-alarm.html
# If you would like to specify a playlist, please refer to this gist: https://gist.github.com/3344118
set volume 2
open location "spotify:user:YOURUSERNAMEHERE:playlist:muzic"
tell application "Spotify"
set the sound volume to 0
play