Skip to content

Instantly share code, notes, and snippets.

View omachala's full-sized avatar

Ondrej Machala omachala

  • JPMorgan Chase
  • London, UK
View GitHub Profile
@omachala
omachala / claude-usage
Created February 22, 2026 09:44
Claude Code Usage CLI - check your session, weekly, and extra usage limits from the terminal
#!/bin/bash
# Claude Code Usage CLI
# Fetches usage data from Anthropic API and displays it in a readable format
#
# Setup:
# 1. Make sure you're logged into Claude Code (credentials stored in macOS Keychain)
# 2. If you're behind a firewall, configure PROXY_PORT and SSH_HOST below
# 3. chmod +x claude-usage && ./claude-usage
#
@omachala
omachala / index.html
Created November 14, 2022 14:42
Wedding Animation Falling Snow Sakura
<div class="sakura-falling"></div>
<img src="//i.imgur.com/dGOOfnA.png" alt="image-top-right" class="top-right-decoration">
<img src="//i.imgur.com/t6ffnbn.png" alt="image-top-left" class="top-left-decoration">
<div class="wrap">
<div class="title">
<h1>Surjith </h1>
<h2>&</h2>
@omachala
omachala / init.vim
Created January 20, 2022 16:25
NVIM
" Specify a directory for plugins
call plug#begin('~/.vim/plugged')
"setup vim-plug {{{
"Note: install vim-plug if not present
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall
endif
@omachala
omachala / index.html
Created October 15, 2021 21:59
Javascript sort() vs Binary Search Tree (https://jsbench.github.io/#09a8288d2ee8b27681cbc1d3bb3e8dd8) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Javascript sort() vs Binary Search Tree</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>
{"lastUpload":"2022-01-13T13:28:59.786Z","extensionVersion":"v3.4.3"}