Skip to content

Instantly share code, notes, and snippets.

View basavyr's full-sized avatar
💻
Focusing

Robert Poenaru basavyr

💻
Focusing
  • Orange Services
View GitHub Profile
@basavyr
basavyr / macosFirstSetup.md
Last active June 23, 2024 09:53
MacOS First Setup

Initial setup for a developer oriented macOS

In this guide we will focus on the necessary steps, settings, and tools that are required in order to have an environment that is streamlined for development, research, and overal productivity; all while keeping an emphasiz on distraction-free and minimalism

OS level

  • We will always try to keep the operating system at the latest available version (stable releases only), so the very first step would be to make sure that our system has all the OS updates installed
  • At the time of writing this guide, my macOS version is Version 14.5 (23F79)

Categories

@basavyr
basavyr / kernel.py
Created February 9, 2025 09:29 — forked from MekkCyber/kernel.py
Kernel for matmul while unpacking int2 weights
import torch
import triton
import triton.language as tl
def unpack_weights(packed: torch.Tensor, bits: int = 2) -> torch.Tensor:
values_per_item = 8 // bits
packed_shape = packed.shape
if len(packed_shape) == 1:
@basavyr
basavyr / kernel.py
Created February 9, 2025 09:29 — forked from MekkCyber/kernel.py
Kernel for matmul while unpacking int2 weights
import torch
import triton
import triton.language as tl
def unpack_weights(packed: torch.Tensor, bits: int = 2) -> torch.Tensor:
values_per_item = 8 // bits
packed_shape = packed.shape
if len(packed_shape) == 1:
@basavyr
basavyr / linux-development-packages.txt
Created March 5, 2025 08:27
Linux development packages
sudo apt update && sudo apt install -y neofetch htop tree vim nano tldr unzip nmap curl wget net-tools iputils-ping tmux zoxide ripgrep fzf
sudo apt update && sudo apt install -y zsh tmux tree jq bat fd-find ripgrep htop iotop net-tools nmon sysstat curl wget nmap traceroute mtr whois build-essential software-properties-common apt-transport-https ca-certificates git make cmake pkg-config zip unzip python3 python3-pip
sudo apt update && sudo apt install -y neofetch screenfetch inxi htop btop cmatrix cowsay fortune-mod lolcat figlet sysvbanner colorized-logs progress byobu ranger mc tldr zoxide fzf
for pyenv:
sudo apt update; sudo apt install build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev curl libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev