Skip to content

Instantly share code, notes, and snippets.

View wyatt-herkamp's full-sized avatar
👋
Random Rust Projects

Wyatt Herkamp wyatt-herkamp

👋
Random Rust Projects
View GitHub Profile
const DEFAULT_CLANG_VERSION: &str = "17";
/// Work Around for x86_64 Android not being able to find symbol __extenddftf2
/// [Source](https://github.com/smartvaults/smartvaults/blob/master/bindings/smartvaults-sdk-ffi/build.rs)
/// [More Info](https://github.com/tauri-apps/tauri/issues/7413)
fn setup_x86_64_android_workaround() -> anyhow::Result<()> {
let target_os =
env::var("CARGO_CFG_TARGET_OS").with_context(|| "CARGO_CFG_TARGET_OS not set")?;
let target_arch =
env::var("CARGO_CFG_TARGET_ARCH").with_context(|| "CARGO_CFG_TARGET_ARCH not set")?;
on:
push:
branches:
- main
workflow_dispatch:
name: Deploy Documentation
permissions:
contents: write
pages: write
#[doc(hidden)]
#[cfg(any(target_arch = "wasm32", target_arch = "wasm64"))]
pub mod abi_module {
use std::boxed::Box;
use type_it_module::ffi;
use type_it_module::language_module::LanguageModule;
use super::TestLanguageModule;
type ModuleConfig = <TestLanguageModule as LanguageModule>::Config;
[2020-03-06 17:14:04] production.NOTICE: A query exception was encountered while trying to load settings from the database: SQLSTATE[HY000] [1045] Access denied for user 'pterodactyl'@'localhost' (using password: NO) (SQL: select * from `settings`)
[2020-03-06 17:14:38] production.NOTICE: A query exception was encountered while trying to load settings from the database: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'panel.settings' doesn't exist (SQL: select * from `settings`)
[2020-03-06 17:16:20] production.NOTICE: A query exception was encountered while trying to load settings from the database: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'panel.settings' doesn't exist (SQL: select * from `settings`)
[2020-03-06 17:19:44] production.ERROR: ErrorException: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:
error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed in /var/www/pterodactyl/vendor/swiftmailer/swiftm
---
configuration:
instanceName: "strongbox"
version: "1.0-SNAPSHOT"
revision: "1.0-SNAPSHOT-dev"
baseUrl: "http://localhost:48080/"
port: 48080
sessionConfiguration:
timeoutSeconds: 3600
remoteRepositoriesConfiguration:
@wyatt-herkamp
wyatt-herkamp / TheCodeOfAMadMan.java
Last active March 15, 2020 21:26
This is my code I came up with the other day. Please dont ask why?
package me.kingtux.other;
import java.io.File;
import java.io.IOException;
import java.net.URISyntaxException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.jar.JarEntry;
import java.util.jar.JarFile;
@wyatt-herkamp
wyatt-herkamp / MimeTypes.java
Created December 17, 2018 15:48
An Enum of some common MimeTypes feel free to use.
public enum MimeTypes {
TEXT("text/plain"),
HTML("text/html"),
CSS("text/css"),
JPEG("image/jpeg"),
PNG("image/png"),
GIF("image/gif"),
BMP("image/bmp"),
WEBP("image/webp"),
public class WaterWorldGen extends ChunkGenerator {
private NoiseGenerator generator;
private NoiseGenerator getGenerator(World world) {
if (generator == null) {
generator = new SimplexNoiseGenerator(world);
}
return generator;
}
<build>
<sourceDirectory>src/main/java</sourceDirectory>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<build>
<sourceDirectory>src/main/java</sourceDirectory>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<executions>
<!-- Replacing default-compile as it is treated specially by maven -->