Skip to content

Instantly share code, notes, and snippets.

View Yiin's full-sized avatar
💭
https://twitch.tv/yiin__

Yiin

💭
https://twitch.tv/yiin__
View GitHub Profile
@Yiin
Yiin / README.md
Last active July 24, 2026 09:12
Fix: no internal speakers on ASUS Zenbook S16 UM5606GA (AMD Strix Point / ACP 7.0 SoundWire) under Linux — DKMS quirk

Fix: no internal speakers on ASUS Zenbook S16 (UM5606GA, AMD) under Linux

Short version: your laptop speakers, headphone jack, and built-in mic show up as nothing in Linux, even though the drivers are already there. The BIOS quietly tells the audio chip to use an old, speaker-less mode. One tiny tweak flips it back. This gist wraps that tweak in DKMS so it keeps working after kernel updates and is easy to undo later.

Tested on a Zenbook S16 UM5606GA (AMD Ryzen AI, Strix Point) running Linux 7.0.9, June 2026.

POST /v1/attributions

Creates an affiliate attribution server-side from a referral handle, so you don't have to wait on the GA4 → BigQuery lag at plan-pick. Works alongside the existing ?mref=<handle> install path and reuses the same downstream pipeline (program rules fire, affiliates/referral webhook dispatches, commission job enqueues).

Auth

App-scoped only:

  • X-Mantle-App-Id: <app-id>
import { get, set } from "lodash-es";
import { Store } from "pinia";
import { TriggerOpTypes, toRaw, isRef, isReactive, isProxy } from "@vue/reactivity";
import { findPath, findPathApproximate } from "@shared/utility/object";
export type StoreUpdatePayload =
| {
type: TriggerOpTypes.ADD;
path: string | undefined;
target: object;
import alt from "@altv/server";
import { ClientEvents } from "@shared/events/client";
import { getBodyPartDamageMultiplier } from "@shared/modules/combat/damage-multipliers";
import {
getItemInfoByKey,
isItemFirearmWeapon,
getAmmoDamageMultiplier,
getWeaponAmmoEquipmentSlot,
isWeaponWithClip,
getWeaponDamage,

Requirements

  1. JS/TS server setup
  2. Vue.js in webviews
  3. Ability to ignore social norms

Steps

  1. Install following packages:
@Yiin
Yiin / draft.js
Last active September 23, 2023 02:03
function getV1ServerArgs(eventName, args) {
return ({
anyResourceError: ({ resource }) => [resource],
anyResourceStart: ({ resource }) => [resource],
anyResourceStop: ({ resource }) => [resource],
consoleCommand: ({ command, args }) => [command, ...args],
entityEnterColshape: ({ colShape, entity }) => [colShape, entity],
entityLeaveColshape: ({ colShape, entity }) => [colShape, entity],
explosion: ({ source, type, pos, fx, target }) => [source, type, pos, fx, target],
netOwnerChange: ({ entity, newOwner, oldOwner }) => [entity, newOwner, oldOwner],
anyResourceError: (resource) => ({ resource })
anyResourceStart: (resource) => ({ resource })
anyResourceStop: (resource) => ({ resource })
consoleCommand: (command, ...args) => ({ command, args })
entityEnterColshape: (colShape, entity) => ({ colShape, entity })
entityLeaveColshape: (colShape, entity) => ({ colShape, entity })
explosion: (source, type, pos, fx, target) => ({ source, type, pos, fx, target })
netOwnerChange: (entity, newOwner, oldOwner) => ({ entity, newOwner, oldOwner })
playerChangedVehicleSeat: (player, vehicle, oldSeat, newSeat) => ({ player, vehicle, oldSeat, newSeat })
playerConnect: (player) => ({ player })

00:00:00

Aptariamas ryšys tarp tradicinės mitybos ir geros dantų sveikatos. Daktaro Westono A. Price'o tyrimas atskleidė, kad žmonės, besilaikantys tradicinės dietos, turėjo plačius dantų lankus, tiesius dantis ir keletą ertmių, o žmonėms, valgantiems šiuolaikinį maistą, pavyzdžiui, rafinuotus grūdus, cukrų ir augalinį aliejų, atsirado kreivų dantys ir ertmės. Weston Price taip pat pažymėjo, kad šios grupės, valgančios tradicinę dietą, visada vertino kai kuriuos jūrinius ar gyvūninius maisto produktus, įskaitant kiaušinius, sūrį, sviestą ir riebius pieno produktus, nes šiuose maisto produktuose yra daug vitaminų A, D ir K2, kurie kartu. palaikyti tinkamą kaulų ir veido struktūros formavimąsi, įskaitant dantų lanką.

00:05:00

Aptariami iššūkiai, susiję su gyvūninės kilmės produktų pakeitimu augaliniais, siekiant gauti pakankamai pagrindinių vitaminų, tokių kaip vitaminas A, vitaminas D ir vitaminas K2. Jame pažymima, kad nors kai kurie augaliniai maisto produktai gali aprūpinti šiuos vitaminus, jie gali

@Yiin
Yiin / index.d.ts
Last active February 19, 2023 13:14
declare module "alt-server" {
export interface Player {
store: ReturnType<
typeof import("../../src/shared/store/player.store").usePlayerStore
>;
}
}
@Yiin
Yiin / 1-1.js
Last active December 4, 2021 10:04
AoC 2021
const input = rawInput.split('\n').filter(Boolean).map(Number);
let inc = 0;
let last;
for (const x of input) {
if (typeof last !== 'undefined' && x > last) {
inc++;
}
last = x;