Skip to content

Instantly share code, notes, and snippets.

View douira's full-sized avatar

douira douira

View GitHub Profile
@douira
douira / update-runtime-git-hook.js
Created August 12, 2022 02:28
Script to update the JDK Version for VSCode to match the one defined in the Brachyura Buildscript.java after switching branches
#!/usr/bin/env node
// copy this file into .git/hooks/post-checkout
const path = require("path")
const fs = require("fs")
//find the required java version from the build script
const javaVersion = parseInt(
fs
.readFileSync(
path.join(__dirname, "../../buildscript/src/main/java/Buildscript.java")
This file has been truncated, but you can view the full file.
"Area","MTU","Biomass - Actual Aggregated [MW]","Fossil Brown coal/Lignite - Actual Aggregated [MW]","Fossil Coal-derived gas - Actual Aggregated [MW]","Fossil Gas - Actual Aggregated [MW]","Fossil Hard coal - Actual Aggregated [MW]","Fossil Oil - Actual Aggregated [MW]","Fossil Oil shale - Actual Aggregated [MW]","Fossil Peat - Actual Aggregated [MW]","Geothermal - Actual Aggregated [MW]","Hydro Pumped Storage - Actual Aggregated [MW]","Hydro Pumped Storage - Actual Consumption [MW]","Hydro Run-of-river and poundage - Actual Aggregated [MW]","Hydro Water Reservoir - Actual Aggregated [MW]","Marine - Actual Aggregated [MW]","Nuclear - Actual Aggregated [MW]","Other - Actual Aggregated [MW]","Other renewable - Actual Aggregated [MW]","Solar - Actual Aggregated [MW]","Waste - Actual Aggregated [MW]","Wind Offshore - Actual Aggregated [MW]","Wind Onshore - Actual Aggregated [MW]"
"Germany (DE)","01.01.2021 00:00 - 01.01.2021 00:15 (CET)","4586","11594","n/e","5606","3749","404","n/e","n/e","
@douira
douira / reddit search.md
Last active August 9, 2021 22:28
Fixed version of the reddit search information document
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
Name;MC Version;In use;Bleeding edge;URL;Jar;Notes
ctm;1.17.1;TRUE;FALSE;https://www.curseforge.com/minecraft/mc-mods/ctm-fabric/files;ctm-fabric-0.5.0+1.17.jar;
fabric;1.17.1;TRUE;FALSE;https://fabricmc.net/use/;fabric-loader-0.11.6;
fabric api;1.17.1;TRUE;FALSE;https://www.curseforge.com/minecraft/mc-mods/fabric-api/files;fabric-api-0.37.0+1.17.jar;
FerriteCore;1.17.1;TRUE;FALSE;https://www.curseforge.com/minecraft/mc-mods/ferritecore-fabric/files;ferritecore-3.0.1-fabric.jar;
Hydrogen;1.17.1;TRUE;FALSE;https://github.com/CaffeineMC/hydrogen-fabric/tree/mc1.17.1-0.3.1;hydrogen-fabric-mc1.17.1-0.3.jar;apparently we can use both ferritecore and hydrogen
indium;1.17.1;TRUE;FALSE;https://github.com/comp500/Indium/actions;indium-1.0.0+mc1.17.1.jar;
Iris;1.17.1;TRUE;TRUE;https://www.curseforge.com/minecraft/mc-mods/irisshaders/files;iris-mc1.17-1.1.0+rev.e110d24.jar;built from source for sodium 0.3
itemscroller;1.17.1;TRUE;FALSE;https://www.curseforge.com/minecraft/mc-mods/item-scroller/files;itemscroller-fabric-
@douira
douira / latest.log
Created June 25, 2021 01:30
ShulkerBoxTooltip - Disabling the "Server Integration" option disables the whole mod
[03:22:13] [main/INFO]: Loading for game Minecraft 1.16.5
[03:22:13] [main/INFO]: [FabricLoader] Loading 52 mods:
- autoconfig1u@3.3.1
- cloth-basic-math@0.5.1
- cloth-config2@4.8.2
- fabric@0.36.0+1.16
- fabric-api-base@0.3.0+c88702897d
- fabric-api-lookup-api-v1@1.2.0+6aebe11a7d
- fabric-biome-api-v1@3.1.10+3661eaa17d
- fabric-blockrenderlayer-v1@1.1.5+ca58154a7d
@douira
douira / convert-waypoints.js
Last active July 19, 2021 07:22
Wynntils waypoint import converter
/*
USAGE:
Do to http://wynnwaypoints.tk/ and look for the download "For Xaero's Map".
Extract the .zip and find a text file with a name like "mw4,0,5_1.txt".
I suggest renaming it to something sane like "waypoint-data.txt".
Then run `node convert-waypoints.js waypoint-data.txt`.
This script will convert the waypoints
into a json format in a file "waypoint-data.txt_converted.json".
Take the copy the contents of this file and paste them into
the text field of this other converter: https://mitalashok.github.io/wynn-waypoints
@douira
douira / breakpoint.js
Last active November 15, 2020 18:42
Vuetify breakpoint fix plugin for SSR situation (Nuxt.js)
import Vue from "vue"
//the properties of breakpoint that we want to mirror
const defaults = {
xs: true,
xsOnly: true,
sm: false,
smOnly: true,
smAndDown: true,
smAndUp: false,
@douira
douira / broken.log
Created November 28, 2019 22:57
broken packages from grep Broken /var/log/dist-upgrade/apt.log
Broken python3:amd64 Depends on python3.7:amd64 < none | 3.7.3-2ubuntu0.2 @un uH > (>= 3.7.3-1~)
Broken python3-gi:amd64 Depends on python3:amd64 < 3.6.7-1~18.04 | 3.7.3-1 @ii umR > (< 3.8)
Broken python3-minimal:amd64 PreDepends on python3.7-minimal:amd64 < none | 3.7.3-2ubuntu0.2 @un uH > (>= 3.7.3-1~)
Broken gnome-shell:amd64 Depends on python3:amd64 < 3.6.7-1~18.04 | 3.7.3-1 @ii umR >
Broken lsb-release:amd64 Depends on python3:any:any < none @un H >
Broken python3-dbus:amd64 Depends on python3:amd64 < 3.6.7-1~18.04 | 3.7.3-1 @ii umR > (< 3.8)
Broken python3-apt:amd64 Depends on python3:amd64 < 3.6.7-1~18.04 | 3.7.3-1 @ii umR > (< 3.8)
Broken libboost1.67-dev:amd64 Conflicts on libboost1.65-dev:amd64 < 1.65.1+dfsg-0ubuntu5 -> 1.65.1+dfsg-0ubuntu11 @ii umU >
Broken python3-six:amd64 Depends on python3:any:any < none @un H >
Broken python3-pkg-resources:amd64 Depends on python3:any:any < none @un H >
****** Result for Image/Page 1 ******
23 8 1 20 4 15 25 15 21 23 1 14 20 6 18 15 13 13 5 23 8 25 4 15 14 20 25 15 21 18 21 146 18 15
13 13 5 23 8 1 201 185 25 15 21 23 15 1445 189 147 23 8 1 204 15 25 15 21 11 14 15 23 23
E E 438 2319 1921 31 18 5 6 15 18 13523
45 212022193o25 8°1841923 1)31598899
920191lo9 20920 15 21 20 2381 209T99 205 243 2012 25 25 15 21 185 11259149
25 20 1541 25 9 13 20 8 9 14 11 9 1412 15 21 20 20 8 5 20 89 14 7 19 20 8 1 201 18545 14
12 25 20 8 5 231259 134 18 9 1411 91425 15 21 415 23 14 12 9 1159 23 1 14 1414 18 15
23 14 12911 5 9 23 1 14 1415144 135 19 20 5 1615 14 20 8 57 12 1 19 19 19 20 1 16 125
@douira
douira / error.log
Created August 16, 2019 11:21
node-native-printer compile output errors on install on macOS 10.14.6
$ npm install --save node-native-printer
> node-native-printer@1.0.0-beta.5 install /Users/douira/Documents/dev/resolution-editor-next/node_modules/node-native-printer
> node install/install.js
../lib/unix/API.cpp:17:17: warning: 'NewFromUtf8' is deprecated: Use maybe version [-Wdeprecated-declarations]
printer->Set(UTF8_STRING("name"), UTF8_STRING(dests[i].name));
^
../lib/unix/API.hpp:10:36: note: expanded from macro 'UTF8_STRING'
#define UTF8_STRING(str) String::NewFromUtf8(isolate, str)