Skip to content

Instantly share code, notes, and snippets.

View btbytes's full-sized avatar
🐎
🏈

Pradeep Gowda btbytes

🐎
🏈
View GitHub Profile
@btbytes
btbytes / aid.txt
Created December 18, 2020 01:45
Generate a Random HTML Anchor. Useful for linking to specific paragraphs in a HTML or markdown page
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>\"
EOF"
set the clipboard to aid
@btbytes
btbytes / deno.sublime-build
Last active December 13, 2020 01:09
Sublime build files
{
"cmd": ["/usr/local/bin/deno", "run", "-q", "$file"],
"selector": "source.ts",
"file_regex": "^\\s*File \"(...*?)\", line ([0-9]*)",
"env": {"NO_COLOR": ""}
}
@btbytes
btbytes / pandoc.Makefile
Created November 27, 2020 15:34 — forked from bertvv/pandoc.Makefile
Makefile for Markdown -> PDF using pandoc
# 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
@btbytes
btbytes / bash.generate.random.alphanumeric.string.sh
Created November 17, 2020 19:25 — forked from earthgecko/bash.generate.random.alphanumeric.string.sh
shell/bash generate random alphanumeric string
#!/bin/bash
# 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
@btbytes
btbytes / java-humble-bundle.md
Created November 16, 2020 23:05
Java Humble Bundle

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
btbytes / README.md
Created October 16, 2020 17:23
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": "",

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
btbytes / README.md
Created June 10, 2020 02:26
Compiling a Lua + FLTK Application binary application on Mac.

fltk4lua:

git clone https://github.com/siffiejoe/lua-fltk4lua

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

@btbytes
btbytes / 001.md
Last active June 8, 2020 07:16
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.
@btbytes
btbytes / README.md
Last active June 5, 2020 01:09
Nim as AWK