Skip to content

Instantly share code, notes, and snippets.

@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 / .vimrc
Last active February 9, 2026 04:09
My Configuration for VIM
call plug#begin('~/.vim/plugged')
Plug 'cj-praveen/vim-code-dark'
call plug#end()
colorscheme codedark
set number
syntax on
set showmode
set nobackup