Skip to content

Instantly share code, notes, and snippets.

View barelyhuman's full-sized avatar

Siddharth Gelera (reaper) barelyhuman

View GitHub Profile
with (import <nixpkgs> {});
with (import /home/maarten/code/nixos/yarn2nix { inherit pkgs; });
let
gems = bundlerEnv {
name = "project-name";
inherit ruby;
gemdir = ./.;
};
in stdenv.mkDerivation {
name = "project-name";
@barelyhuman
barelyhuman / boring.itermcolors
Created July 25, 2022 11:47
iterm colors based on Plastic Theme + RSMS Gray colors
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.44705882668495178</real>
@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)"
},
{
@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 / *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

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 / 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
@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 / *pipe.md
Last active November 12, 2023 23:26
pipe
@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