Skip to content

Instantly share code, notes, and snippets.

View Animesh-Ghosh's full-sized avatar
🎯
Focusing

MaDDogx Animesh-Ghosh

🎯
Focusing
View GitHub Profile
@Animesh-Ghosh
Animesh-Ghosh / chat.link
Last active March 15, 2026 10:18
Lucia Challenge scratchpad
ssh -i ~/.ssh/vastAI -p 22280 [email protected] -L 8080:localhost:8080
ssh -i ~/.ssh/vastAI -p 50532 [email protected] -L 8080:localhost:8080
cd go-ingestor && CGO_LDFLAGS="-L/root/fast-ingester-comp/go-ingestor/lib" go build -o ingestor .
go: downloading github.com/daulet/tokenizers v1.26.0
go: downloading github.com/yalue/onnxruntime_go v1.27.0
go: downloading github.com/xuri/excelize/v2 v2.9.1
go: downloading github.com/apache/arrow-go/v18 v18.2.0
go: downloading github.com/PuerkitoBio/goquery v1.10.3
go: downloading golang.org/x/net v0.40.0
go: downloading github.com/andybalholm/cascadia v1.3.3
go: downloading golang.org/x/crypto v0.38.0
go: downloading github.com/xuri/efp v0.0.1
@Animesh-Ghosh
Animesh-Ghosh / .zshrc
Created January 29, 2026 10:18
My ohmyzsh config
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:$HOME/.local/bin:/usr/local/bin:$PATH
export PATH="${ASDF_DATA_DIR:-$HOME/.asdf}/shims:$PATH"
export PATH="$HOMEBREW_PREFIX/share/google-cloud-sdk/bin:$PATH"
# Path to your Oh My Zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time Oh My Zsh is loaded, in which case,
@Animesh-Ghosh
Animesh-Ghosh / cc.rb
Created January 19, 2026 06:37
Bangalore Ruby User Group Jan 2026 Continuation "talk" content
require 'continuation'
# basic stuff
# puts 1 + callcc { |k| k.call(1) + 1 }
# neat stuff
# behaves differently in IRB 👀
$cc = nil
i = 0
foo = 1 + callcc do |k|
@Animesh-Ghosh
Animesh-Ghosh / christmas_tree.sql
Created December 25, 2024 18:47
Christmas Tree in SQL
--- original version found on @iavins Tweet: https://x.com/iavins/status/1871914543590289672
WITH RECURSIVE numbers(n) AS (
SELECT 1
UNION ALL
SELECT n + 1 FROM numbers WHERE n < 9
), tree_parts(level, stars, spaces) AS (
SELECT
n,
REPEAT('*', n * 2 - 1),
@Animesh-Ghosh
Animesh-Ghosh / foobar.rb
Created October 23, 2024 18:01
Ruby WTF
def foo
return :bar
ensure
p :foo
end
foo # => :bar but prints :foo before returning
def foo
return :bar
@Animesh-Ghosh
Animesh-Ghosh / output.txt
Created May 9, 2024 18:17
001-explorer.exs output
Operating System: Linux
CPU Information: Intel(R) Core(TM) i5-5300U CPU @ 2.30GHz
Number of Available Cores: 4
Available memory: 7.46 GB
Elixir 1.16.0
Erlang 26.2.1
JIT enabled: true
Benchmark suite executing with the following configuration:
warmup: 2 s
@Animesh-Ghosh
Animesh-Ghosh / test_payment_processor.py
Created November 19, 2022 04:17
Tests that got me a job 😎
'''Test for Payment Processor.
Author: Animesh Ghosh
'''
import unittest
from unittest.mock import patch
from io import StringIO
from payment_processor import PaymentProcessor
class TestPaymentProcessor(unittest.TestCase):
@Animesh-Ghosh
Animesh-Ghosh / Matrix.js
Created May 10, 2022 17:23
JavaScript Matrix class with usage examples
/**
* @classdesc a class for doing common Matrix operations
*
*/
class Matrix {
/**
* @param {Array} array a 2d array
*/
constructor(array) {
let numberOfColumns = array[0].length