Skip to content

Instantly share code, notes, and snippets.

View godDLL's full-sized avatar

Yuli C. godDLL

View GitHub Profile
@godDLL
godDLL / README.md
Last active December 10, 2021 22:24
Healthy sleep normalization tracker for the console.

Stat Sleep Fish

Sleep tracker with a timer, in the terminal. Demo
Screen Shot 2021-12-11 at 00 04 09

Installation

Download, chmod +x stat-sleep.fish and put it in your PATH

@godDLL
godDLL / README.md
Last active October 1, 2022 07:46
Quick jump to file or folder, sorted by recency.

Z Fish

Choose a file to edit or a directory to visit, quickly.
Screen Shot 2021-12-04 at 22 40 14

Automatically sorted by recent use. Can have multiple lists.

Add items easily from the command line. Interactively remove from items in a list.

@godDLL
godDLL / README.md
Last active January 13, 2022 11:53
Time to sunrize or sunset, words or fancy statusline.

Suntime Fish

Print daylight hours remaining, cache sunrize time from wttr.in
Screenshot

Installation

Download, chmod +x suntime.fish and put it in your PATH

@godDLL
godDLL / README.md
Last active November 29, 2021 03:09
A simple status or greeting line with a memento mori in it.

Stat Mori Fish

Days of productive life remaining. Demo
Screen Shot 2021-11-25 at 14 38 40

Installation

Download, chmod +x stat-mori.fish and put it in your PATH

fish is required to run this script, but doesn't have to be your SHELL to do it.

@godDLL
godDLL / script.js
Last active November 9, 2021 19:52
Userstyle and userscript for grayscale and pinq UI for November 2021.
// www.youtube.com theme by god.DLL@iCloud.com (cc) 2021
// gist.github.com/godDLL/ab5e8ab3e9b4dc278ebe69341ad3fbde
document.body.onload= function () {
var i= function i () {
var v= document.getElementById('search-form')
if (null == v){
setTimeout( i, 49)
return
}
@godDLL
godDLL / README.md
Last active December 24, 2023 16:02
Interactive time-logging calculator on console. Kinda like pomodoro with soulver/numi inside, but in your terminal.
@godDLL
godDLL / colors-256.fish
Last active October 30, 2021 17:14
Ansi color cube with 24 grays (240 colors), and a simple 3x3x3 cube with 5-value grayscale ramp (32 colors).
#!/usr/bin/env fish
set -l G1 (seq 232 243)
set -l G2 231 15 (seq 255 244)
set -l G3 (seq 244 255) 231
switch "$argv[1]"
case '-h' '--help'
echo 'USAGE: colors-256 [-v|--verbose]' >&2
exit
@godDLL
godDLL / bs.fish
Last active September 15, 2021 12:24
Backspace in the Terminal
function bs --description 'Backspace over last line'
set -l EDITED '\e[7m'
if test -z "$argv"
# default
echo -ne -- '\e[A\e[K\e[A' # up, clear line, up
else
set -l N $argv[1] # -5 to clear five up, 5 to type over fifth line
if test '+-' = +(string sub -l 1 -- "$N")
# clear N lines up
set -l C (seq 0 (string sub -s 2 -- "$N"))
@godDLL
godDLL / ass-min.js
Last active August 28, 2016 07:44
short ES2015 function class
(function(w){"use strict";var a=Object.assign=Object.assign||function assign(t){var i=0,s,key;while(s=arguments[i++])for(k in s)if(s.hasOwnProperty(k))t[k]=s[k];return t};w.ass=function(t,s){a(t.p,s);return t}})(window)
@godDLL
godDLL / README.md
Last active June 21, 2016 21:10
Tiny static site generator, with <?js "templates" ?>

HTMX - static document generator, with Javascript preprocessing

Use Javascript where you would ordinarily use PHP or some templating language.

STATUS: v0.0.2 so alpha it hurts

This has just been hacked together, so expect a bumpy ride.

Overview