Skip to content

Instantly share code, notes, and snippets.


Pradeep Gowda btbytes

View GitHub Profile
btbytes / aid.txt
Created Dec 18, 2020
Generate a Random HTML Anchor. Useful for linking to specific paragraphs in a HTML or markdown page
View aid.txt
set aid to do shell script "/bin/bash -s <<'EOF'
randid=$(cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 6 | head -n 1)
echo \"<a id='\"${randid}\"' href='\"#${randid}\"'>¶</a>\"
set the clipboard to aid
btbytes / deno.sublime-build
Last active Dec 13, 2020
Sublime build files
View deno.sublime-build
"cmd": ["/usr/local/bin/deno", "run", "-q", "$file"],
"selector": "source.ts",
"file_regex": "^\\s*File \"(...*?)\", line ([0-9]*)",
"env": {"NO_COLOR": ""}
btbytes / pandoc.Makefile
Created Nov 27, 2020 — forked from bertvv/pandoc.Makefile
Makefile for Markdown -> PDF using pandoc
View pandoc.Makefile
# Generate PDFs from the Markdown source files
# In order to use this makefile, you need some tools:
# - GNU make
# - Pandoc
# - LuaLaTeX
# - DejaVu Sans fonts
# Directory containing source (Markdown) files
source := src
# bash generate random alphanumeric string
# bash generate random 32 character alphanumeric string (upper and lowercase) and
NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
# bash generate random 32 character alphanumeric string (lowercase only)
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1

Java Oreilly Humble Bundle

  • Learning Java, 5th Edition By Marc Loy, Patrick Niemeyer and Daniel Leuck
  • Java Cookbook, 4th Edition By Ian F. Darwin
  • Java Performance, 2nd Edition By Scott Oaks
  • Quarkus Cookbook By Alex Soto and Jason Porter
  • gRPC: Up and Running By Kasun Indrasiri and Danesh Kuruppu
  • 97 Things Every Java Programmer Should Know By Kevlin Henney and Trisha Gee
  • Think Java, 2nd Edition By Allen B. Downey and Chris Mayfield
  • Real-World Software Development By Raoul-Gabriel Urma and Richard Warburton
btbytes /
Created Oct 16, 2020
A personal desktop PDF/documents search interface

A personal desktop PDF/documents search interface

  1. Walk through the disk/directory(ies) that contain the PDFs
  2. Store the following data in a "document store" of some kind that supports text search for later retrieval
  "sha256": "<sha256 hash of the file>",
  "filename": "<filename>",
View Welcome to

Welcome to WordGrinder

Important note for Windows users

WordGrinder is a port of a Unix program, and a few things don’t map well onto the way Windows works. There are some things you need to know.

  • the mouse is ignored. WordGrinder is keyboard driven.
  • the close button at the top right hand corner of the window won’t work. Instead, to quit, type CTRL+Q (or press ESC to open the menu and pick File_→_Quit).
btbytes /
Created Jun 10, 2020
Compiling a Lua + FLTK Application binary application on Mac.


git clone

Make some changes to Makefile to fit my mac os's setup:

btbytes /
Last active Jun 8, 2020
Lua stuff

Lua batteries

  • penlight
  • moses -- functional programming
  • Lua Fun is a high-performance functional programming library designed for LuaJIT tracing just-in-time compiler.