Skip to content

Instantly share code, notes, and snippets.

View rlaphoenix's full-sized avatar

rlaphoenix

View GitHub Profile
@rlaphoenix
rlaphoenix / tv_schedules.md
Last active August 27, 2023 07:44
Historical TV Guide/Schedules APIs and Websites
@rlaphoenix
rlaphoenix / a_is_afk_readme.md
Last active August 25, 2023 20:35
Python script that runs 24/7 hosting a "is user AFK" WebSocket server

Is AFK WebSocket Server

Run the Python script and just like that a Websocket Server on port 8765 will be running.
From here forward/open the port 8765, or reverse proxy it with Caddy or NGINX (I recommend Caddy).

The WebSocket server responds 0x00 byte if the user is currently active. It responds 0x01 byte if the user is currently AFK. You should also check if it fails to connect and mark yourself as Offline.

The xml file is a Windows Task Scheduler export. You need to change the Logon User to your own.
You should also update the path of the actions, i.e. where the script is, or the folder it's in.

@rlaphoenix
rlaphoenix / spotify_ringtones.md
Created July 28, 2023 04:42
Using Spotify's Song Preview as Ringtones
@rlaphoenix
rlaphoenix / chapters_handbook.md
Created April 27, 2023 23:21
Best Chapters Handbook

Best Chapters Handbook

  1. The first chapter must begin at 00:00:00.000.
  2. If the video begins with a Studio/Logo Bumper, then that must be the first chapter, with the proceeding Intro, Opening Credits, Flashback, "Last Episode...", e.t.c, should then be the next chapter and so on.
  3. The last chapter must begin at the very first non-black frame of Ending Credits text. If the first Credit text consistently and intentionally begins some time after the Ending Credits sequence begins, then the last chapter must begin at the very first non-black frame of the Ending Credits sequence.
  4. All Chapters there-after must begin at the very first non-black frame of Scene B on Scene A to Scene B transitions. This must be the case regardless if its a jump-cut, fade/wipe/dissolve transition, or a
@rlaphoenix
rlaphoenix / extracting_movie_gc_wii.md
Created April 17, 2023 15:36
Extracting and converting movie videos from GameCube and Wii Discs

Extracting and converting movies from GameCube/Wii Discs

Preliminary notes

If you have a .ciso file, use nkit to convert it to .iso.

Stage 1 - Extracting the movie file(s)

The following are the file types you aim to extract, and what we will be converting to another format. Different Discs use different formats. So keep an eye out for any of these formats.

@rlaphoenix
rlaphoenix / mmp_4kids_data.md
Last active April 13, 2023 13:05
Mew Mew Power 4Kids Data

Mew Mew Power 4Kids Data

Feel free to contribute in any way.

Note The episode numbers are in the original Japanese airing order.

DUB Intro 'Team Up' Scene Sources

Some of these are from the JP NCOP/NCED/Intros. If the same scene is available in an actual episode, please inform me. The timestamps are of the English Dubbed release.

@rlaphoenix
rlaphoenix / logoscan_db.md
Last active April 10, 2023 03:35
My Logoscan/Delogo/DelogoHD Logo Database

Logoscan Database

This is a directory of various Logo's I've scanned to remove.

All LGD files were scanned using AviUtil Extra Pack (english patch). I always aim to get as much samples at the lowest threshold possible. I usually aim for around 25-30. Please note that small residuals/outline of the logo may reside after using the LGD files. This is usually caused by compression messing up the calculation when using the LGD. Therefore this is not an error with the LGD file.

Downloading

@rlaphoenix
rlaphoenix / vs_pulldown.py
Last active April 2, 2023 05:04
Add Soft Pulldown manually to any clip using VapourSynth
def software_pulldown(clip: vs.VideoNode, *pattern: list[int], tff: bool = True) -> vs.VideoNode:
"""
Add Software Pulldown by interlacing only where needed (aka Soft Pulldown).
No data is lost in the process. All frames interlaced by Pulldown would be
duplicate data as it uses n for the top field, and n-1 for the bottom field.
Parameters:
clip: Clip to apply pulldown to.
*args: The pulldown pattern to apply. Each integer is how many fields to
@rlaphoenix
rlaphoenix / keep_git_timestamps.txt
Created February 25, 2023 22:27
Keep commit author date/time timestamps on GitHub after squashing/merge/rebase
`git checkout the_branch`
`git rebase --committer-date-is-author-date -i HEAD~35`
Where HEAD~35 is the latest 35 commits that you want to keep the dates of.
You could do `git rebase --committer-date-is-author-date -i --root` but I don't recommend it.
@rlaphoenix
rlaphoenix / hls_aes_dec_key_uri.md
Created January 29, 2023 13:31
How to set AES-128 decryption key plaintext within the HLS playlist via data URI
#EXT-X-KEY:METHOD=AES-128,URI="data:application/octet-stream;base64,xtfhsRCnE3+t2bVKn+gLEQ==",IV=0x50f881b1f9598945878e60ccb139bb9c