Skip to content

nick-chandoke/utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

my utils

executable scripts
archvm

headless start of my virtualbox arch vm, so that i can ssh into it

battery-monitor

daemon that alerts or suspends on low battery

codepoint

get the codepoint of a character, or get a character from a codepoint (hex or dec)

color-picker

sway-specific color picker. intended to be run from a terminal. requires pastel(1)

colors

print a terminal color palette

copy-playlists-to-ext-disk

self-explanatory. expects m3u8 playlists.

cs

interactive color scheme selector. requires fzf(1).

del-not-here

used with e.g. cp -rut /mnt/backup/ /home to synchronize folders' contents, here /mnt/backup/home with /home.

extract-audio

<obvious>

fromsexy

converts .Xresources output to a format usable by kitty(1). named b/c i used it for https://terminal.sexy 's themes

hex2int

convert a base-16 (hexadecimal) string into a base-10 (decimal) integer

lsext

list the extensions of a given directory (and optionally its descendants) or list files of a given extension

ow

"open with." interactively browse files (using fzf(1)) and open them with a given program

parrot.hs

a server that displays your http request

powerline

display a powerline. also a library, and a dependency of battery-monitor.

r

like nohup(1) but cleaner & more convenient; asynchronously executes a process and discards its stdout & stderr

raco-pkg-update

installs packages from prior versions of racket into your latest version

rand

get a truly random number from the terminal

searchpkgs

search nix package sets easily & efficiently, with pretty output. designed for nixos users.

select-workspace

use wofi(1) and sway-ipc to move to a sway(1) workspace

set-monitors

alternative to kanshi(1) (since kanshi didn’t work for me); applies monitor arrangement config when run

sway-bg

kills any currently running swaybg process on a given output, then launches a new swaybg process for that output

sway-ipc

simple racket lib & cmdline interface to sway-ipc(7)

unique

sort -u but preserves order.

libraries
cmdline-map.rkt

parse command line options into a hash map and list of extra args

dynamic-require-plus.rkt

nice, clean way to load [non-kwarg] functions from other modules at runtime

http.rkt

convenience functions around the http-easy library

json-extra.rkt

powerful json macros & accessor functions

optimal.rkt

given many maps with common keys, get all desired keys with the fewest map lookups

ring-buffer.rkt

emulation of a ring buffer by vectors and modular arithmetic

simple-server.rkt

starting template for simple http servers. good for quickly transferring arbitrary data across machines.

time.rkt

convenience functions around the gregor library

tree.rkt

rose trees

util.rkt

big collection of miscellaneous functions

About

everyday utils that i use

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages