Skip to content

Instantly share code, notes, and snippets.

View ammuench's full-sized avatar

Alex Muench ammuench

View GitHub Profile
@ammuench
ammuench / types_require_import_packagejson.md
Created February 25, 2024 17:57
Setup your Package.json to properly export types for require and import

Explanation of Issue

I'd been fighting this issue on my own package for the last few days:

Could not find a declaration file for module 'contrastrast'. '/home/Development/bookthing.nuxt/node_modules/.pnpm/contrastrast@0.1.1/node_modules/contrastrast/dist/contrastrast.js' implicitly has an 'any' type.
  There are types at '/home/Development/bookthing.nuxt/node_modules/contrastrast/dist/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'contrastrast' library may need to update its package.json or typings.

After lots of searching, I think I've settled on a solution that works for me at least in the short term.

@ammuench
ammuench / popos_betachannels.md
Created February 24, 2024 02:04
Pop_OS Beta Channels

Enable Pop_OS Beta Channels in Apt

Want to grab beta drivers/kernels from the Pop! Team before they hit the stable branches? Follow this guide!

Info gotten from this reddit thread by a popos engineer

Commands

For each of these, check the branches currently available on the repo, and use that to choose the version you'd like!

@ammuench
ammuench / pipewire-crackling-fix.md
Created December 28, 2023 03:09
Fixing Crackling/Buzzing Audio on Pipewire

Fixing Crackling/Buzzing Audio on Pipewire

Quick potential fix for crackling/buzzing audio issues

Check values of these two files:

cat /sys/class/rtc/rtc0/max_user_freq
cat /proc/sys/dev/hpet/max-user-freq
@ammuench
ammuench / NuxtSupabaseCookieMgmt.vue
Created November 8, 2023 01:17
Nuxt Supabase Cookie Management Script
<script setup lang="ts">
// Copied from https://github.com/nuxt-modules/supabase/issues/300#issuecomment-1793667652
/**
* Handle Auth Cookies
*/
const supabase = useSupabaseClient()
// get cookie options
const config = useRuntimeConfig().public.supabase;
const { cookieOptions } = config;
@ammuench
ammuench / 8BitDoUltimateWifi_Linux.MD
Last active September 20, 2024 06:37
8BitDo Ultimate 2.4GHz wifi working in linux

Keybase proof

I hereby claim:

To claim this, I am signing this object: