I hereby claim:
- I am Guard13007 on github.
- I am guard13007 (https://keybase.io/guard13007) on keybase.
- I have a public key whose fingerprint is 1A74 AE9E 1AFC 020C CBFE 5A8E 8CD5 45C0 0785 7098
To claim this, I am signing this object:
| local Starfield = {} | |
| Starfield.__index = Starfield | |
| --NOTE TEMP FOR STATS | |
| local results = {} | |
| function Starfield:clipResults() | |
| local str = "count,threshold,ox,oy\n" | |
| for i = 1, #results, 4 do | |
| str = str .. results[i] .. "," .. results[i+1] .. "," .. results[i+2] .. "," .. results[i+3] .. "\n" |
I hereby claim:
To claim this, I am signing this object:
| -- This is an implementation of classes compatible with MoonScript's classes. | |
| -- CC0 license | |
| -- Usage: | |
| -- local Class = require "Class" | |
| -- local SomeClass, BaseObject = Class("NameOfClass") | |
| -- define your own init: | |
| -- function SomeClass:__init() end |
| # Usage: run this file, it will install itself | |
| # to $profile and be run from there | |
| # Make sure $profile exists. | |
| if (! (Test-Path $profile) ) { | |
| New-Item -Path $profile -ItemType File -Force | |
| } | |
| # Find ourselves and where we should be. | |
| $me = $PSCommandPath # $MyInvocation.MyCommand.Definition |
| $input = $args[0] | |
| $output = $input.Replace(".MOV", ".mp4") | |
| $output = $output.Replace(".mov", ".mp4") # in case ext is lowercase | |
| ffmpeg -i "$input" -vcodec copy -acodec copy "$output" |
| KeyConstants = { | |
| character: { | |
| space: true -- 0.10+ version of space | |
| } | |
| numpad: { | |
| kpenter: true | |
| } | |
| navigation: { | |
| up: true | |
| down: true |
| 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 |
| """ | |
| 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. |
| // 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"); |
| #!/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" |