Skip to content

Instantly share code, notes, and snippets.

View wasertech's full-sized avatar
🚀
Studying Information

Danny Waser wasertech

🚀
Studying Information
View GitHub Profile
@wasertech
wasertech / .config
Last active March 23, 2023 17:49
Crosstool-NG config file for GCC 10.3 ARM64
#
# Automatically generated file; DO NOT EDIT.
# crosstool-NG 1.25.0 Configuration
#
# This is really dangerous! It allows me to run ct-ng as root from within manjaro-arm-tools.
# Do not do this unless you know exactly what you are doing!!!
# You have been warned. I'm in no way, shape or form, responsible for any damage it may cause if used in ANY other context.
CT_EXPERIMENTAL=y
CT_ALLOW_BUILD_AS_ROOT=y
@wasertech
wasertech / zfunctions.exctract.zsh
Created July 20, 2022 15:01
Zsh function to extract common file formats
### Function extract for common file formats ###
SAVEIFS=$IFS
IFS=$(echo -en "\n\b")
function extract {
if [ -z "$1" ]; then
# display usage if no parameters given
echo "Usage: extract <path/file_name>.<zip|rar|bz2|gz|tar|tbz2|tgz|Z|7z|xz|ex|tar.bz2|tar.gz|tar.xz>"
echo " extract <path/file_name_1.ext> [path/file_name_2.ext] [path/file_name_3.ext]"
else
@wasertech
wasertech / compute_batch_sizes.py
Last active June 1, 2022 18:15
Find all possible batch sizes I could use for STT if I have this amount of samples.
#!/usr/bin/env python
"""
Compute batch sizes by samples.
Find all possible batch sizes I could use for STT if I have this amount of samples.
Copyright (c) 2022, Danny Waser. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights