Skip to content

Instantly share code, notes, and snippets.

View downthecrop's full-sized avatar

downthecrop downthecrop

View GitHub Profile
@downthecrop
downthecrop / dokuwikiscape.css
Created November 30, 2021 22:07
CSS for dokuwiki
.wrapper {
background-image: url(https://i.imgur.com/JO6Mhe0.png), url(https://i.imgur.com/vXxk5tT.png), url(https://i.imgur.com/L64cZvU.png);
background-position: top, bottom, center;
background-repeat: no-repeat, no-repeat, repeat-y;
width:754px;
margin:auto;
}
#dokuwiki__content{
margin: auto;
@downthecrop
downthecrop / Cropcraft.py
Created July 27, 2021 13:35
infinite world gen but still a mess
import eel,math,pyglet,time,threading
from pyglet.gl import *
from pyglet.window import *
from pyglet import image
from random import randrange
FACES=[(0,1,0),(0,-1,0),(-1,0,0),(1,0,0),(0,0,1),(0,0,-1),(0,0,0)]
TEX=0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1
CURRENTBLOCK = "dirt"
TEXTURES = {}
@downthecrop
downthecrop / Cropcraft.py
Last active July 23, 2021 07:37
Cropcraft with real neighbor checking!
import eel,math,pyglet,time
from pyglet.gl import *
from pyglet.window import *
from pyglet import image
FACES=[(0,1,0),(0,-1,0),(-1,0,0),(1,0,0),(0,0,1),(0,0,-1),(0,0,0)]
TEX=0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1
@eel.expose
def say_hello_py(self):
@downthecrop
downthecrop / Cropcraft.py
Created July 22, 2021 17:51
Cropcraft with GUI
import eel,math,threading,pyglet
from pyglet.gl import *
from pyglet.window import *
from pyglet import image
hud = image.load('hud.png')
active = image.load('active.png')
offset = 0
@eel.expose
@downthecrop
downthecrop / main.html
Created July 20, 2021 15:21
for use with Cropcraft Eel
<!DOCTYPE HTML>
<html>
<head>
<script type="text/javascript" src="/eel.js"></script>
<script>
window.addEventListener("keydown", function (e) {
if (e.key == "Escape") {
window.close()
}
import eel
import math
import threading
import pyglet
from pyglet.gl import *
from pyglet.window import *
from pyglet import image
#pic = image.load('picture.png')
#pic2 = image.load('dirt.png')
{
"configs": [],
"familiarManager": {
"petDetails": []
},
"varps": [
{
"bitArray": [
{
"offset": "0",
"Vampire Slayer", 30
"Witch's Potion", 31
"The Knight's Sword", 22
"Sheep Shearer", 28
"Romeo & Juliet", 26
"Imp Catcher", 21,
"Ernest the Chicken", 19
"Doric's Quest", 17
"Restless Ghost", 25
"Shield of Arrav", 29
@downthecrop
downthecrop / gist:84ec973a17e3af313375e2664e8f26c5
Last active December 4, 2022 15:18
H310 / Intel 300 Chipset Windows 7 Install USB 3.1/3.0 XHCI Setup and Install
1. Install Windows 10
2. Download and mount a Windows 7 ISO
3. Run the installer of Windows 7 from within Windows 10
4. Your Computer will boot to Windows 7
5. Use a PS/2 Keyboard to install the following drivers
It took me about a week to continually modify the USB driver and successfully solve the USB GEN2 driver for the H310/B360/H370/Q370/Z390/HM370 and othet 14nm 300 series chips Now is the time to summarize the method. We can use IDA7.0 and HxD to modify the drivers. The ID replacement method can use HxD to modify the 15B5 and 15C1 of 5.0.4.43,but the disadvantage is that the supported USB3.1 GEN2 can only be one of A36D or other ID, and USB3.1. GEN2 have 9DED, 31A8,and unknown. If you use IDA7.0, there are dozens of methods to modify, but in principle there are only three methods. Both 5.0.4.43 and 17.2.70.3 can be used to modify and successfully drive Intel's 8 Series to 300 Series, Cannon Lake Series, Whiskey Lake Series. It was successfully installed and operated well on the Intel 10nm I3-8121U pla
@downthecrop
downthecrop / Skills.txt
Created March 22, 2021 22:44
2009 Single Player skills
0 Attack
1 Def
2 Str
3 HP
4 Ranged
5 Pray
6 Mage
7 Cooking
8 WC
9 Fletch