Skip to content

Instantly share code, notes, and snippets.

View 403-html's full-sized avatar
💫

Tymoteusz Stępień 403-html

💫
View GitHub Profile
@403-html
403-html / disable.sh
Created March 31, 2025 11:02
Disable com.apple.quarantine (information that app might be from uncertain developer) on MacOS
sudo xattr -rd com.apple.quarantine /Applications/app_name.app
@403-html
403-html / convert_srt.py
Last active February 13, 2025 14:31
Converts a frame-based subtitle file to SRT format.
"""
python convert_srt.py from.srt to.srt
default frame rate for most movies is: 23.976
encoding is set to: windows-1250 (usually non-english subtitles have frame based subtitling)
Example "from.srt":
{0}{100}Hello, world!
{101}{300}This is a frame-based subtitle file.
@403-html
403-html / gist:4b42979475ab2c8dee6aac205f3ed56f
Last active September 20, 2023 16:06
Set of rules to uOrigin for GitHub, for fixing common style problems in PR's view.
# Full list of checks, without small window \w scroll
github.com##div.merge-status-list:style(max-height: unset !important;)
# Move failed checks to the top
github.com##div.merge-status-list:style(display: flex; flex-direction: column;)
github.com##div.merge-status-item:has(.color-fg-danger):style(order: -2;)
# Move currently running checks to the top
github.com##div.merge-status-item:has(.anim-rotate):style(order: -1;)
// count time needed to execute a function
// precisition is 0.0001 ms
const countTime = (func) => {
const startTime = performance.now();
func();
const endTime = performance.now();
const timeNeeded = endTime - startTime;
console.log(`${func.name} needed ${timeNeeded.toFixed(4)} ms`);
}
@403-html
403-html / index.md
Last active August 3, 2021 16:46
Make TModLoader time goes for Terraria on Steam

What to do

  • Go to the tModLoader install folder

  • Replace the number inside the steam_appid.txt file with 105600 (Terraria's steam id)

  • This would make your play time go to Terraria

  • If you want to go back with this settings then TModLoader steam id is 1281930