Skip to content

Instantly share code, notes, and snippets.

@cgsdev0
Last active December 2, 2025 12:06
Show Gist options
  • Select an option

  • Save cgsdev0/d0ce5f6ff6f625f2f8086e31f45fba6e to your computer and use it in GitHub Desktop.

Select an option

Save cgsdev0/d0ce5f6ff6f625f2f8086e31f45fba6e to your computer and use it in GitHub Desktop.
one to one hundred
#/usr/bin/env bash
# solution for https://chrzanowski.me/blog_0003.html
seq $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $(echo $BASH_SUBSHELL))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
#include <stdlib.h>
#include <stdio.h>
int main() {
char b['d'] = "hello world! \
this is my little counting \
program that doesn't use numbers. \
hope you enjoy it :D", *c = b;
while(*c++) printf("%ld\n", c-b);
}
++++++++++++++++++++++++++++++++++++++++++++++++>+++++++++++++++++++++++++++++++
+++++++++++++++++>++++++++++>---------->----------[+<[+<<.<.+>>.>]----------<<<-
--------->+>>>]<<<<+.-..
#!/usr/bin/env bash
eval "exec $LINENO>&-"
r() { echo $((++i)); r; }
# hold...
# wait for it...
# almost there!
FUNCNEST=$LINENO r
# surely nobody would change their readline config...
seq $(bind -V | grep qu | tr -cd '[:digit:]')
# credit to twitch.tv/meisaka
! ;seq $?$#$#
# probably only works on specific versions of bash 5.3
# "works on my machine"
seq ${ : ${BASH_VERSION//*\(/} && echo ${_//\)*/}; } $_$((BASHPID-BASHPID))$BASH_ARGC
# quick maths
set -- {a..z}; / || seq $(($?-$#))
@Gatreh
Copy link

Gatreh commented Dec 2, 2025

This is cursed, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment