Skip to content

Instantly share code, notes, and snippets.

@cj-praveen
cj-praveen / mpv.conf
Last active September 18, 2025 09:13
My Configuration for MPV Player
vo=gpu
gpu-api=metal
gpu-context=auto
hwdec=videotoolbox
tone-mapping=reinhard
tone-mapping-param1=0.3
tone-mapping-desaturate=0.1
interpolation=yes
@cj-praveen
cj-praveen / fs.js
Last active September 18, 2025 09:11
A read-only file server
#!/usr/bin/env bun
import { stat, readdir } from "fs/promises";
import { join } from "path";
const root = process.cwd();
async function html(target, baseDir) {
const entries = await readdir(target);
return new Response(
@cj-praveen
cj-praveen / gtk.css
Last active January 28, 2025 05:44
~/.config/gtk-3.0/gtk.css (Xfce Panel Styling)
/* ~/.config/gtk-3.0/gtk.css */
@import 'colors.css';
.xfce4-panel {
background: rgba(255, 255, 255, 0.1);
border: none;
border-radius: 4px;
}
.tasklist button {
@cj-praveen
cj-praveen / settings.json
Last active July 26, 2024 11:24
My Configuration for Zed Code Editor
{
"features": {
"inline_completion_provider": "none"
},
"theme": "One Dark",
"telemetry": {
"diagnostics": false,
"metrics": false
},
"ui_font_size": 16,
@cj-praveen
cj-praveen / .vimrc
Last active July 11, 2024 05:29
My Configuration for VIM
set number
syntax on
set showmode
set nobackup
set noswapfile
set noundofile
set nowrap
set encoding=utf-8
set tabstop=4 softtabstop=4
set shiftwidth=4