Skip to content

Instantly share code, notes, and snippets.

View Maxime66410's full-sized avatar
🖥️
Indie Game and Open Source Developer 🖥🎮

Maxime66410 Maxime66410

🖥️
Indie Game and Open Source Developer 🖥🎮
View GitHub Profile
import pip
import os
os.environ["SUNO_OFFLOAD_CPU"] = "True"
os.environ["SUNO_USE_SMALL_MODELS"] = "True"
try:
import openai
except:
os.system("pip install openai")
Log file open, 09/08/24 17:18:04
LogWindows: Failed to load 'aqProf.dll' (GetLastError=126)
LogWindows: File 'aqProf.dll' does not exist
LogProfilingDebugging: Loading WinPixEventRuntime.dll for PIX profiling (from ../../../Engine/Binaries/ThirdParty/Windows/WinPixEventRuntime/x64).
LogWindows: Failed to load 'VtuneApi.dll' (GetLastError=126)
LogWindows: File 'VtuneApi.dll' does not exist
LogWindows: Failed to load 'VtuneApi32e.dll' (GetLastError=126)
LogWindows: File 'VtuneApi32e.dll' does not exist
LogWindows: Custom abort handler registered for crash reporting.
LogCore: Display: UnrealTraceServer: Unable to launch the trace store with '"../../../Engine//Binaries/Win64/UnrealTraceServer.exe" fork' (00000002)
Log file open, 09/08/24 17:07:33
LogWindows: Failed to load 'aqProf.dll' (GetLastError=126)
LogWindows: File 'aqProf.dll' does not exist
LogProfilingDebugging: Loading WinPixEventRuntime.dll for PIX profiling (from ../../../Engine/Binaries/ThirdParty/Windows/WinPixEventRuntime/x64).
LogWindows: Failed to load 'VtuneApi.dll' (GetLastError=126)
LogWindows: File 'VtuneApi.dll' does not exist
LogWindows: Failed to load 'VtuneApi32e.dll' (GetLastError=126)
LogWindows: File 'VtuneApi32e.dll' does not exist
LogWindows: Custom abort handler registered for crash reporting.
LogCore: Display: UnrealTraceServer: Unable to launch the trace store with '"../../../Engine//Binaries/Win64/UnrealTraceServer.exe" fork' (00000002)
@Maxime66410
Maxime66410 / README.md
Created January 21, 2024 21:51 — forked from joyrexus/README.md
curl tutorial

An introduction to curl using GitHub's API.

Basics

Makes a basic GET request to the specifed URI

curl https://api.github.com/users/caspyin

Includes HTTP-Header information in the output

@Maxime66410
Maxime66410 / C++
Created October 9, 2023 11:09
Get User and Note => Average => To JSON
#include <fstream>
#include <iostream>
#include <windows.data.json.h>
#include "single_include/nlohmann/json.hpp"
using namespace std;
void save_to_json(string* userInfo, float* nbrEnter)
{
cout << "Enregistrement des informations en cours..." << endl;
@Maxime66410
Maxime66410 / Simple User Information Input C++
Created October 2, 2023 14:47
Simple User Information Input C++
#include <iostream>
#include <windows.data.json.h>
using namespace std;
int main(int argc, char* argv[])
{
// Global design of console
system("color 0a");
SetConsoleOutputCP(CP_UTF8);
<div id="canvas"></div>
<div class="controls">
<a id="auth">
<svg xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300.00006 244.18703" height="30" width="30" version="1.1" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/">
<g style="" transform="translate(-539.18 -568.86)">
<path d="m633.9 812.04c112.46 0 173.96-93.168 173.96-173.96 0-2.6463-0.0539-5.2806-0.1726-7.903 11.938-8.6302 22.314-19.4 30.498-31.66-10.955 4.8694-22.744 8.1474-35.111 9.6255 12.623-7.5693 22.314-19.543 26.886-33.817-11.813 7.0031-24.895 12.093-38.824 14.841-11.157-11.884-27.041-19.317-44.629-19.317-33.764 0-61.144 27.381-61.144 61.132 0 4.7978 0.5364 9.4646 1.5854 13.941-50.815-2.5569-95.874-26.886-126.03-63.88-5.2508 9.0354-8.2785 19.531-8.2785 30.73 0 21.212 10.794 39.938 27.208 50.893-10.031-0.30992-19.454-3.0635-27.69-7.6468-0.009 0.25652-0.009 0.50661-0.009 0.78077 0 29.61 21.075 54.332 49.051 59.934-5.1376 1.4006-10.543 2.1516-16.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
var fieldTarget = 'By Maxime66410';
var discordWebhookUrl = ''; // change this!
/** use discord webhooks to send the message */
function discordWebhook(txt) {
Logger.log('posting...');
var payload = {
//"avatar_url": "https://cdn.discordapp.com/emojis/732123527225933849.png", // remove this if u want to put your own avatar
"content": "`" + txt + "`"
@Maxime66410
Maxime66410 / MiseAJourEtRécupérationDesAdressesMACPourLesBalises.psd
Created June 3, 2022 08:59
MiseAJourEtRécupérationDesAdressesMACPourLesBalises.psd
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.