Skip to content

Instantly share code, notes, and snippets.

View TangentFoxy's full-sized avatar

Rose Liverman TangentFoxy

View GitHub Profile
@TangentFoxy
TangentFoxy / dont-use-logseq-script.md
Last active December 20, 2024 19:20
Logseq leaks private info, causes data loss, and is not ready to be used seriously.
@TangentFoxy
TangentFoxy / YouTube-threatened-me.md
Created October 19, 2024 01:48
YouTube threatened me for linking to the New York Times.

YouTube threatened me


Hi ████████████████████

We wanted to let you know our team reviewed your content, and we think it violates our spam, deceptive practices and scams policy. We know you may not have realized this was a violation of our policies, so we're not applying a strike to your channel. However, we have removed the following content from YouTube:

URL: https://www.nytimes.com/2023/08/03/science████████████████████████████████████████████████████████████████████████████████
Location where URL was found: ████████████████████████████████████████████████████████████

I moved all of my information about videos to https://github.com/TangentFoxy/video-metadata

YouTube threatened me with a strike for linking to the New York Times, so I don't link to sources directly anymore.


The script does not perfectly match the video as I made minor mistakes in speech or made minor changes / omissions on the fly as well as during editing. The quoted sections were not stated as they would make this more detailed than most audiences would want to watch.

Additional information/sources:

  1. Information about oil additive scams. The original is long gone, so here is an Internet Archive version, and another archive of that archive.
@TangentFoxy
TangentFoxy / video-dl.lua
Last active November 13, 2024 23:35
Simple YT-DLP Frontend
#!/usr/bin/env luajit
-- This script still works just fine as-is, but any updates are going into my version that is with my other tools.
-- THIS IS BEING MAINTAINED AT https://github.com/TangentFoxy/.lua-files
local helptext = [[Usage:
./video-dl.lua [action] <url>
[action]: What is desired.
@TangentFoxy
TangentFoxy / LK-99 sources.md
Last active December 20, 2024 18:49
YouTube threatened to strike me for linking to the New York Times..

I moved all of my information about videos to https://github.com/TangentFoxy/video-metadata

YouTube threatened to file a strike against my channel for linking to the New York Times in my video's description, so I moved all source information elsewhere to avoid this problem happening again. This will be how I publish videos from now on.

Sources (appearing directly in this video, in order):

@TangentFoxy
TangentFoxy / file_size_stats.lua
Last active January 12, 2025 13:44
Generate statistics on file sizes within a directory. (Lua, using LuaFilesystem.)
#!/usr/bin/env luajit
-- THIS IS BEING MAINTAINED AT https://github.com/TangentFoxy/.lua-files
-- GO THERE INSTEAD OF DOWNLOADING THIS FILE DIRECTLY.
-- Primarily written by ChatGPT using GPT-3.5, with corrections and modifications by me.
-- Do whatever the hell you want with it.
local lfs = require "lfs"
@TangentFoxy
TangentFoxy / invidious-bookmarklet.js
Last active August 17, 2023 06:52 — forked from hisaac/invidious-bookmarklet.js
Modified for personal use. Points to my own domain.
// The bookmarklet does a couple things:
// If the current page in the browser is a YouTube page, it will open that video in `invidious.xyz`
// If the current page in the browser is _not_ a YouTube page, it will open the `invidious.xyz` homepage
//
// To use: Copy/Paste the code below into the bookmark's address:
javascript:location.hostname.includes("youtube.com")?location.assign("https://invidious.tangentfox.com"+location.pathname+location.search+location.hash):location.assign("https://invidious.tangentfox.com");
@TangentFoxy
TangentFoxy / vtt2text.py
Created August 17, 2023 06:45 — forked from glasslion/vtt2text.py
This script convert youtube subtitle file(vtt) to plain text.
"""
Convert YouTube subtitles(vtt) to human readable text.
Download only subtitles from YouTube with youtube-dl:
youtube-dl --skip-download --convert-subs vtt <video_url>
Note that default subtitle format provided by YouTube is ass, which is hard
to process with simple regex. Luckily youtube-dl can convert ass to vtt, which
is easier to process.
@TangentFoxy
TangentFoxy / shellinabox.sh
Last active April 26, 2018 20:08
Easy-to-use install script for shellinabox. https://github.com/shellinabox/shellinabox
sudo apt-get update
sudo apt-get install git libssl-dev libpam0g-dev zlib1g-dev dh-autoreconf -y
sudo apt-get install git libssl-dev libpam0g-dev zlib1g-dev dh-autoreconf -y # duplicated because errors I encountered that were fixed by just running it again
git clone https://github.com/shellinabox/shellinabox.git
cd shellinabox
autoreconf -i
autoreconf -i # duplicated beause errors I encountered that were fixed by just running it again
./configure
make
dpkg-buildpackage -b
@TangentFoxy
TangentFoxy / KeyConstants.moon
Created March 26, 2018 03:09
LÖVE's key constants separated into their categories.
KeyConstants = {
character: {
space: true -- 0.10+ version of space
}
numpad: {
kpenter: true
}
navigation: {
up: true
down: true