Skip to content

Instantly share code, notes, and snippets.

View cybersiddhu's full-sized avatar

Siddhartha Basu cybersiddhu

View GitHub Profile
@cybersiddhu
cybersiddhu / pebble-db.md
Created October 24, 2025 15:36
create database using pebble, a rocksdb variant in golang
@cybersiddhu
cybersiddhu / pylist.md
Created September 2, 2024 21:46
python list for freshman

Module 1: Introduction to Lists

Lesson 1: What are Lists?

  1. Definition of lists in Python:

    • A list is an ordered collection of items in Python.
    • Lists are mutable, meaning they can be changed after creation.
    • Lists can contain elements of different data types.
  2. How lists are used in programming:

@cybersiddhu
cybersiddhu / pystring.md
Last active September 9, 2024 00:44
python strings for freshman learning

Module 1: Introduction to Strings

Lesson 1: What are Strings?

  1. Definition of strings in Python
  2. How strings are used in programming
  3. Examples of strings in everyday life

Example:

# Examples of strings
@cybersiddhu
cybersiddhu / pyfunc2.md
Created September 2, 2024 21:16
python functions freshman continued ....
  1. Function with String Manipulation
def create_username(first_name, last_name):
    first_initial = first_name[0].lower()
    username = f"{first_initial}{last_name.lower()}"
    return username[:8]  # Limit username to 8 characters
@cybersiddhu
cybersiddhu / uclrambling.md
Created April 16, 2024 21:55
PSG vs Barca - a truncated rambling

Thinking about writing something on the Barça vs PSG second leg and I gotta say, it got pretty emotional watching this match. Barça proved me wrong, and I was initially skeptical about their lack of balance and consistency in performance.

As usual, Barça started cautiously, soaking up pressure from PSG who began aggressively, winning the ball and dominating possession. However, thing changed with nice move on the PSG's left by Yamal, a subtle and silky hesitation unbalanced Mendes and Lamal went past through an inside cut. A good cross followed, allowing Rafinha to score the opening goal – though it was somewhat

@cybersiddhu
cybersiddhu / ucl.md
Last active April 10, 2024 01:07
Man City - RM rambling

Summary

I wasn’t expecting this score line, thought a 1-1 draw or maybe 1-0 RM or maybe a little bit more caged affair. Didn’t go that way. Real played mostly on the break or transitions, using the pace of Vini or Rodrygo and to some extent Valverde or Camavinga. Man city got a great opening and then Real got two goals, i have to say they got lucky to some extent particularly for the first goal. Then city scored two golazos, Foden kind of expected as he is scoring banger quite a lot, but wasn’t expecting for Gvardiol. On the other side, Valverde is pretty much is known for that, i wasn’t really surprised. But i was surprised see him that open, Kovacic was laboring, didn’t cover him.

Thoughts

  1. Haaland was tightly marked by Rudiger, either he couldn’t go through or whenever he got, he was fouled. Also, Haaland was kind of playing for the team, he was opening up shooting lane by dragging the defender, that gives Foden a little bit more space and opening to make those shot. So, Haaland kind of taking
@cybersiddhu
cybersiddhu / starship.nix
Created October 5, 2022 18:08 — forked from s-a-c/starship.nix
Nix file to generate complete, mostly default, starship.toml, including equivalent of <format = "$all">
programs.starship = {
enable = true;
settings = {
# "$schema" = "https://starship.rs/config-schema.json";
add_newline = true;
command_timeout = 500;
continuation_prompt = "[∙](bright-black) ";
format = "[](0x9A348E)$username$hostname$localip$shlvl$singularity$kubernetes[](fg:0x9A348E bg:0xDA627D)$directory$vcsh[](fg:0xDA627D bg:0xFCA17D)$git_branch$git_commit$git_state$git_metrics$git_status$hg_branch[](fg:0x86BBD8 bg:0x06969A)$docker_context$package$buf[](fg:0xFCA17D bg:0x86BBD8)$c$cmake$cobol$container$daml$dart$deno$dotnet$elixir$elm$erlang$golang$haskell$helm$java$julia$kotlin$lua$nim$nodejs$ocaml$perl$php$pulumi$purescript$python$rlang$red$ruby$rust$scala$swift$terraform$vlang$vagrant$zig$nix_shell$conda$spack$memory_usage$aws$gcloud$openstack$azure$env_var$crystal$custom$sudo$cmd_duration$line_break$jobs$battery[](fg:0x06969A bg:0x33658A)$time$status$shell$character";
right_format = "";
scan_timeout = 30;
@cybersiddhu
cybersiddhu / rust-command-line-utilities.markdown
Created October 2, 2022 12:30 — forked from sts10/rust-command-line-utilities.markdown
A curated list of command-line utilities written in Rust

A curated list of command-line utilities written in Rust

Note that I have not tried all of these personally, and cannot and do not vouch for all of the tools listed here. In most cases, the descriptions here are copied directly from their code repos. Some may have been abandoned. Investigate before installing/using.

The ones I use regularly include: bat, dust, exa, fd, hyperfine, miniserve, ripgrep, just, zoxide and cargo-wipe.

  • atuin: "Magical shell history"
  • bandwhich: Terminal bandwidth utilization tool
  • bat: A replacement for cat that provides syntax highlighting and other features.
  • bottom: Yet another cross-platform graphical process/system monitor.
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files