Skip to content

Instantly share code, notes, and snippets.

View btbytes's full-sized avatar

Pradeep Gowda btbytes

View GitHub Profile
@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
@btbytes
btbytes / README.md
Created May 27, 2020 13:20
Installing and using NimQML(Nim binding for Qt5) on MacOSX

Installing DOtherside

Clone DOtherSide: git clone git@github.com:filcuc/dotherside.git

Compilation of DOtherside failed with:

CMake Error at /usr/local/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:15 (message):                                                                                                                                                               
 The imported target "Qt5::Core" references the file 
@btbytes
btbytes / apikeygen.py
Created May 20, 2020 03:52
Shell Safe API Key / Password generator
#!/usr/bin/env python
"""
apikeygen.py
Generate a shell safe API key (or password)
Generated string should not have any characters that need to be escaped in
the shell. The following characters have special meaning in some shell contexts
! # $ ' ( ) * , ; . < = > ? [ ] ^ { } | ~ - . : \
@btbytes
btbytes / vscode-extensions.txt
Created May 13, 2020 16:41
VSCode extensions
0x9ef.vscode-vlang
bajdzis.vscode-database
batisteo.vscode-django
bbenoist.vagrant
be5invis.toml
betterthantomorrow.calva
borkdude.clj-kondo
cake-build.cake-vscode
Dart-Code.dart-code
Dart-Code.flutter
@btbytes
btbytes / README.md
Last active May 3, 2020 16:33
The case for universal transliteration of Indic languages

The case for universal transliteration of Indic languages

What do I mean by Universal transliteration of Indic Langauges?

Why?

The machine transliteration of one script to another is already a well understood and widely implemented product. Example [Google Transliterate][1], [Sanscript][2]

Why not translation?

@btbytes
btbytes / proxy-connect.js
Created February 25, 2020 20:39
using-amazon-rds-proxy-with-aws-lambda
// from https://aws.amazon.com/blogs/compute/using-amazon-rds-proxy-with-aws-lambda/
let AWS = require('aws-sdk');
var mysql2 = require('mysql2'); //https://www.npmjs.com/package/mysql2
let fs = require('fs');
let connection;
exports.handler = async(event) => {
const promise = new Promise(function(resolve, reject) {