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
// SPDX-License-Identifier: MIT | |
// lrzsz doesn't work for VisionFive2's UART boot for some reason. | |
// Here's the hacky replacement. | |
// Usage: picocom -b 115200 -s "./visionfive2-sz" /dev/ttyUSB0 | |
// Ctrl-A Ctrl-S then "recovery.bin" | |
#include <cinttypes> | |
#include <cstdio> | |
#include <unistd.h> | |
#include <fcntl.h> |
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 | |
# | |
# https://bugs.mojang.com/browse/MC-122477 | |
# Replaces the extracted libglfw.so with this custom built one. | |
# How that can be done depends on your launcher. | |
# Minecraft version doesn't matter but GLFW version should match. | |
# | |
set -xe | |
# GLFW for LWJGL 3.3.1: https://github.com/glfw/glfw/archive/97da62a027794d9ff0f4512268cb9a73a8fb5073.zip |
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
/* SPDX-License-Identifier: MIT */ | |
package me.recursiveg.automation; | |
import net.minecraft.client.Minecraft; | |
import net.minecraft.client.multiplayer.MultiPlayerGameMode; | |
import net.minecraft.client.player.LocalPlayer; | |
import net.minecraft.core.BlockPos; | |
import net.minecraft.core.Direction; | |
import net.minecraft.core.NonNullList; |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <string.h> | |
#include <errno.h> | |
#include <sys/socket.h> | |
#include <arpa/inet.h> | |
#include <linux/udp.h> | |
int main(int argc, char *argv[]) |
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 <stdio.h> | |
#include <unistd.h> | |
#include <stdlib.h> | |
#include <fcntl.h> | |
#include <string.h> | |
#include <stropts.h> | |
#include <signal.h> | |
#include <netdb.h> | |
#include <sys/ioctl.h> | |
#include <sys/types.h> |
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.util.Random; | |
import cpw.mods.fml.common.gameevent.PlayerEvent; | |
import java.awt.image.BufferedImage; | |
import net.minecraft.client.resources.IResource; | |
import javax.imageio.ImageIO; | |
import net.minecraft.util.ResourceLocation; | |
import net.minecraftforge.client.event.TextureStitchEvent; | |
import net.minecraft.server.dedicated.DedicatedServer; | |
import net.minecraft.command.ICommandSender; | |
import net.minecraft.server.MinecraftServer; |
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 io.netty.buffer.ByteBuf; | |
import io.netty.buffer.Unpooled; | |
import net.minecraft.client.Minecraft; | |
import net.minecraft.client.resources.IResource; | |
import net.minecraft.command.CommandException; | |
import net.minecraft.command.ICommand; | |
import net.minecraft.command.ICommandSender; | |
import net.minecraft.crash.CrashReport; | |
import net.minecraft.entity.player.EntityPlayer; | |
import net.minecraft.entity.player.EntityPlayerMP; |
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
#!/usr/bin/python3 | |
from gi.repository import Gtk | |
import os | |
import zipfile | |
GLADE_STRING='''<?xml version="1.0" encoding="UTF-8"?> | |
<!-- Generated with glade 3.16.1 --> | |
<interface> | |
<requires lib="gtk+" version="3.10"/> | |
<object class="GtkListStore" id="ZipContentList"> | |
<columns> |
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 random | |
n=int(input("N:")) | |
m=int(input("M:")) | |
k1=int(input("K1:")) | |
k2=int(input("K2:")) | |
r=int(input("R:")) | |
g=[] | |
t=[] | |
def ok(x,y): |