Skip to content

Instantly share code, notes, and snippets.

View Schievel1's full-sized avatar

Pascal J Schievel1

  • Germany
  • 07:43 (UTC +02:00)
View GitHub Profile
@Schievel1
Schievel1 / neovide-0.12.2.ebuild
Last active April 3, 2024 09:34
neovide-0.12.2.ebuild
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# Autogenerated by pycargoebuild 0.13.2
EAPI=8
CRATES="
ab_glyph@0.2.23
ab_glyph_rasterizer@0.1.8
@Schievel1
Schievel1 / convert_music.sh
Created November 22, 2023 21:26
sync music folders and convert while at it...
#!/usr/bin/env bash
set -e # exit script if control-c is used
main() {
USAGE="Usage: $0 source_dir destination_dir ffmpegcommand"
if [ $# != 3 ] ; then
echo $USAGE
exit 1;
fi
# Convert relative path to absolute. Also remove trailing slash
@Schievel1
Schievel1 / cross_compiling_rust.txt
Created October 10, 2023 08:48
Cross compliling Rust with SDK toolchain an GCC
* Cross compiling Rust
Rust mainly is statically linked by default. But when compiled against Glibc (for syscalls etc.) it is dynamically linked against that.
There are several ways to tackle this problem
NOTE: The target-triples (the 'arm-unknown-linux-musleabihf' and such) in the following commands are just examples. The targets need to be adapted accordingly.
** Static linking using Musl
While it is not impossible to statically link against Glibc it is discouraged. (Mostly because Glibc itself makes great use of dlopen and other dynamic libraries.)
Musl is a Glibc alternative that can be statically linked and is often used for that in cross compiling scenarios.
@Schievel1
Schievel1 / makefile
Last active January 2, 2023 11:54 — forked from daoshuti/makefile
Makefile for building keil projects
# Makefile for building Keil projects out of WSL
# Pascal Jaeger <pascal.jaeger@schaltbau-bode.com> 2023.01.02
KEIL ?= "/mnt/c/Keil_v5/UV4/UV4.exe"
BCONSOLE ?= "/mnt/c/Program\ Files\ \(x86\)/Cortex\ Bootloader/BConsole/BConsole.exe"
TMP=keil.out
NULL=/dev/null
.PHONY: build all clean flash help
# Keils exit code will be 1 when there were warnungs, which would trigger make to exit