Skip to content

Instantly share code, notes, and snippets.

View btbytes's full-sized avatar

Pradeep Gowda btbytes

View GitHub Profile
@btbytes
btbytes / min.css
Created September 27, 2022 03:49
minimum css
:root {color-scheme: light dark;}html {max-width: 70ch;padding: calc(1vmin + .5rem);margin-inline: auto;font-size: clamp(1em, 0.909em + 0.45vmin, 1.25em);font-family: system-ui}body :not(:is(h1,h2,h3,h4,h5,h6)) {line-height: 1.75;}h1,h2,h3,h4,h5,h6 {margin: 3em 0 1em;}p,ul,ol {margin-bottom:2em;color:#1d1d1d;font-family: sans-serif;}
@btbytes
btbytes / next1000words.md
Last active August 31, 2022 14:26
The next 1000 words

The Next Thousand Words

Why should a dictionary be arranged alphabetically?

Why not arrange them in the order of most commonly used on down?

Why can we not organize dictionary to progressively improve an individual's knowledge of the words (meaning, usage)?

In the print world, it made sense to organize words in a sorted order so that it is easy to look up a word.

@btbytes
btbytes / README.md
Last active October 14, 2022 01:33
Pradeep Gowda's Zeit.Gist

source: openkb.info

1. Oozie Launcher Job architecture

Oozie Launcher job is a map-only job which will start the jobs which does the real work: eg, Hive, MR, Pig, etc.

(Oozie Launcher MR job [AM/Mapper Container(Hive CLI)])
. -> (MR job-1 spawned by Hive query(stage0) [AM/Mapper/Reducer Containter])
. -> (MR job-2 spawned by Hive query(stage1) [AM/Mapper/Reducer Containter])

2. How to increase the YARN container size for AM or Mapper of Oozie Hive job?

It is controlled by below 4 parameters set in workflow.xml for each Oozie job.

@btbytes
btbytes / 00-OozieBundleApplication
Created June 14, 2021 13:57 — forked from airawat/00-OozieBundleApplication
Oozie bundle application sample. The sample bundle application is time triggered. The start time is defined in the bundle job.properties file. The bundle application starts two coordinator applications- as defined in the bundle definition file - bundleConfirguration.xml. The first coordinator job is time triggered. The start time is defined in t…
Introduction
-------------
This gist includes sample data, application components, and components to execute a bundle application.
The sample bundle application is time triggered. The start time is defined in the bundle job.properties
file. The bundle application starts two coordinator applications- as defined in the bundle definition file -
bundleConfirguration.xml.
The first coordinator job is time triggered. The start time is defined in the bundle job.properties file.
It runs a workflow, that includes a java main action. The java program parses some log files and generates
@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