Skip to content

Instantly share code, notes, and snippets.

View barelyhuman's full-sized avatar

Siddharth Gelera (reaper) barelyhuman

View GitHub Profile
@barelyhuman
barelyhuman / *doc-generator.md
Created November 4, 2022 07:21
Single script for doc generation

Doc Generator

Single file doc generator for javascript projects where no other programming language is available.

This was a learning project for working with reactive streams for CLI apps and something I needed at work to generate wiki sites from an existing docs folder.

There's an attached Dockerfile if you wish to deploy it on a container, the script is for flat docs folders with all docs on the first level of the folder a.k.a nested documents aren't supported right now.

@barelyhuman
barelyhuman / Subliminal-Theme-Flat-mod-vscode.json
Last active May 12, 2023 11:07
Subliminal Theme Flat mod
{
"editor.suggestOnTriggerCharacters": false,
"editor.lightbulb.enabled": false,
"editor.selectionHighlight": true,
"editor.occurrencesHighlight": true,
"editor.formatOnSave": true,
"editor.fontFamily": "Hermit",
"editor.fontSize": 13.5,
"editor.formatOnPaste": false,
"editor.tabSize": 2,
{
"ignored_packages":
[
"Vintage",
],
"font_face":"JetBrains Mono",
"line_padding_top":5,
"line_padding_bottom":5,
"color_scheme": "Packages/ayu/ayu-dark.sublime-color-scheme",
"theme": "ayu-dark.sublime-theme",
@barelyhuman
barelyhuman / *vim.md
Last active April 25, 2023 02:19
self sufficient single Vim file for a minimal, portable vim

Vim Portable Config

The above config is single file for portability between environments.

Here's dependents that you need to set it up

macOS

FROM ghcr.io/mmafrar/alpine-react-native-android:latest
# Install dependencies
RUN apk add --no-cache git curl bash build-base openssl openssh-client libffi-dev libxml2-dev libxslt-dev libgcrypt-dev libressl-dev readline-dev yaml-dev zlib-dev ncurses-dev gdbm-dev pcre-dev mariadb-dev sqlite-dev
# Install rbenv
@barelyhuman
barelyhuman / *nvim.md
Last active February 16, 2023 13:20
Tiny Single File nvim config

Usage

Just replace CONFIG_DIR/nvim/init.lua with the file below , where CONFIG_DIR is generally ~/.config in linux and mac

@barelyhuman
barelyhuman / sizesnap.js
Created October 30, 2022 13:22
Pure ESM version of sizesnap cli
import glob from 'tiny-glob'
import _xs from 'xstream'
import zlib from 'zlib'
import {promises as fs} from 'node:fs'
import _concat from 'xstream/extra/concat.js'
const xs = _xs.default
const concat = _concat.default
// contained exec of the streams

Notion Vuepress Sync

The script simply syncs from a notion database and renders the content of the pages created inside the table based on the following structure.

title type published
page name FAQ [x]
another page Category [x]
@barelyhuman
barelyhuman / hide-explorer-arrows-vscode.sh
Created August 12, 2022 13:32
hide arrows for an icon them in vscode
#!/usr/bin/env bash
ext_root="$HOME/.vscode/extensions/"
cd $ext_root
extension_dir=$(ls . | grep miguelsolorio.symbols)
cd $extension_dir
jq -n -f ./src/symbol-icon-theme.json | cat > .tmp
npx json -I -e "this.hidesExplorerArrows=true;" -f .tmp
mv ./src/symbol-icon-theme.json ./src/symbol-icon-theme.json.bak
mv .tmp ./src/symbol-icon-theme.json
@barelyhuman
barelyhuman / gray-palette.json
Created July 31, 2022 14:22
my gray palette
[
{
"name": "gray-100",
"color": "rgba(25, 24, 21, 1)"
},
{
"name": "gray-75",
"color": "rgba(113, 113, 113, 1)"
},
{