Skip to content

Instantly share code, notes, and snippets.

View mystal's full-sized avatar

Gabriel Martinez mystal

View GitHub Profile
@giuliano-macedo
giuliano-macedo / download_file.rs
Last active April 24, 2026 16:17
Download large files in rust with progress bar using reqwest, future_util and indicatif
// you need this in your cargo.toml
// reqwest = { version = "0.11.3", features = ["stream"] }
// futures-util = "0.3.14"
// indicatif = "0.15.0"
use std::cmp::min;
use std::fs::File;
use std::io::Write;
use reqwest::Client;
use indicatif::{ProgressBar, ProgressStyle};
# godot compressed file unpacker/repacker
# i think this should Just Work(tm) for deflate and gzip assets
# sucks for anyone who needs to mess with fastLZ/zstd assets (hopefully not me later)
# works with like, python3.2 standard library (or thereabouts, i'm using 3.10)
import math
import os
import struct
import sys
import zlib
@pksunkara
pksunkara / config.toml
Last active July 4, 2026 12:46
Sample of jj config file (Example jj/config.toml) (Place them in $XDG_CONFIG_HOME/jj)
'$schema' = 'https://jj-vcs.github.io/jj/latest/config-schema.json'
[user]
name = 'Pavan Kumar Sunkara'
email = 'pavan.sss1991@gmail.com'
username = 'pksunkara'
[ui]
default-command = 'default'
editor = 'nvim'
@TerryCavanagh
TerryCavanagh / howtorunexefilesonlinux.md
Last active February 15, 2026 03:00
How to run windows .exe files on Linux by just double clicking on them

Here's a little script I use to easily run windows exe files on Linux by just double clicking on them, like you would on windows. It uses Valve's Proton, and assumes you have Steam installed somewhere on Linux. I'm using Ubuntu with Gnome.

First, copy this shell script somewhere in your home directory. Mine is in /home/terry/scripts/protonlauncher.sh. (I didn't write this script, I found it on google)

#!/usr/bin/env bash

if [ "$#" -ne 1 ]; then
    echo "Usage: $0 <executable-path>"
    exit 1