Skip to content

Instantly share code, notes, and snippets.

View giovannipcarvalho's full-sized avatar
🪲
Patch me if you can!

Giovanni Paolo giovannipcarvalho

🪲
Patch me if you can!
View GitHub Profile
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active August 26, 2025 19:11
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@wangruohui
wangruohui / Install NVIDIA Driver and CUDA.md
Last active August 19, 2025 04:32
Install NVIDIA Driver and CUDA on Ubuntu / CentOS / Fedora Linux OS
@steven2358
steven2358 / ffmpeg.md
Last active August 25, 2025 06:05
FFmpeg cheat sheet
@anna-hope
anna-hope / torchtext_pandas_datasets.py
Created May 30, 2019 18:36
Torchtext dataset and iterator wrappers for Pandas DataFrames
from typing import Union, Dict
import pandas as pd
from torchtext.data import (Field, Example, Iterator, BucketIterator, Dataset)
from tqdm import tqdm
class DataFrameExampleSet:
def __init__(self, df: pd.DataFrame, fields: Dict[str, Field]):
self._df = df
@z3z1ma
z3z1ma / sql_ls.py
Last active January 25, 2025 22:10
A simple language server implementation for SQLMesh using PyGLS
#!/usr/bin/env python
"""A Language Server Protocol (LSP) server for SQL with SQLMesh integration."""
import asyncio
import gc
import io
import logging
import re
import typing as t
import weakref