Skip to content

Instantly share code, notes, and snippets.

View Debdut's full-sized avatar
💭
Chill

Debdut Karmakar Debdut

💭
Chill
View GitHub Profile
@Debdut
Debdut / hn.css
Last active February 4, 2025 13:27
HN Dark Light Mode
:root {
--font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
--color: black;
--background-color: white;
}
@media (prefers-color-scheme: dark) {
:root {
--color: #f1f1f1;
--background-color: #222;
package main
import (
"fmt"
"github.com/charmbracelet/glamour"
)
func main() {
in := `# Hello World
const Reducer = (
{ search, autocomplete }: InitialStateType,
action: SearchAction | AutoCompleteAction
) => ({
search: SearchReducer(search, action as SearchAction),
autocomplete: AutoCompleteReducer(autocomplete, action as AutoCompleteAction)
});
const [state, dispatch] = useReducer(Reducer, InitialState);
@Debdut
Debdut / README.md
Last active August 15, 2024 13:29
FFMPEG brew all options without errors

Possible Errors

  • ERROR: DeckLinkAPI.h not found
  • ERROR: chromaprint not found
  • FormulaUnavailableError: No available formula with the name "zvbi"

Solution

brew install homebrew-ffmpeg/ffmpeg/ffmpeg --with-fdk-aac --with-game-music-emu --with-jack --with-libbluray --with-libbs2b --with-libcaca --with-libgsm --with-libmodplug --with-libopenmpt --with-librist --with-librsvg --with-libsoxr --with-libssh --with-libvidstab --with-libvmaf --with-libxml2 --with-opencore-amr --with-openh264 --with-openjpeg --with-openssl [email protected] --with-rav1e --with-rtmpdump --with-rubberband --with-speex --with-srt --with-svt-av1 --with-tesseract --with-two-lame --with-webp --with-xvid --with-zeromq --with-zimg