Skip to content

Instantly share code, notes, and snippets.

@gitcrtn
gitcrtn / Dockerfile
Created December 8, 2023 18:06
A cross compiler of bevy project for aarch64
FROM debian:bookworm
ENV USER root
RUN rm /bin/sh \
&& ln -s /bin/bash /bin/sh
RUN mkdir /build \
&& cd \
&& apt update \
&& apt install -y curl build-essential pkg-config \
&& curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \
&& source $HOME/.cargo/env \
@gitcrtn
gitcrtn / Dockerfile
Created December 8, 2023 18:03
A cross compiler of rust-sdl2 project for aarch64
FROM debian:bookworm
ENV USER root
RUN rm /bin/sh \
&& ln -s /bin/bash /bin/sh
RUN mkdir /build \
&& cd \
&& apt update \
&& apt install -y curl build-essential \
&& curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \
&& source $HOME/.cargo/env \
@gitcrtn
gitcrtn / battery_monitor.py
Last active August 8, 2023 11:06
Battery Monitor for Windows Laptop
"""
Battery Monitor
Author: Carotene
License: LGPLv3
Requirements:
PySide6
pyqtgraph (optional)
@gitcrtn
gitcrtn / Cargo.toml
Created January 9, 2023 11:30
rust_socketio example
[package]
name = "socketio-trial"
version = "0.1.0"
edition = "2021"
[dependencies]
rust_socketio = "0.4.0"
@gitcrtn
gitcrtn / Cargo.toml
Created September 12, 2022 22:00
Minimal 3ds example
[package]
name = "trial3ds"
version = "0.1.0"
edition = "2021"
[dependencies]
ctru-rs = { git = "https://github.com/Meziu/ctru-rs" }
@gitcrtn
gitcrtn / Cargo.toml
Created August 19, 2022 14:58
Minimal no_std example for M1 Mac
[package]
name = "rust-nostd-helloworld"
version = "0.1.0"
edition = "2021"
[dependencies]
@gitcrtn
gitcrtn / Cargo.toml
Created August 14, 2022 16:19
A batch converter from wav to mp3
[package]
name = "batch-wav2mp3"
version = "0.1.0"
edition = "2021"
[dependencies]
walkdir = "2.3.2"
@gitcrtn
gitcrtn / Cargo.toml
Created August 4, 2022 15:34
Character codes finder for Font Awesome 5
[package]
name = "find-fa"
version = "0.1.0"
edition = "2021"
[dependencies]
lazy_static = "1.4.0"
textwrap = "0.15.0"
@gitcrtn
gitcrtn / Cargo.toml
Last active August 4, 2022 00:10
Bitmap font generator
[package]
name = "font-img-gen"
version = "0.1.0"
edition = "2021"
[dependencies]
image = "0.24.2"
imageproc = "0.23.0"
rustop = "1.1.2"
rusttype = "0.9.2"
@gitcrtn
gitcrtn / Cargo.toml
Last active July 3, 2022 15:12
A cross compiler of rust-sdl2 project for GameShell and Raspberry Pi
[package]
name = "sdl2demo"
version = "0.1.0"
edition = "2021"
[dependencies.sdl2]
version = "0.35.2"
default-features = false
features = ["image"]