Skip to content

Instantly share code, notes, and snippets.

View exp111's full-sized avatar
:shipit:
:shipit:

Exp exp111

:shipit:
:shipit:
View GitHub Profile
@exp111
exp111 / README.md
Last active December 27, 2024 11:03
MC JSON Translation Diff

This is a small tool to diff the current english data with the (default: german) translation. It checks if:

  • files exist (meaning that no one has started translating the file yet)
  • entry codes exist (meaning that someone started translating but didnt finish. ignores entries that are duplicates of other entries)
  • (optionally via arguments) the attributes of entries are different (meaning that someone added the entry but didnt fully translate it)

How to run:

@exp111
exp111 / cf.py
Last active December 9, 2023 19:35
CustomsForge Link Fetcher
import requests
device_key = "<ips4_device_key>"
member_id = "<ips4_member_id>"
login_key = "<ips4_login_key>"
searchString = input("Enter search:")
encoded = searchString.encode("utf8")
search = str(encoded)[2:-1].replace("\\x", "%")
length = 500
@exp111
exp111 / stuff.c
Created October 13, 2023 13:30
No Way Hose
// cpp.sh
#include <iostream>
#include <string>
#include <stdio.h>
size_t serialHash(const std::string& input)
{
if ( input.empty() || input.size() != 19 )
{
return 0;
@exp111
exp111 / script.py
Created August 24, 2023 09:14
ZenVis attach textures to materials
import bpy
# Get the active object
obj = bpy.context.active_object
# Switch to the Shader Editor workspace
#bpy.context.area.type = 'NODE_EDITOR'
#bpy.context.space_data.tree_type = 'ShaderNodeTree'
# Loop through each material slot
@exp111
exp111 / index.html
Last active June 30, 2023 14:14
Wishlist Thingy
<html>
<head>
<title>Wishlist</title>
</head>
<body>
<div>
<!--<input id="steamid" type="text" placeholder="steam64 id" />
<button onclick="getWishlist(getElementById('steamid').value)">GET</button>
@exp111
exp111 / IW4x.md
Last active May 18, 2023 13:56
IW4x + Plutonium on Deck

IW4x

MW2

Downloaded game through steam Downloaded dlcs through xlabs discord (https://xlabs.dev/; there has been a new dlc pack since ~2022/23, so old ddl links are outdated). Alternatively just use the torrents if you have a vpn or a isp that doesn't send you nice letters.

IW4x

Download iw4x.dll from https://github.com/XLabsProject/iw4x-client/releases/latest
Put it next to the iw4mp.exe in the root mw2 folder
Download files from https://github.com/XLabsProject/iw4x-rawfiles/releases/latest
Put all files next to the iw4x.dll

@exp111
exp111 / creamApiInstaller.sh
Created May 16, 2023 15:40
Steam Deck Scripts
#!/bin/bash
touch /tmp/test
while getopts 'i:' OPTION; do
case "$OPTION" in
i)
APPID="$OPTARG"
echo $APPID >> /tmp/test
;;
?)
echo "missing appid" >> /tmp/test
@exp111
exp111 / README.md
Last active February 12, 2022 12:09
Minecraft Config Setter

What does it do

Sets the options to my preference (and you can't do anything about that) Changes:

Audio

  • Master Audio to 20%

Video

  • Brightness to max
  • GUI Size to Large (3)
  • Mipmap Levels to 0
  • Disables VSync
import requests,sys,hashlib
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("url", help="the base url")
parser.add_argument('id', type=int, help='the user id', default=1)
args = parser.parse_args()
id = str(args.id)
url = args.url
if args.url[-1] != "/": # needs trailing /
@exp111
exp111 / imgdiff.py
Created June 18, 2020 18:53
Some stuff I tried to do with color blending and such. The only thing that was actually useful was imgdiff.py
import sys
from PIL import Image
# reads two images and only copies the changed pixels in a new transparent image
bolted = Image.open('bolted.png')
closed = Image.open('closed.png')
boltPix = bolted.load()
closePix = closed.load()
out = Image.new('RGBA', bolted.size, color=(0,0,0,0))
outPix = out.load()