Skip to content

Instantly share code, notes, and snippets.

View Sainan's full-sized avatar

Sainan

View GitHub Profile
#include <iostream>
#include <base.hpp>
#include <Buffer.hpp>
#include <hwHid.hpp>
#include <string.hpp>
#include <wooting_enums.hpp>
enum class WootingKeys : uint8_t
{
util.require_natives("2944b")
local cur_note = nil
util.create_tick_handler(function()
PAD.DISABLE_CONTROL_ACTION(0, 0, true) -- Disable INPUT_NEXT_CAMERA (V)
PAD.DISABLE_CONTROL_ACTION(0, 79, true) -- Disable INPUT_VEH_LOOK_BEHIND (C)
local note = nil
if util.is_key_down('Z') then -- C4
note = 16
  • Excalibur: Furious Javelin
  • Trinity: Vampire Leech
  • Ember: Exothermic
  • Loki: Hushed Invisibility
  • Mag: Fracturing Crush
  • Rhino: Ironclad Charge
  • Ash: Seeking Shuriken
  • Frost: Chilling Globe
  • Nyx: Assimilate
  • Saryn: Venom Dose

Does my Linux program run on Linux?

v Compiled on \ Tried running on > Debian 10 Debian 11 Ubuntu 18.04
Debian 10 Yes Yes Yes
Debian 11 No Yes TBD
Ubuntu 20.04 No Yes TBD
@Sainan
Sainan / NoWelcomeStickers.css
Created January 12, 2022 15:49
Discord User CSS: No Welcome Stickers
button[class^='welcomeCTAButtonOuter-']
{
display: none;
}
@Sainan
Sainan / stations.cpp
Created July 23, 2021 19:31
List of radio stations that are in the wheel, in clockwise order, as of LS Tuners DLC
"RADIO_11_TALK_02", // Blaine County Radio
"RADIO_12_REGGAE", // The Blue Ark
"RADIO_13_JAZZ", // Worldwide FM
"RADIO_14_DANCE_02", // FlyLo FM
"RADIO_15_MOTOWN", // The Lowdown 9.11
"RADIO_20_THELAB", // The Lab
"RADIO_16_SILVERLAKE", // Radio Mirror Park
"RADIO_17_FUNK", // Space 103.2
"RADIO_18_90S_ROCK", // Vinewood Boulevard Radio
"RADIO_21_DLC_XM17", // Blonded Los Santos 97.8 FM
@Sainan
Sainan / CustomStickerSize.css
Last active January 12, 2022 15:49
Discord UserCSS: Custom Sticker Size
/***************************
* Custom Sticker Size v1.0 *
* https://git.io/Jc2tR *
***************************/
:root {
--sticker-size: 64px;
/* 48px is what big emojis have, but
64px looks better as stickers usually have more detail.
You decide, tho. */
@Sainan
Sainan / gist:021bd2f48f1c68d3eb002caab635b5a4
Last active November 4, 2023 09:40
All occurrences of AUDIO::PLAY_SOUND_FRONTEND as of Cayo Percio Heist DLC, sorted alphabetically and identical lines removed
AUDIO::PLAY_SOUND_FRONTEND((uParam0[iParam1 /*80*/])->f_6, "Crash", "DLC_EXEC_ARC_MAC_SOUNDS", true);
AUDIO::PLAY_SOUND_FRONTEND((uParam0[iParam1 /*80*/])->f_6, "Crash_NPC", "DLC_EXEC_ARC_MAC_SOUNDS", true);
AUDIO::PLAY_SOUND_FRONTEND((uParam1[iParam2 /*80*/])->f_5, "Trail_1", "DLC_EXEC_ARC_MAC_SOUNDS", true);
AUDIO::PLAY_SOUND_FRONTEND((uParam1[iParam2 /*80*/])->f_5, "Trail_2", "DLC_EXEC_ARC_MAC_SOUNDS", true);
AUDIO::PLAY_SOUND_FRONTEND((uParam1[iParam2 /*80*/])->f_5, "Trail_3", "DLC_EXEC_ARC_MAC_SOUNDS", true);
AUDIO::PLAY_SOUND_FRONTEND((uParam1[iParam2 /*80*/])->f_5, "Trail_4", "DLC_EXEC_ARC_MAC_SOUNDS", true);
AUDIO::PLAY_SOUND_FRONTEND((uParam1[iParam2 /*80*/])->f_7, "Turn", "DLC_EXEC_ARC_MAC_SOUNDS", true);
AUDIO::PLAY_SOUND_FRONTEND((uParam1[iParam2 /*80*/])->f_7, "Turn_NPC", "DLC_EXEC_ARC_MAC_SOUNDS", true);
AUDIO::PLAY_SOUND_FRONTEND(*iParam1, sParam0, sParam7, true);
AUDIO::PLAY_SOUND_FRONTEND(*iParam3, "Recharging_Loop", "DLC_AW_Machine_Gun_Ammo_Counter_Sounds", true);
@Sainan
Sainan / README.md
Created September 20, 2020 09:11
Make logged-out Youtube a bit more enjoyable

This is custom bypass code for Universal Bypass. If you have the extension, head into the options and insert the Javascript below into your "Custom Bypasses" section, either appending it your other custom bypasses or replacing the example code.

As for how this makes logged-out Youtube more enjoyable:

  • Automatically closes the "please log in because Google is so great" pop-ups
  • Allows you to watch age-restricted videos without logging in (SFW Example)