Skip to content

Instantly share code, notes, and snippets.

View speedie1337's full-sized avatar

speedie speedie1337

View GitHub Profile
@speedie1337
speedie1337 / class.cpp
Created March 9, 2024 01:08
Drawing text using skia after the removal of RefDefault()
#include "include/gpu/GrBackendSurface.h"
#include "include/gpu/GrDirectContext.h"
#include "include/gpu/gl/GrGLInterface.h"
#include "include/gpu/gl/GrGLAssembleInterface.h"
#include "include/gpu/ganesh/SkSurfaceGanesh.h"
#include "include/gpu/ganesh/gl/GrGLBackendSurface.h"
#include "include/gpu/ganesh/gl/GrGLDirectContext.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkColor.h"
#include "include/core/SkColorSpace.h"
{ XK_Return, ControlMask, "\033[13;5u", 0, 0},
{ XK_Return, ShiftMask, "\033[13;2u", 0, 0},
{ XK_Tab, ControlMask, "\033[9;5u", 0, 0},
{ XK_Tab, ShiftMask|ControlMask, "\033[9;6u", 0, 0},
@speedie1337
speedie1337 / geometry-dash-level-ids
Created December 30, 2023 03:40
All rated Geometry Dash level IDs until December 29th 2023
This is a list of all rated Geometry Dash levels. (specifically the level ID)
Might be useful if you want to play a random level or something, just `shuf` this list.
NOTE: There's lots of weird numbers that make no sense in some places, just ignore them as they're caused by my subpar awk skills.
718
658
528
465
338
296
174
@speedie1337
speedie1337 / samsung-portable-ssd-gentoo
Created January 29, 2022 15:30
External SSDs as Gentoo boot drive (Samsung Portable SSD T3/T5/T7)
1. Emerge gentoo-sources and upgrade your kernel (skip if you don't wanna upgrade your kernel)
2. eselect kernel list and then eselect kernel set <number> where <number> is the kernel you're using
3. cd to /usr/src/linux (/mnt/gentoo/usr/src/linux if not chrooted) and make menuconfig
4. Device Drivers -> USB support -> USB Mass Storage support <M>
5. Device Drivers -> USB support -> USB Attached SCSI <M>
6. General Setup -> Initial RAM filesystem and RAM disk (initramfs/initrd) support [*]
7. General Setup -> Support initial ramdisk/ramfs compressed using LZ4 (or something else if you're not using LZ4)
8. Save and exit
9. Mount your /boot partition
10. make -jX && make modules_prepare && make modules_install && make install
@speedie1337
speedie1337 / Keychron keyboard support in Linux
Last active January 29, 2022 15:34
Keychron keyboard support in Linux
If you have a Keychron keyboard and you try to use it in Linux, you'll likely find that your function keys do not work properly
or at all. I think this is pretty stupid but it's rather easy to fix.
Open your favorite terminal, cd to /usr/bin and doas/sudo nano keychron and add these two lines
#!/bin/sh
echo 0 > /sys/module/hid_apple/parameters/fnmode
and save the file. Then run doas/sudo chmod +x keychron
@speedie1337
speedie1337 / Geometry Dash Paths
Last active December 23, 2023 14:22
Geometry Dash game and save location (Windows/Mac OS X/GNU+Linux)
Geometry Dash 2.113 File Paths
Windows paths:
"%localappdata%\GeometryDash" Save and song location for GD 2.113
"%localappdata%\GeometryDash\CCGameManager.dat" Game save data
"%localappdata%\GeometryDash\CCGameManager2.dat" Game save data
"%localappdata%\GeometryDash\CCLocalLevels.dat" Game save data
"%localappdata%\GeometryDash\CCLocalLevels2.dat" Game save data
"%localappdata%\GeometryDash\133742069.mp3" Song file location. ID will be different in your case.
@speedie1337
speedie1337 / transmac reset.txt
Last active April 19, 2024 13:55
Reset TransMac Trial back to 15 days (Unpatchable)
Run this whenever you want or put it in your startup folder
(Win+R and type shell:startup)
For all other users, one time easy way to do it, open Regedit. Then navigate to HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved or paste that in the address bar. Select the key with a bunch of random numbers and delete all the values inside of it.