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 / README.md
Last active March 22, 2024 01:03
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 --with-openssl@1.1 --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
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);
package main
import (
"fmt"
"github.com/charmbracelet/glamour"
)
func main() {
in := `# Hello World
@Debdut
Debdut / hn.css
Created July 11, 2022 20:38
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;
<?xml version="1.0" encoding="UTF-8"?>
<!-- OPML generated by NetNewsWire -->
<opml version="1.1">
<head>
<title>Subscriptions-iCloud.opml</title>
</head>
<body>
<outline text="0x41.cf" title="0x41.cf" description="" type="rss" version="RSS" htmlUrl="https://0x41.cf/" xmlUrl="https://0x41.cf/feed.xml"/>
<outline text="A Junior VC" title="A Junior VC" description="" type="rss" version="RSS" htmlUrl="https://ajuniorvc.com/" xmlUrl="https://ajuniorvc.com/feed/"/>
<outline text="A Primer on Bézier Curves" title="A Primer on Bézier Curves" description="" type="rss" version="RSS" htmlUrl="https://pomax.github.io/bezierinfo" xmlUrl="https://pomax.github.io/bezierinfo/news/rss.xml"/>
$ tree
.
├── HELP.md
├── lolcat.spring.iml
├── mvnw
├── mvnw.cmd
├── pom.xml
├── src
│   ├── main
@Debdut
Debdut / README.md
Last active March 23, 2022 20:38
Safari Like Password Generator

CLI Safari Password Generator

If you love the Safari Password generator like me, idk about you but a paaaassword like e40a2a-a97a30-860df1 looks really cute to me!

Install Instructions

  • Create a file named pass in /usr/local/bin or somewhere in $PATH
  • Copy and paste the pass.sh contents into it
  • Give it executable permssion chmod +x /usr/local/bin/pass
  • And you are done!
@Debdut
Debdut / github.zsh-theme
Created February 4, 2022 14:32
Github Zsh Theme
PROMPT='%{$fg[green]%}@%n %{$fg[black]%}->'
PROMPT+=' %{$fg[magenta]%}%2~%{$reset_color%} $(git_prompt_info)'
PROMPT+="%(?:%{$fg[black]%}$ :%{$fg[red]%}$ )"
PROMPT+="%{$fg[white]%}"
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}git:(%{$fg[red]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"
const sleep = (millis, throwOnAborted = false) => {
let timeout_id
let rejector
const prom = new Promise((resolve, reject) => {
rejector = throwOnAborted ? reject : _ => resolve()
timeout_id = setTimeout(() => {
resolve()
}, millis)
})
@Debdut
Debdut / vim_cheatsheet.md
Last active January 25, 2023 19:53 — forked from awidegreen/vim_cheatsheet.md
Vim shortcuts

Introduction

C-a       Ctrl-a 
M-a       Alt-a

General

:q        close
:w        write/saves