Skip to content

Instantly share code, notes, and snippets.

View autaut03's full-sized avatar

Alex Wells autaut03

View GitHub Profile
@autaut03
autaut03 / svg-fitter.js
Created December 7, 2019 15:09
Fit SVG to it's boundaries
// Big credits to https://github.com/SVG-Edit/svgedit
// Example: https://jsfiddle.net/sznpox2m/4/
const visElems = 'a,circle,ellipse,foreignObject,g,image,line,path,polygon,polyline,rect,svg,text,tspan,use';
const visElemsArr = visElems.split(',');
const isIdentity = function (m) {
return (m.a === 1 && m.b === 0 && m.c === 0 && m.d === 1 && m.e === 0 && m.f === 0);
};
@autaut03
autaut03 / bash.sh
Last active February 1, 2020 17:19
PHP 7.4 with extensions (incl. xdebug, fpm, parallel) and ZTS
phpbrew install 7.4.0 +default +mysql +mb +debug +fpm +openssl=/usr/local/opt/[email protected] +bz2=/usr/local/opt/bzip2 +zlib=/usr/local/opt/zlib -- --enable-maintainer-zts
phpbrew ext install parallel
@autaut03
autaut03 / bash.sh
Created November 24, 2019 18:39
PHPBrew PHP 7.3 with extensions (incl. xdebug, pthreads, fpm) and ZTS
phpbrew install --mirror=https://www.php.net 7.3.12 +default +mysql +mb +debug +fpm +openssl=/usr/local/opt/openssl +bz2=/usr/local/opt/bzip2 +zlib=/usr/local/opt/zlib -- --enable-maintainer-zts
phpbrew ext install github:krakjoe/pthreads master
buildscript {
ext.kotlin_version = '1.3.21'
repositories {
maven { url = 'https://files.minecraftforge.net/maven' }
jcenter()
mavenCentral()
}
dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
> Configure project :
New Dep: net.minecraftforge:forge:1.13.2-25.0.21_mapped_snapshot_20190215-1.13.1
D:\Programming\Mine\kottle\build\tmp\expandedArchives\forge-1.13.2-25.0.21_mapped_snapshot_20190215-1.13.1-sources.jar_cae84d4fad12fb0bdf9903d1fc5b74f1\net\minecraftforge\fml\config\ConfigTracker.java:81: error: unreported exception IOException; must be caught or declared to be thrown
final Map<String, byte[]> configData = configSets.get(ModConfig.Type.SERVER).stream().collect(Collectors.toMap(ModConfig::getFileName, rethrowFunction(mc -> Files.readAllBytes(mc.getFullPath()))));
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
This file has been truncated, but you can view the full file.
[14���2019 22:35:46.352] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher starting: java version 1.8.0_162
[14���2019 22:35:46.416] [main/DEBUG] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Found launch services [fmluserdevclient,fmluserdevserver,fmlclient,fmlserver,fmldevclient,fmldevserver,minecraft,testharness]
[14���2019 22:35:46.435] [main/DEBUG] [cpw.mods.modlauncher.TransformationServicesHandler/MODLAUNCHER]: Found transformer services : [fml]
[14���2019 22:35:46.440] [main/DEBUG] [cpw.mods.modlauncher.NameMappingServiceHandler/MODLAUNCHER]: Found naming services []
[14���2019 22:35:46.455] [main/DEBUG] [cpw.mods.modlauncher.LaunchPluginHandler/MODLAUNCHER]: Found launch plugins: [eventbus,object_holder_definalize,runtime_enum_extender,accesstransformer,capability_inject_definalize,runtimedistcleaner]
[14���2019 22:35:46.456] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--gameDir, ., --launchTarget, fmluserdevclient, --fml.forgeVers
java.lang.ExceptionInInitializerError: null
at java.lang.Class.forName0(Native Method) ~[?:1.8.0_162]
at java.lang.Class.forName(Class.java:348) ~[?:1.8.0_162]
at net.minecraftforge.fml.javafmlmod.FMLModContainer.<init>(FMLModContainer.java:68) ~[forge-1.13-24.0.172-1.13-pre_mapped_snapshot_20180921-1.13.jar:24.0]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_162]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_162]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_162]
at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[?:1.8.0_162]
at net.minecraftforge.fml.javafmlmod.FMLJavaModLanguageProvider$FMLModTarget.loadMod(FMLJavaModLanguageProvider.java:73) ~[forge-1.13-24.0.172-1.13-pre_mapped_snapshot_20180921-1.13.jar:24.0]
at net.minecraftforge.fml.ModLoader.lambda$buildMods$5(ModLoader.java:162) ~[forge-1.13-24.0.172-1.13-pre_m
[22:40:11] [main/DEBUG] [FML]: Instantiating coremod class FMLCorePlugin
[22:40:11] [main/INFO] [FML]: Ignoring missing certificate for coremod FMLCorePlugin (net.minecraftforge.fml.relauncher.FMLCorePlugin), we are in deobf and it's a forge core plugin
[22:40:11] [main/DEBUG] [FML]: Added access transformer class net.minecraftforge.fml.common.asm.transformers.AccessTransformer to enqueued access transformers
[22:40:11] [main/DEBUG] [FML]: Enqueued coremod FMLCorePlugin
[22:40:11] [main/DEBUG] [FML]: Instantiating coremod class FMLForgePlugin
[22:40:11] [main/INFO] [FML]: Ignoring missing certificate for coremod FMLForgePlugin (net.minecraftforge.classloading.FMLForgePlugin), we are in deobf and it's a forge core plugin
[22:40:11] [main/DEBUG] [FML]: Enqueued coremod FMLForgePlugin
[22:40:11] [main/DEBUG] [FML]: All fundamental core mods are successfully located
[22:40:11] [main/DEBUG] [FML]: Discovering coremods
[22:40:11] [main/INFO] [FML]: Searching D:\Programming\Mine\roomery\run\.\mods for mods
"C:\Program Files\Java\jdk1.8.0_201\bin\java" -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:53993,suspend=y,server=n -javaagent:C:\Users\autau\.IntelliJIdea2017.3\system\groovyHotSwap\gragent.jar -javaagent:C:\Users\autau\.IntelliJIdea2017.3\system\captureAgent\debugger-agent.jar=C:\Users\autau\AppData\Local\Temp\capture516.props -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\jdk1.8.0_201\lib\ant-javafx.jar;C:\Program Files\Java\jdk1.8.0_201\lib\dt.jar;C:\Program Files\Java\jdk1.8.0_201\lib\javafx-mx.jar;C:\Program Files\Java\jdk1.8.0_201\lib\jconsole.jar;C:\Program Files\Java\jdk1.8.0_201\lib\packager.jar;C:\Program Files\Java\jdk1.8.0_201\lib\sa-jdi.jar;C:\Program Files\Java\jdk1.8.0_201\lib\tools.jar;D:\Programming\Mine\roomery\classes\production\roomery;C:\Users\autau\.gradle\caches\minecraft\deobfedDeps\compileDummy.jar;C:\Users\autau\.gradle\caches\minecraft\deobfedDeps\providedDummy.jar;C:\Users\autau\.gradle\caches\modules-2\files-2.1\com.google.code.findbugs\jsr305\3.0.1\f7be08ec23c21
@autaut03
autaut03 / gist:16438be32a2a0b7a76762dcd89d0f91d
Created January 27, 2019 04:07
Log of jobs dispatched by themselves in sync mode
[2019-01-27 04:00:49][9tPQjsZ6uT4Ja2dVmrWXbVOQulSr2dzL] Processing: App\Containers\Business\Games\Classic\Jobs\AnimateGameJob
[2019-01-27 04:00:49][] Processing: App\Containers\Domain\Broadcasting\Extra\BatchEvent
[2019-01-27 04:00:49][] Processed: App\Containers\Domain\Broadcasting\Extra\BatchEvent
[2019-01-27 04:00:49][9tPQjsZ6uT4Ja2dVmrWXbVOQulSr2dzL] Processed: App\Containers\Business\Games\Classic\Jobs\AnimateGameJob
[2019-01-27 04:01:03][yKjBxm50DbJfBCPsfpL29pqBtZoJlYiV] Processing: App\Containers\Business\Games\Classic\Jobs\FinishGameJob
[2019-01-27 04:01:03][] Processing: App\Containers\Business\User\Broadcasting\Events\BalanceUpdatedEvent
[2019-01-27 04:01:03][] Processed: App\Containers\Business\User\Broadcasting\Events\BalanceUpdatedEvent