Skip to content

Instantly share code, notes, and snippets.

export const generateChicken = () => {
const bwwwaaaaaaaaaak = [
"puk",
"pukaaak",
"cluck",
"cluck-cluck-cluck",
"cluckity",
"bwak",
"waaak",
"bok",
@sebastiancarlos
sebastiancarlos / manpdf.sh
Last active December 15, 2024 18:42
manpdf - Turn your man pages into PDF - No one man should have all that power™️ 🔥💪🍆👀
#!/usr/bin/env bash
# Created by argbash-init v2.10.0
# ARG_OPTIONAL_SINGLE([output],[o],[The output file])
# ARG_OPTIONAL_BOOLEAN([open-pdf],[],[Open the PDF file after creating it],[on])
# ARG_POSITIONAL_SINGLE([name-or-file])
# ARG_POSITIONAL_SINGLE([section],[],[""])
# ARG_DEFAULTS_POS([])
# ARG_HELP([<Open a man page as a PDF file>])
# ARG_VERSION([echo $(basename $0) 420.69])
@sebastiancarlos
sebastiancarlos / manimal.sh
Created April 12, 2023 13:57
Manimal - The Minimal POSIX-Compliant Man Pager
#!/usr/bin/env bash
# Manimal - The Minimal POSIX-Compliant Man Pager
# Manimal usage
manimal_usage() {
echo "Usage: manimal [-k] name"
echo
echo "Options:"
echo " -k Search for name in the utilities summary database"
@sebastiancarlos
sebastiancarlos / man-guide.1
Last active August 2, 2024 23:00
man page version of "Man Pages - The Complete Guide"
.TH "MAN PAGES" "1" "03/13/2023" "Man Pages" "Man Pages"
.hy
.SH Man Pages \[em] The Complete Guide
.SS Introduction
.PP
UNIX users frequently use the \f[V]man\f[R] command to learn about
different tools, but few actually learn its inner workings.
In this article you\[cq]ll learn everything there is to know about man
pages.
.PP
@sebastiancarlos
sebastiancarlos / gnu-manual-pages.csv
Last active October 24, 2023 13:18
GNU Projects sorted by number of pages in their PDF manuals (Provided that a PDF manual exists and it's hosted online)
GNU project Number of pages in manual PDF source
Emacs Lisp 1376 https://www.gnu.org/software/emacs/manual/pdf/elisp.pdf
GNU C Library 1239 https://www.gnu.org/software/libc/manual/pdf/libc.pdf
GCC 1093 https://gcc.gnu.org/onlinedocs/gcc-13.2.0/gcc.pdf
Guile 972 https://www.gnu.org/software/guile/manual/guile.pdf
GDB 940 https://sourceware.org/gdb/current/onlinedocs/gdb.pdf
GNUlib 922 https://www.gnu.org/software/gnulib/manual/gnulib.pdf
GnuCOBOL 754 https://sourceforge.net/p/gnucobol/code/HEAD/tree/external-doc/guide/PDFs/gnucobpg-a4.pdf?format=raw
GNU Scientific Library 742 https://www.gnu.org/software/gsl/doc/latex/gsl-ref.pdf
Emacs 695 https://www.gnu.org/software/emacs/manual/pdf/emacs.pdf
@sebastiancarlos
sebastiancarlos / man-pages-pages.csv
Created May 7, 2023 21:59
Man pages sorted by number of pages when converted to PDF (Taken from Arch packages)
We can't make this file beautiful and searchable because it's too large.
Number of pages in manual,Package name,Man page name (and section)
5967,salt,salt.7
751,rclone,rclone.1
684,perl-image-exiftool,Image::ExifTool::TagNames.3pm
645,ffmpeg,ffmpeg-all.1
551,python-pylint,pylint.1
525,ffmpeg,ffprobe-all.1
521,ffmpeg,ffplay-all.1
395,arm-none-eabi-gcc,arm-none-eabi-gcc.1
395,arm-none-eabi-gcc,arm-none-eabi-g++.1
@sebastiancarlos
sebastiancarlos / macos-terminal-rice.sh
Last active December 10, 2023 16:05
Everything that you wanted from your macOS status bar, in your terminal! 🤯 Apples never tasted better 🍎
# All my gist code is licensed under the terms of the MIT license.
# EXAMPLE:
# $ sys
# Date Sun Jun 11 10:46 2023
# Battery 21% - charging
# Keyboard Layout Colemak
# Internet name-of-wifi
# battery information
from the black realm of the terminal vast,
arose the mighty grep, a hero cast,
in strings of text, forever to dwell,
a champion of search, unmatched in skill.
through countless lines, it weaves with grace,
a tapestry of knowledge, at a lightning pace,
finding the lost, the hidden named,
the silent whispers, of zeroes and ones tamed.
with an Apple Macintosh
you can't run Radio Shack programs
in its disc drive.
nor can a Commodore 64
drive read a file
you have created on an
IBM Personal Computer.
both Kaypro and Osborne computers use
the CP/M operating system
but can't read each other's
@sebastiancarlos
sebastiancarlos / grepdist.sh
Last active August 5, 2023 13:57
Grepdist - Print the number of matches in each 10% section of a file
#!/usr/bin/env bash
# All my gist code is licensed under the terms of the MIT license.
# GREPDIST
# Print the number of matches in each 10% section of the file
#
# Example with grep:
# $ grep -c 'Napoleon' war_and_peace.txt
# 576