Skip to content

Instantly share code, notes, and snippets.

View peterix's full-sized avatar
⛱️
Take out the parasols! Take out the plastic chairs!

Petr Mrázek peterix

⛱️
Take out the parasols! Take out the plastic chairs!
View GitHub Profile
@peterix
peterix / forge.json
Last active March 26, 2020 16:04
Forge experiment
{
"formatVersion": 1,
"mainClass": "io.github.zekerzhayard.forgewrapper.Main",
"name": "Forge",
"requires": [{
"equals": "1.15.2",
"uid": "net.minecraft"
}],
"type": "release",
"uid": "net.minecraftforge",
@peterix
peterix / org.lwjgl.json
Created July 14, 2019 02:46
Slightly fixed LWJGL version that can handle more xrandr weirdness
{
"formatVersion": 1,
"libraries": [
{
"downloads": {
"classifiers": {
"natives-linux": {
"sha1": "7ff832a6eb9ab6a767f1ade2b548092d0fa64795",
"size": 10362,
"url": "https://libraries.minecraft.net/net/java/jinput/jinput-platform/2.0.5/jinput-platform-2.0.5-natives-linux.jar"
@peterix
peterix / deps.txt
Created June 21, 2018 21:01
minecraft-launcher 2.1.1139-1 dependencies
/  opt  minecraft-launc…    $  readelf -d launcher
Tag Type Name/Value
0x0000000000000001 (NEEDED) Shared library: [libcef.so]
0x0000000000000001 (NEEDED) Shared library: [libX11.so.6]
0x0000000000000001 (NEEDED) Shared library: [libpthread.so.0]
0x0000000000000001 (NEEDED) Shared library: [libstdc++.so.6]
0x0000000000000001 (NEEDED) Shared library: [libm.so.6]
0x0000000000000001 (NEEDED) Shared library: [libgcc_s.so.1]
0x0000000000000001 (NEEDED) Shared library: [libc.so.6]
0x0000000000000001 (NEEDED) Shared library: [ld-linux-x86-64.so.2]
@peterix
peterix / .Xmodmap
Created June 6, 2018 08:58
Mapping caps-lock to terminal
clear lock
keycode 66 = XF86Terminal
@peterix
peterix / list.txt
Created April 11, 2018 19:42
portalgun zip files
~  $  find . | grep -i portal | grep zip
./minecraft/FTB/Ultimate/minecraft/mods/PortalGun.zip
./minecraft/instances/TrekCraft C2.0/minecraft/mods/PortalGun.zip
./minecraft/instances/WhoCraft V2.0/minecraft/mods/PortalGun.zip
@peterix
peterix / MinecraftResources.xml
Last active April 6, 2018 20:23
Minecraft legacy resources index!
<?xml version="1.0" encoding="UTF-8"?>
<ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<Name>MinecraftResources</Name>
<Prefix />
<Marker />
<MaxKeys>1000</MaxKeys>
<IsTruncated>false</IsTruncated>
<Contents>
<Key>lang/</Key>
<LastModified>2013-01-10T10:39:06.000Z</LastModified>
@peterix
peterix / files.txt
Created April 6, 2018 14:32
QML packaging example -- viber
/opt/viber/
/opt/viber/qtwebengine_resources_100p.pak
/opt/viber/translations
/opt/viber/translations/qt_ko.qm
/opt/viber/translations/assistant_en.qm
/opt/viber/translations/qtconnectivity_en.qm
/opt/viber/translations/qtbase_ko.qm
/opt/viber/translations/qtquick1_hu.qm
/opt/viber/translations/qtscript_he.qm
/opt/viber/translations/qtdeclarative_lv.qm
@peterix
peterix / run.md
Last active November 16, 2022 22:19
Validate curse URLs

WHAT?

Validate Curse download URLs using commonly available tools and cursemeta.

HOW?

wget https://cursemeta.dries007.net/raw_mods.json
json_reformat < raw_mods.json  > raw_mods_formatted.json
cat raw_mods_formatted.json | grep DownloadURL | sed -e 's/^                    "DownloadURL": "//' -e 's/",$//' > urls.list
./validate_urls.sh < urls.list | grep -v OK
{
"+tweakers": [
"com.mumfrey.liteloader.launch.LiteLoaderTweaker"
],
"libraries": [
{
"name": "net.minecraft:launchwrapper:1.11"
},
{
"name": "org.ow2.asm:asm-all:5.0.3",
@peterix
peterix / 1.7.10.json
Created April 14, 2017 23:13
Maybe a 1.7.10 Minecraft JSON...
{
"meta": {
"formatVersion": 1,
"name": "Minecraft",
"releaseTime": "2014-05-14T17:29:23+00:00",
"requires": {
"org.lwjgl": "2.*"
},
"type": "release",
"uid": "net.minecraft",