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
#!/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