Skip to content

Instantly share code, notes, and snippets.

@dvf
dvf / change-codec.md
Last active April 28, 2024 15:24
Enable High Quality mode on your headphones (Updated for macOS Catalina)

If you're using a high-end bluetooth headset on your Macbook Pro it's likely your mac is using an audio codec which favors battery efficiency over high quality. This results in a drastic degradation of sound, the SBC codec is the likely culprit, read more about it here.

Find out what codec you're using

  1. Play a song on your headphones
  2. Option (⌥) click the Bluetooth button at the top of your screen Inspect the Bluetooth Coded
  3. If you're using AAC or aptX, you can stop here—those are the highest quality codecs.

Change your codec to AAC or aptX

@yaocw2020
yaocw2020 / Harvester-SNAT-problem.md
Last active April 28, 2024 15:24
harvester design

Harvester SNAT Problem

Problem Description

Harvester leverages the Kubernetes service to provide the load balancer for the service in the Harvester virtual machines. The backend servers of the load balancer are the <VM IP>:<service port>.

cw-harv:/home/rancher # kubectl get svc
NAME                        TYPE           CLUSTER-IP      EXTERNAL-IP    PORT(S)        AGE
default-nginx-lb-db9bdca5 LoadBalancer 10.43.113.238 80:32586/TCP 4h32m
@stong
stong / twitter.txt
Last active April 28, 2024 15:23
Twitter ublock rules
twitter.com##div[aria-label="Trending"]
twitter.com##aside[aria-label="Who to follow"]
twitter.com##a[aria-label="Search and explore"]
twitter.com##svg[aria-label="Verified account"]
twitter.com##a[aria-label="Communities"]
twitter.com##a[aria-label="Verified Orgs"]
twitter.com##a[aria-label="Top Articles"]
twitter.com##a[aria-label^="Notifications"]
! 2023-09-05 https://twitter.com
@ironbyte
ironbyte / seed_drizzle_zod_faker.ts
Last active April 28, 2024 15:22
TS Seed Script: Drizzle ORM + Zod + Faker (Minimal)
// tsx seed.ts
import { faker } from '@faker-js/faker';
import { pgTable, text, varchar, timestamp } from 'drizzle-orm/pg-core';
import { drizzle, PostgresJsDatabase } from 'drizzle-orm/postgres-js';
import { createInsertSchema } from 'drizzle-zod';
import { customAlphabet } from 'nanoid';
import postgres from 'postgres';
import { z } from 'zod';
@richardgaywood
richardgaywood / vnv_on_steam_deck.md
Last active April 28, 2024 15:21
An incomplete guide to installing Fallout: Viva New Vegas on the Steam Deck

Intro & Disclaimers

I am not an expert, I am just Some Guy who happened to (a) get Viva New Vegas working on Steam Deck and (b) kept notes. These are those notes. I love Fallout and I love the Steam Deck and I want other people to experience those things, but I am also unable to promise to support you through every question you may have.

This is not a guide in the way that Viva New Vegas is a guide. VNV is incredibly well written and has your back every step of the way. These are just scribbles. Please set your expectations! Also, please tell me what doesn't work or is confusing! I would like us to work together to improve this process for others.

Who did this

This doc was written by docg/penllawen. Come say hi on the Viva New Vegas Discord or [this reddit thread]https://www.reddit.com/r/SteamDeck/comments/1c8uihm/an_incomplete_guide_to_installing_modded_fallout/).

@thegreatestminer
thegreatestminer / encoded-20201212150102.txt
Created December 12, 2020 15:01
MobaXTerm Professional x64 License Key [READ COMMENTS]
UEsDBBQAAAAIABNQjFGCf/GfLgAAACwAAAAHAAAAUHJvLmtleTMqdncpCXQOKDAp9woMzEo1MTVOrHAzTjTLME7VNs1LK8owTjQpcU8tcuLlAgBQSwECFAAUAAAACAATUIxRgn/xny4AAAAsAAAABwAAAAAAAAAAAAAAAAAAAAAAUHJvLmtleVBLBQYAAAAAAQABADUAAABTAAAAAAA=
@fosterbrereton
fosterbrereton / better_macros_better_flags.cpp
Last active April 28, 2024 15:20
Companion source code for the article "Better Macros, Better Flags."
/*
MIT License
Copyright 2019 Foster T. Brereton
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute,
sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@slavirok
slavirok / benthos_eh_to_kafka_conf.yaml
Last active April 28, 2024 15:19
BenthOS AzureEventHub Source
input:
kafka:
addresses:
- ${EVENTHUB_BOOTSTRAP_SERVER}
topics: [${EVENTHUB_TOPIC}]
tls:
enabled: true
skip_cert_verify: true
root_cas_file: ""
client_certs: []
@tanxpyox
tanxpyox / else.yaml
Last active April 28, 2024 15:17
2005年《A Dictionary Of Cantonese Slang》jyutping
㗎仔 gaa4 zai2
㗎佬 gaa4 lou2
㗎妹 gaa4 mui1
㗎話 gaa4 waa2
㗎頭 gaa4 tau4
㢥旗 dung6 kei4
㢥起床板 dung6 hei2 cong4 baan2
㩒機 gam6 gei1
㬌轟 ging2 gwang2
䟴䟴吓 an3 an3 haa2
@CocoaCaa
CocoaCaa / vscode-sawaratsuki-logo.css
Created April 27, 2024 15:50
Visual Studio Code with @sawaratsuki1004's custom logo
.editor-group-watermark {
max-width: 400px !important;
}
.editor-group-watermark > .letterpress {
aspect-ratio: 1920/1080 !important;
background-image:url('https://github.com/SAWARATSUKI/ServiceLogos/blob/c2cf29211b93efe48e5c34451bac5c56f979ab94/VisualStudioCode/VisualStudioCodeRound.png?raw=true') !important;
background-position: center;
}