Skip to content

Instantly share code, notes, and snippets.

@chemputer
chemputer / README.md
Created May 25, 2023 15:59
A Powershell and Python3 script that creates PNG files for all of the maps in the game, and creates a ZIP file full of them.

Make PNG files of all the maps in the game as well as a ZIP file of all the maps

Setup Guide

Make sure that Python 3 is installed (I used 3.11, ymmv) and make sure to install Pillow via python3 -m pip install pillow Change the $root variable in the powershell file to the folder immediately above where your installation of World of Warships is. Make sure that wowsunpack.exe is in the World of Warships folder. You may already have it, but if not, it is available here. Here is a page about it and the GUI tool created for it: https://forum.worldofwarships.eu/topic/113847-all-wows-unpack-tool-unpack-game-client-resources/

@chemputer
chemputer / README.md
Last active February 19, 2023 18:06
WTRTI Indicator Scripts

WTRTI User Made Custom Indicator LUA Scripts

WTRTI (War Thunder Real Time Information) is a helper program created by GitHub User MeSoftHorny, available on the project's GitHub page here. With it, you can add custom indicators in addition to the built in ones, either by adding existing but not implemented State variables, or by using a LUA script to do math on any number of State indicators to return a customized indicator.

For example, I regularly use SEP (Specific Excess Power, essentially how many m/s of power the engine is producing that can be used to either increase the speed of the plane or climb with.) and the Climb rate (labeled as the State Vy), to help determine an optimal climb rate, so that I can get to speed then climb at the max speed possible without losing speed by keeping Vy below SEP. To assist me in this, I created a custom indicator I called Excess Power, shortened to XSPWR using a lua script included in this.

@chemputer
chemputer / Steam_Summer_Sale_2022_Cheat.js
Last active July 5, 2022 21:41
Steam Store - Cheat Summar Sale 2022 Badge (originally by Revadike)
/* eslint-env browser */
/* global g_sessionID jQuery */
/* HOW TO USE:
1. Open Console tab of your browser's DevTools.
Chrome: CTRL+SHIFT+J
Firefox: CTRL+SHIFT+K
2. Copy-paste this entire script.
3. Press ENTER and wait.
It should claim all 10 badges and then the final reward.
@chemputer
chemputer / pveamall.sh
Last active November 2, 2021 21:35
Bulk Proxmox Container Template Download "pveam download all"
#!/bin/bash
#
# Title: pveam download all - pveamall.sh
# Description: Automates downloading all of the available container images via the Proxmox tool pveam, with options for selectivity for certain categories.
# Author: Chemputer
# Date: Nov 2nd, 2021
#
# simply put the name of the storage, like local, or whatever you named it.
@chemputer
chemputer / install_ffmpeg_libfdkaac.sh
Last active January 6, 2024 04:35 — forked from chrisvaughn/install_ffmpeg_libfdkaac.sh
Install FFmpeg with libfdk_aac support (For Ubuntu)
# Criando um script .sh para executar todos os comandos:
#root@servidor:~# vi script.sh
#root@servidor:~# chmod +x script.sh
#root@servidor:~# ./script.sh
apt-get update
apt-get -y install autoconf automake build-essential git-core libass-dev libgpac-dev libsdl1.2-dev libtheora-dev libtool libvdpau-dev libvorbis-dev libx11-dev libxext-dev libxfixes-dev pkg-config texi2html zlib1g-dev libmp3lame-dev nasm gcc yasm && true
mkdir ~/ffmpeg_sources
cd ~/ffmpeg_sources
git clone --depth 1 git://github.com/mstorsjo/fdk-aac.git
@chemputer
chemputer / PirateSchedule - Tiers.csv
Last active May 29, 2021 23:53
World of Warships Pirate Schedule Determine Tiers Script
Team Tiers
Alpha VIII, IX, X
Bravo VIII, IX, X
@chemputer
chemputer / README.md
Created May 17, 2021 20:29
SFIA Subtitles Condensed up to Episode 290a: Laser Pistols & Lightsabers

What is this?

It's all the subtitles available in english from the "SFIA in Chronological Order" playlist for the channel Science and Futurism with Isaac Arthur.

Why is this?

Well, I wanted to know what all the First Rules of Warfare were. So, the only reasonable thing was to use youtube-dl to download all the subtitle files, combine them together, strip most of the WebVTT formatting data, and then comb through it for "The First Rule of Warfare". It worked. You can see it here.

What's with the weird stuff, like by lowering the Sun’s mass, well, I'm not 100% sure, but I believe it's a byproduct of them being

WebVTT files originally, and so things like ' would be encoded differently. Sadly, just replacing it doesn't work, as there are other things,

@chemputer
chemputer / autoRenameDorfsFromCSV.lua
Created April 29, 2021 20:44
DFHack Set Dorf Nicknames from List in a file
local open = io.open
-- see if the file exists
function file_exists(file)
local f = io.open(file, "rb")
if f then f:close() end
return f ~= nil
end
@chemputer
chemputer / Guide to All Lines.md
Last active January 3, 2024 01:18
World of Warships - A General Overview/Guide to All Tech Tree Lines

A General Overview/Guide To All Tech Tree Lines

Credit to YURRA, based on the work shared on Pastebin, original available here. This has been heavily edited, but the original source, the bulk of it, and the idea came from that Pastebin article.

Carriers - CV

IJN
@chemputer
chemputer / Readme.md
Created November 6, 2020 21:23
Convert Binary To ASCII For Teamspeak Puzzle

Solution to the Teamspeak Puzzle Programatically

Teamspeak published a challenge on Twitter here and it included this image.