Skip to content

Instantly share code, notes, and snippets.

View MetehanYurtseven's full-sized avatar

Metehan Yurtseven MetehanYurtseven

View GitHub Profile
-----BEGIN PGP PUBLIC KEY BLOCK-----
mDMEaCKPaRYJKwYBBAHaRw8BAQdASgE7IPtHHKeT6Bs8A7DjnBRsWtyuMpsoZbMJ
0o/V4h60ME1ldGVoYW4gWXVydHNldmVuIDxtZXRlaGFuLnl1cnRzZXZlbkBpY2xv
dWQuY29tPoiTBBMWCgA7FiEEPldm/x5cVlknvpFc1PjQJzuQck0FAmgij2kCGwMF
CwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQ1PjQJzuQck2fSwEAj0l3Lr3m
PRaoNSA/nF6NLeip8l8e6SAeL++9D5KHxygBALl4o7xa3ltTs5GiaQ4RVcsUlj6l
LI1vRG1qfKosOg8EuDgEaCKPaRIKKwYBBAGXVQEFAQEHQKybcfspOnlxLwVnBmzL
b5PsntY+hXnCU1AyhR6vMrFGAwEIB4h4BBgWCgAgFiEEPldm/x5cVlknvpFc1PjQ
JzuQck0FAmgij2kCGwwACgkQ1PjQJzuQck3i5AD/SO4s6cXhHOOjrzjZxhSlmYzy
@MetehanYurtseven
MetehanYurtseven / publickey.asc
Created December 10, 2024 00:14
PGP Public Key metehan.yurtseven@de.abb.com
-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: User ID: Metehan Yurtseven <metehan.yurtseven@de.abb.com>
Comment: Valid from: 09.12.2024 17:32
Comment: Type: 255-bit EdDSA (secret key available)
Comment: Usage: Signing, Encryption, Certifying User IDs, SSH Authentication
Comment: Fingerprint: 361A2D1A5264A27F94FC8A644929C4F8FF72AD6A
mDMEZ1cbnhYJKwYBBAHaRw8BAQdACpt1dWYO8r5mQu2bkjcKCCk1KZJ1OqYKoqB9
bpab7R+0ME1ldGVoYW4gWXVydHNldmVuIDxtZXRlaGFuLnl1cnRzZXZlbkBkZS5h
@MetehanYurtseven
MetehanYurtseven / audible_chapter_scraper.js
Last active April 1, 2025 21:35
Easy Audible Chapter Scraper - JavaScript Console
// This simple js script collects chapter titles of an audiobook from audible and
// is used to apply it to an .m4b audiobook.
// Following steps are required to create an .m4b audiobook with chapters:
//
// 0. (optional) use following tool to concat multiple mp3 to single m4b: https://gist.github.com/butuzov/fa7d456ebc3ec0493c0a10b73800bf42?permalink_comment_id=2830778#gistcomment-2830778
// 1. Export metadata of .m4b using "ffmpeg -i book.m4b -f ffmetadata metadata.txt"
// 2. Login to Audible and open a specific audiobook
// 3. Open console panel (Control+Shift+J) and run this script inside the JS Console
// 4. Paste returned content at the end of the metadata or replace existing chapters and save the file
// 5. Apply new metadata using to new .m4b using "ffmpeg -i book.m4b -i metadata.txt -map_metadata 1 -map_chapters 1 -codec copy book_with_chapters.m4b"
@MetehanYurtseven
MetehanYurtseven / transmission_port.sh
Created June 11, 2022 16:07
Bash script to change the peer-port of Transmission through rpc
#!/bin/bash
if [ $# -ne 2 ]
then
echo "Usage: ./transmission_port.sh https://transmission.example.com 51413"
exit 1
fi
session_id=$(curl "$1/transmission/rpc" -H "content-type: application/json" -s -D - -o /dev/null | awk '/^x-transmission-session-id:/ { print $2 }')