Skip to content

Instantly share code, notes, and snippets.

View brw's full-sized avatar
📝
/人◕ ‿‿ ◕人\

Bas van den Wollenberg brw

📝
/人◕ ‿‿ ◕人\
View GitHub Profile
@veekaybee
veekaybee / normcore-llm.md
Last active May 4, 2024 05:37
Normcore LLM Reads

Anti-hype LLM reading list

Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.

Foundational Concepts

Screenshot 2023-12-18 at 10 40 27 PM

Pre-Transformer Models

@Druah
Druah / Emotes.md
Last active April 23, 2024 07:08
How to Enable 7TV, BetterTTV, and FrankerFaceZ Emotes for Newbs

This guide is slightly deprecated as V3 of 7TV's browser add-on now supports 7TV, BetterTTV, and FrankerFaceZ emotes out of the box, and has some great quality of life chat features that are currently not found in any other emote add-on. You should consider going to 7TV's website and downloading their browser add-on from there.

What even is this? FeelsDankMan

7TV, BetterTTV, and FrankerFaceZ, more commonly stylized as 7TV, BTTV, and FFZ, are 3rd party emote services for Twitch chat, which aim to enhance a viewer's chatting experience on Twitch by allowing for more emotes to be used in chat, free of charge. Think of it like Discord emojis.

If you're wondering what those weird phrases people in chat seem to be spamming are, it's probably an emote from one of the above mentioned 3rd party emote servi

@MiataBoy
MiataBoy / slashcommands.md
Last active October 25, 2021 19:34
An explanation composed of reasons why Slash commands are not good.

Slash commands

Slash commands, as we know are one of discord's new features released for bots to integrate into discord servers better. However, these same slash commands are not very appreciated by many members of the developer community. Several reasons will be explained here.

Danny - former discord.py maintainer

First, we start off by including arguments from Danny - the former discord.py maintainer who stepped down, and archived discord.py. (Looking for a fork? Try https://github.com/iDevision/enhanced-discord.py).

The link to the full gist created by Danny in whereabouts to his leave from d.py can be found here.

Around July and August 2020, the Discord employees started talking to the people in the Discord Infrastructure server about the possibility of Slash Commands finally coming to Discord. This feature was one that had been in the talks since the very beginning of Discord's history, so some people were hyped it was finally c

What is possible?

Slash commands offer a way to integrate your bot commands directly into the Discord UI. However, these commands are still very limited and cannot replace every use-case for now. I'll explain the limitations and possibilities of this new feature a bit here.

Slash Commands work entirely through the Webhook API. Which introduces a number of moderation issues. See the Moderation section below. It also causes some Rate Limit Problems.

Things you can do with slash commands

  • Simple Q/A type commands that just take an input and return an answer
  • Simple commands that have side-effects such as kick/ban/music
@glubsy
glubsy / howto_record_youtube_livestreams.md
Last active May 3, 2024 07:27
How to properly record Youtube & Twitch live streams

How to record Youtube live streams:

  • use livestream_saver to download from the first segment. Can also record membership-only streams by supplying it your cookies (uses yt-dlp to download)

  • use ytarchive which basically does the same thing, except a bit better.

  • use youtube_stream_capture. You can use cookies file to get member-only streams too. Be aware that this script currently fails to download chunks as soon as the stream has ended (this might be a bug).

  • or use live-dl which does monitoring of streams too. This is a wrapper around streamlink and yt-dlp.

@mbartelsm
mbartelsm / readme.md
Last active August 24, 2023 13:37
VSCode context menu to open WSL

I'm tired of always struggling to open a folder in VSCode using WSL. You normally have to open the current folder in Code, wait for it to load, then reopen in the remote, which closes and reopens Code, so you have to wait for it to load everything once more. The alternative is to open a WSL shell, which takes it's good time too, navigate via the terminal to the folder you want, then open Code.

I just want to right click and be done. So I arranged a little something.

DISCLAIMER Before you proceed, back up your registry. If something breaks, that's on you for not having a backup.

This registry file will delete the current context menu entry for VSCode and replace is with a submenu that lets you choose wether to open it up normally, or via WSL. It only works when right clicking on a folder or on the background.

Something you might want to do before running it is to verify that the installation paths are the same ones you have in your set-up. If you don't have WSL in your PATH, you will either need to edi

from feedparser import parse
from aiohttp import ClientSession
from discord.ext.commands import Bot
from os import getenv
from tinydb import TinyDB, Query
from os.path import join
from asyncio import sleep,get_event_loop
from traceback import print_exc
client = Bot('ab!')
// ==UserScript==
// @name AB search autocomplete
// @namespace https://github.com/po5
// @version 0.2.0
// @description :cool:
// @author Eva
// @homepage https://animebytes.tv/forums.php?action=viewthread&threadid=24689
// @icon https://animebytes.tv/favicon.ico
// @updateURL https://gist.github.com/po5/a56f53567eca72f2f32f2545e0236d39/raw/ab-search-autocomplete.user.js
// @downloadURL https://gist.github.com/po5/a56f53567eca72f2f32f2545e0236d39/raw/ab-search-autocomplete.user.js
@730730
730730 / ab-filter.user.js
Last active January 8, 2024 19:33
Tampermonkey script that adds filtering and sorting capabilities to AnimeBytes torrent groups
// ==UserScript==
// @name AB Filter/Sorter
// @version 1.0
// @description Adds a table of filters to AnimeBytes torrent groups and the possibility to sort by size/snatches/seeders/leechers
// @author 730
// @match https://animebytes.tv/torrents.php?id=*
// @updateURL https://gist.githubusercontent.com/730730/241caafc5ee60ea83d537a80051aecc4/raw/ab-filter.user.js
// @downloadURL https://gist.githubusercontent.com/730730/241caafc5ee60ea83d537a80051aecc4/raw/ab-filter.user.js
// @grant none
// ==/UserScript==