Skip to content

Instantly share code, notes, and snippets.

View ThexXTURBOXx's full-sized avatar
💻
Working

Nico Mexis ThexXTURBOXx

💻
Working
View GitHub Profile
@ThexXTURBOXx
ThexXTURBOXx / bchcode-example.js
Created March 5, 2024 14:27 — forked from bellbind/bchcode-example.js
[JavaScript] Programming Polynomial and Galois Field and Implementing Reed-Solomon code
import {PF} from "./pf.js";
import {GF} from "./gf.js";
import {GF2n} from "./gf2n.js";
import {BCHCode} from "./bchcode.js";
import {Polynomial, PolynomialUtils} from "./polynomial.js";
{
console.log("[BCHCode with GF]");
const gf = GF(PF(2), 4, [1, 1, 0, 0, 1]);
@ThexXTURBOXx
ThexXTURBOXx / cocoa-on-cygwin.md
Last active March 19, 2024 09:32
Compiling CoCoALib, CoCoA 5 and C5 Qt-GUI on Windows using CygWin with all external libraries

Instructions

  1. Remove both occurrences of staticlib in lines 7-8 of src/CoCoA-5/QCodeEdit/QCodeEdit.pro.in
  2. Make sure to have some pdflatex distribution installed (works flawlessly with MiKTeX installed on the host machine, not through CygWin)
  3. Install these CygWin packages (newest one should always work fine):
    • cddlib-devel
    • libgmp-devel
    • libgsl-devel
    • libntl-devel
    • libreadline-devel

Keybase proof

I hereby claim:

  • I am thexxturboxx on github.
  • I am hyperspeeed (https://keybase.io/hyperspeeed) on keybase.
  • I have a public key ASB-kmvlDGDDPou6EHNP3NL-7-onMINGcxRS_WPaq1rKEgo

To claim this, I am signing this object:

@ThexXTURBOXx
ThexXTURBOXx / SSLUtil.java
Created November 10, 2020 20:07
Import PKCS12 certificate chain directly in Java
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.security.KeyFactory;
import java.security.KeyStore;
import java.security.KeyStoreException;
import java.security.NoSuchAlgorithmException;
import java.security.cert.CertificateException;
import java.security.cert.CertificateFactory;
\renewcommand{\thesubsection}{\arabic{subsection}}
\titleformat{\section}{\normalfont\Large\bfseries}{Kapitel \arabic{section}: }{0em}{}
\titleformat{\subsection}{\normalfont\large\bfseries}{§\arabic{subsection} }{0em}{}
\titleformat{\subsubsection}{\normalfont\bfseries}{\arabic{subsection}.\arabic{subsubsection} }{0em}{}
\renewcommand{\cftsubsecpresnum}{§}
\newlength\mylength
\settowidth\mylength{\cftsubsecpresnum}
\settowidth\mylength{\cftsubsecaftersnum}
\addtolength\cftsubsecnumwidth{\mylength}
\renewcommand{\cftsecpresnum}{Kapitel }
@ThexXTURBOXx
ThexXTURBOXx / LeagueSandbox.md
Created March 22, 2019 15:50
LeagueSandbox User Guide

Preparing the Workspace

You have to do this only the first time, you want to start the Game!

  1. Download and install Git and make sure to tick the option "Use Git and optional Unix tools from the Command Prompt" while installing.
  2. Open your desired installation directory in your File Browser
  3. Open the Terminal in that folder (Shift+Right Click in the directory and click "Open Command Prompt")
  4. Type in the following Command: git clone https://github.com/microsoftv/CustomLeagueSandbox.git and press Enter
  5. Wait for the process to finish
  6. Do these commands in the following order and wait for them to finish before starting the next one:
    • cd CustomLeagueSandbox
  • git submodule init
package me.vinceh121.socialbladeapi.youtube;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import lombok.Getter;
import org.json.JSONArray;
import org.json.JSONException;
package de.Femtopedia.XYCraftRL;
import java.util.Random;
import net.minecraft.block.state.pattern.BlockMatcher;
import net.minecraft.init.Blocks;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import net.minecraft.world.chunk.IChunkGenerator;
import net.minecraft.world.chunk.IChunkProvider;
package de.Femtopedia.XYCraftRL;
import java.util.Random;
import net.minecraft.block.state.pattern.BlockMatcher;
import net.minecraft.init.Blocks;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import net.minecraft.world.chunk.IChunkGenerator;
import net.minecraft.world.chunk.IChunkProvider;
package de.Femtopedia.XYCraftRL;
import java.util.ArrayList;
import java.util.Arrays;
import net.minecraft.block.BlockContainer;
import net.minecraft.block.SoundType;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState;
import net.minecraft.item.ItemStack;