Skip to content

Instantly share code, notes, and snippets.

View sanjeevtripurari's full-sized avatar
🎯
Focusing

Sanjeev Tripurari sanjeevtripurari

🎯
Focusing
View GitHub Profile
@sanjeevtripurari
sanjeevtripurari / hadoop-compile
Created January 6, 2016 14:59
hadoop source compilation
# Compilint hadoop source
# Local system
cd Projects/hadoop/
cat .git/config
# [remote "origin"]
# url = ssh://[email protected]/sanjeevtripurari/hadoop.git
# [remote "upstream"]
@sanjeevtripurari
sanjeevtripurari / convertbytesto.sh
Created January 6, 2016 15:10
Shell script to convert bytes to KB, MB, GB, PB, TB
#!/bin/bash
# Give numeric value, which is in bytes
# will show all possible conversions
call_bc() {
n1=$1
n2=$2
echo "scale=4; $n1/($n2)" |bc
}
@sanjeevtripurari
sanjeevtripurari / wordcount.pig
Created May 22, 2016 17:38 — forked from tomgullo/wordcount.pig
wordcount using hadoop pig
A = load '/tmp/alice.txt';
B = foreach A generate flatten(TOKENIZE((chararray)$0)) as word;
C = filter B by word matches '\\w+';
D = group C by word;
E = foreach D generate COUNT(C), group;
store E into '/tmp/alice_wordcount';
@sanjeevtripurari
sanjeevtripurari / 01. instructions.md
Created September 27, 2024 13:44 — forked from denistsyplakov/01. instructions.md
2024.09. GenAI. Home work
  • All homework result should be compose in a form of git repository (public if you do not mind)
  • Send link to repository once you done.
  • Home work should contain both your prompts and model replies
  • [optional] If you have access to variety of models (Gemini, Command R+, Claude), run prompts with different models, compare replies.
package main
import (
"net/http"
"database/sql"
"fmt"
"log"
"os"
)