Skip to content

Instantly share code, notes, and snippets.

View TFWol's full-sized avatar
😟

TFWol

😟
View GitHub Profile
@TFWol
TFWol / github_emoji_more_words.md
Last active July 9, 2024 21:22
See the hidden GitHub Emoji descriptions in popup

image

If an emoji has extra hidden words, they will be appended to the end.
Made just for fun to see what other words I could type.

You can adjust the text color in the script; I made this using Dark Theme.

@TFWol
TFWol / koboldcpp on old cpu new gpu (CLBlast).md
Last active November 6, 2023 03:52
Getting koboldcpp to compile and run with clblast on PC that has CPU without AVX2 and a newer GPU (NVidia 4090 tested). No more `OSError: [WinError -1073741795] Windows Error 0xc000001d`

UPDATE

As of v 1.48, just use the new Preset CLBlast NoAVX2 (Old CPU)

Keep in mind you can only use one GPU.

CLBlast is a fair enough alternative when Cublas isn't working right (only other choice really, if you want to use GPU).

(Obsolete) Getting clblast to work on PC that has CPU without AVX2 and a newer GPU

(aka, Old CPU with newer GPU)

Mermaid on Github Examples

All of these diagrams are dynamically rendered during html display by Github, the images generated from text inside the Github-Flavored Markdown. None are static images. Mermaid support was released for Github on 2022-02-14

Pros & Cons:

  • Pro: You don't need to care about the layout.
  • Con: You cannot control the layout.

Notes:

  • Not all the features of Mermaid (in particular symbols B-->C[fa:fa-ban forbidden], hyperlink and tooltips) are supported by Github.
@TFWol
TFWol / lua_cheat_sheet.lua
Created March 13, 2023 02:37 — forked from ourway/lua_cheat_sheet.lua
Lua programming language cheat sheet
print("Hello World")
--[[
Multiline comment
]]
-- Variable names can't start with a number, but can contain letters, numbers
-- and underscores
-- Lua is dynamically typed based off of the data stored there
@TFWol
TFWol / Remote Play Together with PCSX2.md
Last active June 11, 2023 22:09
Getting Remote Play Together to work with PCSX2 (pcsx2-qtx64) on Windows via shim

Some testing notes that allows keeping PCSX2 installed where it is and a remote player to use a controller YMMV

Setup game and shim

  1. Find a donor game; a game that supports Remote Play Together (RPT)
  2. Open game path and note the .exe name
  3. Delete all the files in the game path
  4. Create a shim
  5. Ex: C:\ProgramData\chocolatey\tools\shimgen.exe -o="C:\Program Files (x86)\Steam\steamapps\common\Chicken Invaders 4\CI4.exe" -p="C:\Emulators\PCSX2\pcsx2-qtx64.exe" --gui
@TFWol
TFWol / iOS - Return YouTube Dislike Button in Safari.md
Created January 19, 2022 20:16
Restores YouTube mobile website Safari dislike numbers with userscript "Return YouTube Dislike" and StopTheMadness Safari extension

Description

Restores YouTube mobile website Safari dislike numbers with userscript "Return YouTube Dislike" and StopTheMadness Safari extension

  • Made mostly for self as reminder
  • Seems accurate enough, better than nothing

Steps (Everything done on iOS device)

  1. Install [StopTheMadness][2] and, at a minimum, allow it on youtube and greasemonkey websites.
  2. Insert code from Return YouTube Dislike
  3. Go to the [Greasy Fork Project Page][1]