Skip to content

Instantly share code, notes, and snippets.

View hchasens's full-sized avatar
😷
Stay safe everyone!

Hunter Chasens hchasens

😷
Stay safe everyone!
View GitHub Profile
@hchasens
hchasens / gist:d20dff418f6908dc96e65f4e43a058f1
Last active October 8, 2024 22:12
FydeOS showing CVE-2024-25825
https://fydeos.io/help/faq/
CVE-2024-25825
Section: Is FydeOS secure?
Absolutely.
FydeOS is engineered with security as a priority, making it a reliable choice for your daily computing needs. Unlike traditional Windows PCs, FydeOS eliminates the necessity for anti-virus software or frequent malware scans, offering a seamless and worry-free experience.
However, it’s important to understand the security landscape of FydeOS, particularly in relation to its versions.
@hchasens
hchasens / buildlog.txt
Created June 21, 2024 20:19
Openedai-Speech PR#18 Build Error
#11 27.40 Alternatively, you can also rely on setuptools' discovery methods
#11 27.40 (for example by using `find_namespace_packages(...)`/`find_namespace:`
#11 27.40 instead of `find_packages(...)`/`find:`).
#11 27.40
#11 27.40 You can read more about "package discovery" on setuptools documentation page:
#11 27.40
#11 27.40 - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
#11 27.40
#11 27.40 If you don't want 'TTS.tts.utils.text.phonemizers' to be distributed and are
#11 27.40 already explicitly excluding 'TTS.tts.utils.text.phonemizers' via
@hchasens
hchasens / lenOfInt.c
Last active July 5, 2023 03:40
C one-line macro that finds the length of an int `x`. [E.g. lenOfInt(12345) will return 5]
/**
* Needs <math.h> to work as it calls the ceil() function.
* Doesn't work on neg ints without modification [see line x for example]
* Returns a short to reduce spatial complexity; modify to cast as int if needed.
*
**/
#include <stdlib.h>
#include <math.h>
#define lenOfInt(x) ((x) == 0 ? 1 : (int)(log10(abs(x)) + 1))
@hchasens
hchasens / getDigitAt.c
Last active July 2, 2023 08:40
C one-line macro that finds the digit of a int at place `i`. [E.g. getDigitAt(12345, 2) will return 3]
/**
* Indexing starts at zero from the right.
* Needs <math.h> to work as it calls the pow() function.
* Can work on negative integers, but the returned number will be negative (aside from zero since it's unsigned)
* Can be fixed by using abs() function and including <stdlib.h> [See line 12 for example]
* Attempting to use an out-of-range index will return a zero [e.g. getDigitAt(1234, 10) will return 0].
* This can be fixed with a ternary conditional and may be added in future versions of this snippet.
**/
#include <math.h>
@hchasens
hchasens / docker-compose.yml
Created January 8, 2022 00:15
Docker-compose file for Minecraft Papermc server - 1.18 compatible
version: "3.3"
services:
papermc-server:
image: hchasens/papermc:1.18.1
container_name: papermc
hostname: papermc
user: 1000:1000
ports:
- "25565:25565"
- "25575:25575"
@hchasens
hchasens / docker-compose.yml
Last active September 3, 2021 21:26
Docker Compose for code-server in "Link" mode
# Docker Compose for code-server in "Link" mode
# Link mode setups a proxy through cdr.co and doesn't require you to port forward while keeping TLS.
# Run once with `docker-compose up` and find the authentication link.
# Click on the link. Code-server will then give you a permanent link. Save that link.
# After authentication "ctl+c" out then run "docker start code-server". You're done!
# You will need to change the uid or the gid.
version: "3.3"
services:
code-server:
image: codercom/code-server