Skip to content

Instantly share code, notes, and snippets.

View javiermolinar's full-sized avatar
🦍
Focusing on what matter

Javi javiermolinar

🦍
Focusing on what matter
  • Grafana Labs
  • Granada, Spain
View GitHub Profile
@javiermolinar
javiermolinar / debug.json
Last active October 7, 2025 10:32
Debug task for debugging C files in Zed
[
{
"label": "Debug C file",
"build": {
"command": "gcc",
"args": ["-g", "${ZED_FILE}", "-o", "${ZED_DIRNAME}/${ZED_STEM}.out"],
"cwd": "${ZED_WORKTREE_ROOT}"
},
"program": "${ZED_DIRNAME}/${ZED_STEM}.out",
"request": "launch",
@javiermolinar
javiermolinar / convert.py
Created August 20, 2025 08:38
Convertion script between proton authenticator export format and bitwardern format
import json
import uuid
import sys
def proton_to_bitwarden(proton_json):
proton_data = json.loads(proton_json)
bitwarden_export = {
"encrypted": False,
@javiermolinar
javiermolinar / debugging_tempo.md
Last active August 8, 2024 11:02
How to debug Grafana tempo with VScode
@javiermolinar
javiermolinar / tempo.md
Created July 19, 2024 21:07
Sending traces to Grafana Tempo

How to send traces to Grafana Tempo

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Local                                                   β”‚  β”‚ Internet                            β”‚
β”‚                                                          β”‚  β”‚                                     β”‚
β”‚                                                          β”‚  β”‚                                     β”‚
β”‚                                                          β”‚  β”‚                                     β”‚
β”‚       β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”       β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚  β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”            β”‚
β”‚       β”‚                 β”‚       β”‚                     β”‚  β”‚  β”‚  β”‚                     β”‚            β”‚
@javiermolinar
javiermolinar / vault.py
Last active March 6, 2023 14:20
Create and download exports from Google Vault
from __future__ import print_function
from googleapiclient.discovery import build
from googleapiclient.errors import HttpError
from google.oauth2.credentials import Credentials
from google.cloud import storage
from zipfile import ZipFile
import os
import pathlib
@javiermolinar
javiermolinar / multipart.py
Created November 10, 2022 09:42
POST multipart-mixed request from httpx built by aiohttp
import asyncio
import httpx
from aiohttp import MultipartWriter, hdrs
class writter:
data = ""
async def write(self, value):
self.data += value.decode("utf-8")
@javiermolinar
javiermolinar / dotfiles.md
Last active October 13, 2022 08:33
My dotfiles

.zshrc

# Path to your oh-my-zsh installation.
export ZSH="/Users/javimolina/.oh-my-zsh"

plugins=(
  git
  zsh-autosuggestions
  kubectl
@javiermolinar
javiermolinar / api.md
Last active May 5, 2022 10:37
API conventions
@javiermolinar
javiermolinar / kubernetes.md
Created March 28, 2022 12:59 — forked from xmlking/kubernetes.md
Kubernetes Cheat Sheet

Kubernetes

Install

Prerequisites

  1. Bash v5+ checkout Upgrading Bash on macOS
  2. bash-completion@2

Install Docker and Kubernetes(k8s)