Place both shell scripts in the root of your dev environmen and change the package name in package.sh
.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.net.URI; | |
import java.net.URISyntaxException; | |
import java.nio.ByteBuffer; | |
import org.java_websocket.client.WebSocketClient; | |
import org.java_websocket.drafts.Draft; | |
import org.java_websocket.drafts.Draft_6455; | |
import org.java_websocket.handshake.ServerHandshake; | |
public class Client extends WebSocketClient { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <linux/input.h> | |
#include <sys/ioctl.h> | |
#include <fcntl.h> | |
#include <unistd.h> | |
#include <time.h> | |
#include <errno.h> | |
#define LENGTH 250 | |
int msleep(long msec) { |
This is a simple command-line program that will remove or add the additional header information MCPI/Old MCPE uses in its level.dat
files, this header information prevents many commonly used NBT ediors/libraries from reading MCPI/Old MCPE level.dat
files.
The header consists of 2 32-bit little-endian integers. The first integer is the "storage version", this is always equal to 3
. The second integer is the remaining bytes in the file, this is used to detect file corruption.
pi-nbt add-header in.dat out.dat
pi-nbt remove-header in.dat out.dat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.thebrokenrail.minecraftbakery.texture.builtin.atlas; | |
import com.thebrokenrail.minecraftbakery.texture.Texture; | |
public class TerrainAtlas extends Texture { | |
public TerrainAtlas() { | |
super("terrain", 256, 256); | |
} | |
private void block(String name, int x, int y) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM arm32v7/debian:bullseye | |
RUN apt-get update && apt-get install -y mesa-utils | |
ENTRYPOINT glxgears |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ChatGPTAPIBrowser, ChatResponse, SendMessageOptions } from 'chatgpt'; | |
import { Client, GatewayIntentBits, Events, PermissionsBitField, WebhookCreateMessageOptions, MessageType, MessageFlags, TextChannel, ThreadChannel, WebhookEditMessageOptions, ForumChannel, Webhook } from 'discord.js'; | |
import { RateLimiter } from 'limiter'; | |
// Login To ChatGPT | |
const api = new ChatGPTAPIBrowser({ | |
email: '<Your Email>', | |
password: '<Your Password>', | |
isGoogleLogin: true | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
PATH="$(pwd)/tinycc/temp:$(pwd)/tinycc/build/bin:$(pwd)/google-ndk:$(pwd)/google-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin:${PATH}" | |
if [[ -d tinycc ]]; then | |
rm -rf tinycc | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/file-utils.c b/src/file-utils.c | |
index 2095a8d2..d283b091 100644 | |
--- a/src/file-utils.c | |
+++ b/src/file-utils.c | |
@@ -48,7 +48,7 @@ | |
/* path */ | |
-static const char *try_folder[] = { "cache", "~", "tmp", NULL }; | |
+static const char *try_folder[] = { "var-tmp", "cache", "~", "tmp", NULL }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Change this when changing the postmarketOS version! | |
FROM arm64v8/alpine:3.18 | |
# The postmarketOS Version | |
ENV PMOS_VERSION="v23.06" | |
# Use postmarketOS | |
RUN \ | |
echo "https://mirror.postmarketos.org/postmarketos/${PMOS_VERSION}" > temp && \ | |
cat /etc/apk/repositories >> temp && \ |
OlderNewer