#dev-general

1 messages · Page 455 of 1

jovial warren
#

block placing is basically done now, will move that over when I PR it

#

should probably make a contributor’s guide

lunar cypress
#

yes

unkempt tangle
#

anyone can port this to firefox ;c

static zealot
#

huh how would I check if server is paper with the paper api

#

oh found someone doing it by checking if a class exists

jovial warren
#

Paper Lib has a way iirc

static zealot
#

yeah but already using Paper API. I don't want to shade in paper lib as well

#

already got like 2.5 MB xD

#

and most is bcz of libraries

oblique heath
#

wouldn't paper mention it's paper when you get it's version

#

or would that only give you x.x.x

static zealot
#

I've got no idea. I found a couple posts on their forums and all where mentioning usage of Class.forName

#

so that's what I ended up using

jovial warren
#

Just use Class.forName("com.destroystokyo.paper.PaperConfig")

#

Because that class will always exist on Paper

static zealot
#

that's exactly what I'm using

#

with a try and catch

jovial warren
#

Exactly what Paper Lib does then

static zealot
#

ah alr then

#

didn't even bother

#

to check their code

#

bcz who's that smart to think about that

jovial warren
#

Also you know Paper Lib is tiny right?

static zealot
#

may be but if all I needed is that check why shade it?

jovial warren
#

Also it's shaded into Paper

static zealot
#

oh that I did not know

jovial warren
#

Well, it recommends you use compileOnly so I'm gonna guess it is

#

Actually that's an error

#

The Maven example uses scope compile

old wyvern
#

@quiet depot Reposilite wants me to create a java keystore I think
The container wasnt working after I enabled ssl in its config, so I checked the logs and found this

10:48:10.711 INFO | --- Loading domain configurations
10:48:10.730 INFO | Binding server at 0.0.0.0::80
10:48:10.759 INFO | Enabling SSL connector at ::443
10:48:10.873 ERROR | Failed to start Javalin
10:48:10.873 ERROR | Exception occurred during the task execution: java.lang.RuntimeException: java.lang.IllegalStateException: /app/data/keystore.jks is not a valid keystore
        at io.javalin.Javalin.start(Javalin.java:191)
        at io.javalin.Javalin.start(Javalin.java:153)
        at io.javalin.Javalin.start(Javalin.java:140)

Should I use the earlier cloudflare key to generate this?

quiet depot
#

@old wyvern you shouldn’t even have reposilite’s ssl configured

#

run it on http

#

only nginx needs ssl

#

This is the same for 99% of apps that you reverse proxy btw

#

I’ve never setup a reverse proxy on an app, where it’s necessary or good practice to also install the cert on the app

old wyvern
#

ahh

#

alrighty

jovial warren
steel heart
#

Does Krypton have a discord?

jovial warren
#

you bet

steel heart
#

Invite?

quiet depot
#

@jovial warren what’s javalin?

steel heart
#

iirc a http lib

jovial warren
#

a web framework written in Kotlin, designed for use in Java and Kotlin iirc

quiet depot
#

so what's wrong with using it in java then?

jovial warren
#

there are so many better ones

quiet depot
#

like?

jovial warren
#

Apache HttpClient, Retrofit, OkHttp, Ktor, Spring

quiet depot
#

I use nanohttpd for docdex but I feel like that might've not been the best choice

jovial warren
#

use Retrofit

quiet depot
#

does it fit my style of coding?

obtuse gale
#

Piggy :D

quiet depot
#

i.e. will it try to take control of everything like spring

#

or can I code it the way I want it to be

jovial warren
#

lemme show you what you can do

quiet depot
#

hi fefo

obtuse gale
#

Can you do me a quick favor? 😅 don't wanna mock cube again

quiet depot
#

maybe

obtuse gale
#

👀

#

Reset my nick?

quiet depot
#

not a fan of the pronouns anymore?

obtuse gale
#

Changed the name on the platform

#

owo

#

thanks<3

jovial warren
#

you basically create an interface with annotations for methods and parameters and then Retrofit will be able to reflectively instantiate and call that and return results for you

oblique heath
#

ppst piggy is my time up

half harness
#

lol

quiet depot
#

for what ivan

#

oh lol

oblique heath
#

xd

quiet depot
#

=unmute @oblique heath

compact perchBOT
#
Successful!

You've unmuted Ivan8or#7412!

oblique heath
#

sweet relief

quiet depot
#

yeah i probably should've set a reminder

#

my bad

jovial warren
#

e.g. ```
public interface GitHubService {

@GET(“/path/{something}”)
Call<Something> getSomething(String something)

}

obtuse gale
#

lol what

oblique heath
#

all good lol

quiet depot
#

oh so you also use it to get http stuff

jovial warren
#

then you call that and you can get a constructed call instance, with the type of the response you want

#

it supports call adapter factories, so you can adapt it to support say RxJava, and even converter factories, so you can have it support say Gson

#

and it abstracts away all the query building and call logic for you

#

uses OkHttp on the backend as well

#

and better yet, if you use Kotlin, it has native support for coroutines

#

it has everything you could want

#

made by the same people who made OkHttp

lunar cypress
jovial warren
#

didn’t mean it’s bad, just said there are better alternatives

lunar cypress
#

and what's better about them

#

Also isn't okhttp just a client

jovial warren
#

yes

lunar cypress
#

???

old wyvern
#

@quiet depot I think I've ended up with a redirection loop now 😂

jovial warren
#

oh isn’t Javalin a server?

lunar cypress
#

then this doesn't even make sense

#

Javalin is server side

quiet depot
#

paste ur thing yugi

#

ur vhost

jovial warren
#

Ktor is very idiomatic, Spring is rapid

quiet depot
#

actual paste

#

not img

old wyvern
#

one sec

lunar cypress
old wyvern
#

lemme actually try not forcing ssl from nginx, I already have that enabled on cloudflare

jovial warren
#

idiomatic is not meaningless

#

and rapid definitely isn’t

old wyvern
#

The irony

lunar cypress
#

ok then, what's not idiomatic about javalin

#

also why the fuck would I use spring when I can have a 10 x simpler API for my simple server

jovial warren
#

maybe I should just stop hating on things I don’t have any experience with

lunar cypress
#

yeah, maybe you should

jovial warren
#

actually looks about as idiomatic as Ktor

#

but it works in Java, which is what it does better than Ktor

old wyvern
#

ok that did not work

ocean quartz
#

Well other servers are complete and work well, Krypton is still in development and very very alpha, once you get it working and it works well people will praise it

quiet depot
#

yugi iirc if you're using ssl on nginx, you disable cloudflare ssl

#

if you're using ssl on cloudflare, you disable nginx ssl

old wyvern
#

Wait really?

#

uh

quiet depot
#

personally I've always had issues with cloudflare ssl so I just use letsencrypt

old wyvern
#

i was following a guide from digitalocean

quiet depot
#

oh idk then

#

I can give you what works for me

ocean quartz
#

I use cloudflare ssl set it on nginx and keep both on without issues

quiet depot
#

or you can keep tinkering

#

up to you

old wyvern
quiet depot
#

right

#

do you have certbot installed?

old wyvern
quiet depot
#

apt install -y certbot

old wyvern
#

Im on cent

quiet depot
#

ew

#

lame choice

ocean quartz
old wyvern
#

default

#

weird

quiet depot
#

ugh

#

certbot wants u to use snap to install it

old wyvern
#

oh..

quiet depot
#

i'm sure it's available thru yum too but you can use snap

old wyvern
#

I already started installing from yum

quiet depot
#

ah that's fine then

jovial warren
#

I mean, technically works

old wyvern
#

alrighty

#

done

quiet depot
#

the ugh was because yum > snap

old wyvern
#

ah

quiet depot
#

aight

jovial warren
#

dnf > yum

quiet depot
#

systemctl stop nginx

ocean quartz
quiet depot
#

oh wait a second

#

you need a wildcard domain

#

2 secs i need to google how to gen a wildcard domain

old wyvern
#

stopped... xD

#

ok

jovial warren
#

I’ll add block breaking next

quiet depot
#

wildcard was wrong word

#

just cert for 2 domains

jovial warren
#

I know Nicole is working on entities, and that’s coming close to being ready for review

old wyvern
#

2 domains?

quiet depot
#

www.repo and repo.

old wyvern
#

oh shouldnt their certs be the same?

quiet depot
#

no that's what I mena

#

mean

jovial warren
#

get the DNS cloudflare plugin if you don’t already have it btw

quiet depot
#

u need a single cert for 2 domains

old wyvern
#

ah

quiet depot
#

anyway this should work certbot certonly -d repo.thing -d www.repo.thing

jovial warren
#

ew

old wyvern
#

Where will it generate the certs to?

jovial warren
#

Certbot DNS Cloudflare missing

quiet depot
#

bardy I'm showing him what works for me

jovial warren
quiet depot
#

dw yugi

#

i'm gonna make a config for u

#

well just copying my reverse proxy template

old wyvern
#

alrighty one sec, running certbot

jovial warren
#

get him set up with the Cloudflare DNS plug-in

quiet depot
#

bardy, i'll repeat

#

i'm getting him to set up what works for me

#

my exact setup

#

I don't know how to use the cloudflare dns plug in

old wyvern
#

Why do I need the "Cloudflare DNS plug-in"?

quiet depot
#

you don't

jovial warren
#

yeah I saw, but still, you should be using that plugin

old wyvern
#

oh alright

old wyvern
jovial warren
#

it uses the Cloudflare API to add the verification record automatically

ocean quartz
#

The way I do it is: go to cloudflare create the ssl, download both key and pem, create a folder as etc/cloudflare/domain, place the files there, then reference the files on nginx

jovial warren
ocean quartz
#

Why though?

jovial warren
#

because it’s amazing

old wyvern
#

Try going there

oblique heath
#

no worky

jovial warren
#

you can get like 50 free certs a month for the same domain

old wyvern
#

it ends up in a redirection loop

#

Can you show me your nginx conf?

ocean quartz
jovial warren
#

you can get 50 free certs a month per domain iirc

old wyvern
#

@quiet depot Should I let it use temp webserver or place files in webroot?

old wyvern
#

Both are free

quiet depot
#

temp webserver

old wyvern
#

aight

ocean quartz
quiet depot
#

that's why we shut down nginx

#

so it could use port 80

jovial warren
#

fair enough I guess

old wyvern
#

ah

ocean quartz
#

Going to make 2 certs a day this month!

jovial warren
#

I gen a new certificate for every new subdomain Matt

ocean quartz
#

Why though, you can have one cert for all

jovial warren
#

easier to generate the certificates than download and upload tbh

#

also wasn’t aware you could download your certs from CF

ocean quartz
#

I see them both as equally usable

jovial warren
#

yeah I guess you’re right

#

anyway, if you’re using Let’s Encrypt with Cloudflare, the Cloudflare DNS plugin is a must have

quiet depot
#

soz for wait yugi on that vhost

#

my laptop didn't have the right ssh key for hc dedi for some reason

#

had to open termius to get it

old wyvern
#

ah

quiet depot
#

disable cloudflare proxy

old wyvern
#

alright

jovial warren
#

you can’t proxy those

#

see what I mean?

quiet depot
#

I don't know how

#

but vesta works with letsencrypt, while proxy is enabled

ocean quartz
quiet depot
#

maybe you can enable it after you gen the ssl

#

I'm not sure

old wyvern
#

yea that worked

jovial warren
#

the Cloudflare DNS plugin avoids all of this manual creation and disabling of proxy status and just adds the record and uses the API for verification

old wyvern
#

done piggy

quiet depot
#

if anyone is interested btw

#

little command to generate an ssl on a local domain

#
certbot -d $1 --manual --preferred-challenges dns certonly```
#

I have that baby in /usr/bin/cert

jovial warren
#

also, I don’t use a management panel, I do it all manually with Caddy

old wyvern
#

Good

quiet depot
#

ur like the only person i've ever met that uses caddy

jovial warren
#

yeah idk why

quiet depot
#

because nginx is great

jovial warren
#

it’s such a great web server

old wyvern
#

Piggy

jovial warren
#

easy configuration, auto HTTPS

quiet depot
#

yes?

old wyvern
#

Should I just point the cert and key to the generated ones in the conf?

#

oh wait nvm

quiet depot
#

no

#

i'm making u a vhost

old wyvern
#

alright

quiet depot
#

well

jovial warren
#

I find NGINX is unnecessarily complex to configure

quiet depot
#

just using my docdex one

old wyvern
#

lit

jovial warren
#

Caddy vs NGINX for me is like Kotlin vs Java

quiet depot
jovial warren
#

yes they do the same thing, and yes the one on the right may be slightly faster in some cases, but the one on the left is just easier and means I write less for the same result

old wyvern
#

ok, changing the conf one sec

quiet depot
#

u need to change lines: 2, 3, 8, 9, 12, 13, 29

old wyvern
#

the servername and cert file paths right?

quiet depot
#

and proxypass

#

and ips

old wyvern
#

oh yup

jovial warren
#

I find NGINX unnecessarily verbose and complex personally to configure

old wyvern
#

Also need to add forwarded ip

jovial warren
#

Caddy just kinda works

quiet depot
#

ah yea

old wyvern
#

reposilite requires it if using nginx (atleast from what the config says)

quiet depot
#

yeah

#

add any needed extras

#

docdex doesn't rely on that shit

old wyvern
#

alrighty

quiet depot
#

you might also want to remove the robots tag

old wyvern
#

Also, for the proxypass I need to use the local ip?

quiet depot
#

no

#

but you should

#

reposilite should run on localhost

#

bind its ip to 127.0.0.1

old wyvern
#

Alrighty

quiet depot
#

or if it's in a container, use the docker network gateway (that's what the 172.18.0.1 is for docdex)

jovial warren
#
ci.kryptonmc.org {
    tls /etc/letsencrypt.../fullchain.pem /etc/.../privkey.pem
    reverse_proxy http://jenkins:8080
}
```iirc that’s literally my entire Caddy config
old wyvern
#

its in a container

#

how do i find the gateway?

jovial warren
#

that’s it pig

#

that in NGINX would be like 30-40 lines

quiet depot
#

erm

#

yugi

old wyvern
#

Yea?

quiet depot
#

try looking in ifconfig

old wyvern
#

That shouldnt have info about docker tho

#

Wouldnt this be specific to that?

#

Oh should I execute ifconfig inside the container?

quiet depot
#

no

#

sorry

#

getting a bit out of my depth

#

I use pterodactyl for this

old wyvern
#

ah

quiet depot
#

don't do it in the container though

jovial warren
#

4 lines of config that makes sense vs 30 lines of stuff that just gets you lost is the dealbreaker for me

old wyvern
#

alright

quiet depot
#

I believe the default gateway is 172.17.0.1

#

so try that

old wyvern
#

alrighty

jovial warren
#

what you after Yugi?

quiet depot
#

docker network gateway

#

for his reposilite container

jovial warren
#

depends

#

probably is what you said pig

#

Pterodactyl uses 18 instead of 17

quiet depot
#

yeah

#

and it shows up in ifconfig

#

which is why I said to check there

jovial warren
#

as an example of how this varies

#

yeah docker0 should have it

#

you trying to access the host Yugi?

quiet depot
#

other way around

#

accessing container from host

jovial warren
#

just shove all your stuff in Docker

#

NGINX can run in Docker

quiet depot
#

he uses vesta

jovial warren
#

you using Docker compose btw?

unkempt tangle
#

Juan Joya Borja is ded ;(

jovial warren
#

if so, you either need to open ports or set the network mode to host

quiet depot
#

i saw n3w0rk

#

glare posted it

oblique heath
#

is it just me or is docker compose icky

jovial warren
#

host mode means the container attaches to the host network

#

it’s amazing imo

oblique heath
#

i feel like it's too much of a middle ground

old wyvern
jovial warren
#

means you don’t need to write out the entire docker run command every time you want to start it up

quiet depot
#

or u could just ya know

#

write a util

oblique heath
#

you could easily drop it into a script and get the same result

jovial warren
#

and you can update it by changing one line

#

true I guess

quiet depot
#

well

#

to update urs

#

u have to change a line

#

to update mine

#

I just run ./update.sh

jovial warren
#

fair

#

also, I believe that compose helps you read and understand what exactly is going on

oblique heath
#

well it is more readable, yeah

quiet depot
#

is compose the one with yaml configs?

oblique heath
#

yes

jovial warren
#

because docker run commands can get messy

#

yes

quiet depot
#

ye

#

lemmo made one of those a while back for us

jovial warren
#

I think they’re great

quiet depot
#

it's on my learning todo list

old wyvern
#

uh

jovial warren
#

also you can very easily link containers together by declaring them in the same file and linking them with a single line

old wyvern
#

same thing piggy

quiet depot
#

what thing

old wyvern
#

redirection loop

lunar cypress
#

docker compose good

old wyvern
jovial warren
#

finally, something people agree with me on lol

old wyvern
#

Lemme try disabling the cloudflare proxy again

quiet depot
#

yugi is proxy enabled

#

ok

old wyvern
#

Yes

jovial warren
#

Caddy setup with compose linked to other containers setup with compose all running on Docker’s internal network is like the dream setup for me lol

old wyvern
#

Disabling proxy takes some time to take effect right

#

?

quiet depot
#

yes

old wyvern
#

Alright

jovial warren
#

I just shove everything Caddy needs on the same network

quiet depot
#

i'm pretty sure lemmo uses docker for literally everything

#

I have a feeling he runs ij inside docker

forest pecan
#

wtf lmao

#

ij in docker?

jovial warren
#

using Docker on a server is a good choice

quiet depot
#

I just feel like he's said it before

jovial warren
#

it helps both isolate your containers into their own environments and have them talk to each other on their own networks

oblique heath
#

i think the biggest benefit to docker is being able to automatically spread stuff across multiple machines

ocean quartz
oblique heath
#

though i guess that's not docker by itself that does that

jovial warren
#

not using Docker is like if the world had no walls or doors or anything that give you privacy and everyone knows what everyone else knows and there’s no confidentiality or isolation

#

so in a way, the world is Docker

oblique heath
#

mpich?

#

whats that

old wyvern
#

😌

quiet depot
#

parallel computing api thingo

jovial warren
#

each house is a container, where you are isolated from the rest of the world

oblique heath
#

like for clusters?

quiet depot
#

yes

old wyvern
#

There was a lang focussed a lot on parrallel programming

oblique heath
#

interesting

quiet depot
#

I looked into it yonks ago when i was setting up my pis

old wyvern
#

camphor or something

#

idk

quiet depot
#

I believe mpich uses python

oblique heath
#

is it lighter than k8s or something

forest pecan
#

parallel computing is powerful

quiet depot
#

i was thinking

#

2 nucs

#

minecraft server for the boys go brr

oblique heath
#

😮

jovial warren
#

@frigid badge you might wanna see this one lol

forest pecan
#

HelpServer

quiet depot
#

so i started looking into mpich then i found out that it wasn't that simple 😦

jovial warren
old wyvern
#

it worked!!!

quiet depot
#

I made some basic scripts using mpich though

#

nothing useful

oblique heath
#

it can be if you use k8s

quiet depot
#

just messing around

#

cool yugi

oblique heath
#

unless wait

jovial warren
#

until you realise that means you can’t access the console lol

oblique heath
#

did you want to spread a single server across two nucs?

quiet depot
#

yes

oblique heath
#

ah

quiet depot
#

did you completely disable ssl on cloudflare yugi?

old wyvern
#

Thanks a lot piggy 🙂

quiet depot
#

try disable ssl

#

then re enable proxy

jovial warren
#

set it to full non strict

old wyvern
#

oh alright

oblique heath
#

yeah i think we'll need a multithreaded minecraft server before we can get a parallelized one

quiet depot
#

yeah well I didn't realise back then how it worked

jovial warren
#

full strict is for the Matts of the world

old wyvern
#

I think it worked, might have to wait for the proxy reenable to take effect

jovial warren
#

and flexible is for the people who think that CF should just blindly trust the origin certificate whether it’s trusted or not iirc

oblique heath
#

although on the other hand

quiet depot
#

^ try using flexible next

#

make sure u can't access reposilite thru a public ip

oblique heath
#

if we do ever get that fancy aether engine server implementation

quiet depot
#

if u can

oblique heath
#

that can be spread across multiple machines right?

quiet depot
#

bind reposilite's ip correctly

old wyvern
#

I can access it through there rn

quiet depot
#

also

old wyvern
#

I mean through the ip

quiet depot
#

set firewall rules for it in vesta

old wyvern
#

Alright

jovial warren
quiet depot
#

deny anything on public ip for that port

old wyvern
#

Would that affect ssh?

quiet depot
#

arther engine?

#

no yugi because it's only that port

#

assuming u do it right

jovial warren
#

aether

quiet depot
#

yeah

old wyvern
#

alright

quiet depot
#

that's what i meant

#

what's aether engine

oblique heath
#

there was some news about it a while back

quiet depot
#

the continuum guys are making a c++ vulkan renderer for minecraft

old wyvern
#

It lets you scale game servers by dividing and recombining groups based on player density in a region

jovial warren
#

it’s a game engine that can split sections and tick them separately iirc, and can synchronise sections where necessary through a determination algorithm

oblique heath
#

basically they did some magic and got minecraft to run multithreaded with the promise of holding thousands of players

quiet depot
#

gian has a poc to split worlds onto different servers or threads or something

old wyvern
quiet depot
#

oh

#

i remember this

#

mojang themselves are implementing this right?

old wyvern
#

not sure if for java tho

quiet depot
#

it'll only be bedrock though right?

jovial warren
old wyvern
#

Probably

#

or realms

oblique heath
old wyvern
#

Not really sure where they're using it

jovial warren
#

I'll add it to the list of possible features lol

quiet depot
#

is it as multi threaded as docdex

old wyvern
#

They've only said that they are implementing the aether engine for multiplayer gameplay to be smoother

quiet depot
#

that's the real question

old wyvern
#

aether splits tasks between multiple systems if needed

#

You can load balance

oblique heath
#

so it's already parallelized

quiet depot
#

u can do that with docdex

#

manually...

jovial warren
#

That might be a shout

old wyvern
#

xD

#

docdex, the ultimate parallel endeavor

lunar cypress
#

Just spin up O(n²) servers

old wyvern
jovial warren
#

Gonna add this to the list of possible features to look into lol

quiet depot
#

server per operation

old wyvern
#

thanks

jovial warren
quiet depot
#

new thread per tick

jovial warren
#

Every end of tick a new server is spawned up

oblique heath
#

new database every update?

quiet depot
#

immutable design

old wyvern
#

Rewrites itself on every server operation

jovial warren
old wyvern
quiet depot
#

fun fact

old wyvern
#

Has

#

K

#

eLL

oblique heath
quiet depot
#

i finally figured out how to resize the root partition while the system is running

#

it was very difficult

oblique heath
#

how'd you do it

quiet depot
#

i found a script that runs resize2fs while grub is booting or something

#

so it can set it to a specific size

#

that changes the root filesystem size

#

then u rebuild boot images and shit

#

update grub

old wyvern
#

oh btw, piggy, turning proxy on brought back the redirection loop 🥲

oblique heath
#

lmao

quiet depot
#

then you use parted (not fdisk) to change partition size

oblique heath
#

that seems like the most painful way to do it

quiet depot
#

then you rebuild images again and update grub

#

yeah i know

#

it was extremely painful

#

but rescue mode wasn't an option

#

and it's a remote server so obviously can't boot from a usb

oblique heath
#

yeah

#

country pigs make do i guess

quiet depot
#

oh

#

before all that

#

had to disable swap partition and delete swap

#

rebuild images & update grub

#

pretty much after every step you have to rebuild images, update grub, and reboot

#

so it's fucking slow

oblique heath
#

what does rebuilding images do for you

#

i actually have no idea what that means

quiet depot
#

I don't even know man

#

it's the boot image grub uses

#

I don't know how it works

#

it like knows about partitions and shit

#

then since the host puts the swap partition in the middle, we lose 10gb (yes the swap partition was 10gb, don't ask)

oblique heath
#

o.o

quiet depot
#

I didn't even attempt to gain the 10gb back

#

I imagine the process to shift the other partitions to a lower sector would've been even more painful

#

so yeah next step is to create a new partition on the main drive

oblique heath
#

wait but the swap partition should be much easier to move, right?

quiet depot
#

we had to delete swap because it was already maxed at 4

#

you can't just move partitions

oblique heath
#

since it isn't really important for anything

#

well what else is there to get rid of

#

if you already moved your root

quiet depot
#

we haven't moved root

#

just resized it

oblique heath
#

ah

quiet depot
#

u can't really move partitions

#

as far as I can tell

#

because the files rely on the start sector

#

so if u move a partition (change the start sector)

#

ur data gets fucked

#

so u'd have to back it up first then move it

#

but guess what

#

the partition the system is literally running on is the one we're trying to move

#

so how would that work

#

well we'd try to pivot the root, but the problem with that is there's so many traces of the previous root

#

it's very difficult to do successfully

oblique heath
#

yeah that sounds pretty rough

#

wait don't you have two drives

quiet depot
#

yes

#

that's where we'd pivot the root to

#

you copy root files to second drive, pivot root to there

oblique heath
#

ye

quiet depot
#

anyway so we ended up with 10gb down the drain

#

I think that's an acceptable loss

#

considering the amount of effort I had already put in

#

we're talking about 8 hours of research to get to this stage

oblique heath
#

i don't get why the pivot didn't work for you

distant sun
#

pig.brain += pig.brain;

quiet depot
#

oh yeah gaby I probably should've told you about the 10gb loss

#

let's just pretend that the swap partition still exists

distant sun
#

whats that

oblique heath
#

like if you delete all the partitions on the second drive and make a brand new one, i'd expect everything to be reset

quiet depot
#

when ur memory is full

#

swap is used instead

#

or something like that

#

idrk

distant sun
#

so like a backup?

oblique heath
#

like extra ram

quiet depot
#

more like overflow

distant sun
#

ah

quiet depot
#

like using ur disk as ram

distant sun
#

ooh

#

btw 10gb disk rohjt?

quiet depot
#

10gb extra ram

distant sun
#

no

quiet depot
#

ye

#

so we lose 10gb

quiet depot
#

it's not a disk

#

it's a prtition

old wyvern
#

Isnt this on gabs mc server?

quiet depot
#

yes

#

and blitz'

#

same setup for both

old wyvern
#

If its a single app running swap wouldnt be useful right?

distant sun
#

dont forget about that pig ❤️

quiet depot
#

I'm not sure

#

I don't know too much about swap

oblique heath
#

i've heard swap is bad for docker

old wyvern
#

Yea same

quiet depot
#

anyway point is

#

once we resized root partition

#

and deleted swap so we could make a new primary

#

made a new primary with remaining space

old wyvern
#

ah

quiet depot
#

made new partition on other disk

#

added them together with lvm

#

now we have big partition

#

and gaby can have a 400gb folder with 2 250gb disks (if you're wondering where the missing space is, 50gb went to route, 10gb was lost, some space is used for boot partition aswell, and lvm cuts off like 20gb for some reason, probably redundancy, can't remember, although this can be changed in config)

old wyvern
#

Wait 2 partitions on diff disks can be merged?

quiet depot
#

yes

old wyvern
#

😮

quiet depot
#

lvm is a very cool piece of software

oblique heath
#

could you have just asked your provider to reset the drives

quiet depot
#

probably

#

but slow replies

#

also unhelpful

#

so might've taken a while

oblique heath
#

fair enough

quiet depot
#

and completely unmanaged, they might've just said no

oblique heath
#

in that case just stop paying for it and get a new one with the same specs

#

😉

quiet depot
#

this is good specs and cheap

#

just host is annoying

oblique heath
#

well you'd get your new one from the same host

#

so you basically just get a reset

quiet depot
#

no

#

you can reset from their panel

#

the problem is they just load on the same partition structure

#

you can't configure it during os install

#

It might not even be controllable by this host

#

they're technically a reseller

oblique heath
#

in that case make a new account

#

and get the same specs there

#

i can't imagine your partitions will carry over to that lol

quiet depot
#

they're the host's default partitions

#

it's nothing todo with the account

oblique heath
#

aah

#

i see

quiet depot
#

it's like how ovh used to separate the /home partition by default and it annoyed everyone so they changed it

#

although at least with ovh you could configure partitions during install

oblique heath
#

well at least it's all behind you now

quiet depot
#

if proxy is essential

#

personally I don't bother with proxy

boreal needle
#

is reposilite better than nexus? i saw someone talking about it earlier

oblique heath
#

apparently it uses less ram

quiet depot
#

way less

oblique heath
#

though i personally haven't had any problems with limiting nexus to 1gb

quiet depot
#

nexus is a notorious hog

#

artifactory too

#

reposilite uses like 256MB max

oblique heath
#

😮

obtuse gale
#

unbelievable

quiet depot
#

I think it's 32MB min

#

nope

#

8MB min

obtuse gale
#

wtf now that is actually unbelievable

quiet depot
#

and yes this is a java app

#

what's unbelievable is nexus easily using 4gb

#

there's no reason for that

oblique heath
#

does it like, cache stuff?

#

or something

quiet depot
#

it can't cache that much

old wyvern
quiet depot
#

like what does it have to cache?

#

"hides" ur ip

oblique heath
#

all the various artifacts 🤷‍♂️

quiet depot
#

and cloudflare analytics

old wyvern
#

hmm hiding the ip might be useful

oblique heath
#

actually thats one annoying thing about nexus, it doesn't let you hide the ip yeah

boreal needle
#

welp tine for me to switch toi reposilite then

oblique heath
#

when you publish an artifact

quiet depot
#

ah yea

#

people worry about that but most people have a dynamic ip

#

my ip is "dynamic"

oblique heath
#

well even still, a dynamic ip can hang around for a good few months or years

quiet depot
#

you're meant to be able to change your dynamic ip by unplugging your modem for like 30 seconds

obtuse gale
#

I have to shut it off for like a week for my ISP to change my IP 🥲

quiet depot
#

idk

obtuse gale
#

I've been having the same IP ever since we got this provider

#

lmao

quiet depot
#

my "dynamic" ip like never changes

#

kinda stupid

oblique heath
#

i've heard that isps don't want to have to change your ip if they can help it

quiet depot
#

I also feel like it alternates

#

every time it changes it switches between sydney and perth

#

lots of ip borrowing goes on here

obtuse gale
#

aren't you like at the very opposite end of aus? lol

quiet depot
#

yeah so I live in perth

#

but every now and then when the ip changes, it'll be a sydney ip

obtuse gale
#

sydney is literally across the whole fucking country

quiet depot
#

yes

obtuse gale
#

lmao

obtuse gale
jovial warren
#

sounds about right

obtuse gale
#

lol

jovial warren
#

reminds me of required type: Object, provided: Object

ocean quartz
#

Super capture of super subject

jovial warren
#

or required type: Type<T>, provided: Type<capture of ? extends T> lol

#

wildcards bad

steel heart
#

Type erasure smiling_face_with_3_tears

ocean quartz
#

Gotta hate it

obtuse gale
#

ooh github sets redirects for repository links when changing names

#

neat

ocean quartz
#

Yeah it's awesome

obtuse gale
#

no underscores 🥲

frigid badge
jovial warren
#

read up above

#

I was relating to the conversation

#

they were saying that you literally are Docker lol

frigid badge
#

lmao I see it now

oblique heath
#

any opinions on whether it's better to use mongodb or mysql for storing chat logs

frail glade
#

Well do you need it to be relational or do you just want to store it?

hot hull
#

I mean I doubt you'll have enough to need mongo :p

oblique heath
#

well i would like to search for all messages by a certain player, and other similar stuff i suppose

frail glade
#

Alrighty so you could probably just use MySQL because then you could do something like SELECT * from table WHERE uuid is the uuid of the player

oblique heath
#

i guess i'll do that then, thankya

jovial warren
#

imagine trying to turn the vanilla server deobfuscated into a Gradle project

#

totally not what I'm trying to do or anything

jovial warren
#

SQL's relational structure will pay off here when storing references to the sender of the message

boreal needle
#

when are you supposed to use mongo over sql?

steel heart
#

depends on what data it is

jovial warren
#

yeah

sly sonnet
obtuse gale
#

correct

jovial warren
#

well, I guess Krypton has BungeeCord support now

obtuse gale
#

you guess?

#

lol

#

how much work was it

jovial warren
#

not that much

#

just a few changes to accommodate the extra data

#

see for yourself in the new branch

#

feature/bungeecord

#

83 additions and 17 deletions

#

that's it

obtuse gale
#

lurking time

sly sonnet
#

I hope that in this discord is at least one person who knows c++

obtuse gale
#

that would be me fingerguns

oblique heath
#

i know some cpp

#

cout << "hello world" << endl;

ocean quartz
#

Ah yes, that's definitely correct, I love it

obtuse gale
#

lol

#

does it keep going?

ocean quartz
#

No lol

obtuse gale
#

aw :(

ocean quartz
#

It sucks so much because I had that working a few days ago, but scrapped it and can't figure how I did it

old wyvern
#

Did you check your local history?

ocean quartz
#

Yeah, it's gone from there 🥲

old wyvern
#

rip 🥲

#

I mean, matt if its taking too much time, flat dependencies are fine

#

we can figure out some backwards compatible way to introduce that later

ocean quartz
#

Alrighty, just feel like that'll be a lot of jars in the folder

old wyvern
#

We'll have to download each anyway tho

ocean quartz
#

True

#

Alright i'll just do that then

old wyvern
#

Alrighty, Im working on the url resolving

#

Did you make any class for the json model?

ocean quartz
#

Not yet, legit been on this all day xD

old wyvern
#

xD rip

#

I should probably move that and relocation to a separate common module

#

since we can to relocate the actual jar as well if shadow isnt present

half harness
#

what are transitive dependencies?

old wyvern
obtuse gale
#

@boreal needle

I've looked over the emilyy account and it's not dormant (not all activity on GitHub is public) or available for release under our name-squatting policy

ocean quartz
old wyvern
#

ahh

#

alright

boreal needle
obtuse gale
#

smh

forest pecan
#

tennis practice got cancelled, we are forced to work out on a Zoom

#

there is sweat all over the floor

obtuse gale
#

lol

#

nasty

forest pecan
#

:((

boreal needle
#

lmao imagine doing physical activity

forest pecan
#

thats what happens when you join a team

#

lol

obtuse gale
#

ew team

#

imagine being with people irl

ocean quartz
#

@old wyvern Is the name on the Dependency class you made just group:artifact:version?
Might need to change it slightly

old wyvern
#

I actually added better data classes in, gimme a min

forest pecan
old wyvern
#

lemme commit it

forest pecan
#

kek

ocean quartz
#

Oh nice

old wyvern
#

That one was assuming the gradle plugin resolved the url xD

boreal needle
#

whats an irl friend

half harness
#

😔

old wyvern
#

@ocean quartz pushed, ignore data.Dependency for now, use resolver.Dependency and resolver.Repository

ocean quartz
#

Gotcha

surreal quarry
#

im getting this error every time i do anything gradle related (reload project, build, etc). it has no error message. is there any way to see more

#

nothing in my IJ is working rn

static zealot
#

so on ubuntu I'm trying to kill a java process and I've tried kill PID but it doesn't seem to die

surreal quarry
#

kill -9 PID

#

or pkill -9 PID maybe

static zealot
#

kill -9 PID did it

#

ty

ocean quartz
surreal quarry
#

yea

#

i think something is weird with my wsl/windows setup maybe

#

im in the process of trying out windows with wsl2 instead of a dual boot to see if i like it, and thats when the issue happened

#

idk though. if i do like ./gradlew clean or ./gradlew build from the command line, it works fine, its just intellij being weird

#

and its not like recognizing my packages and stuff either

hot hull
onyx loom
#

wym

#

i might take that up tbh

surreal quarry
#

200 for skript 🥲

#

just take it and write normal plugins

sweet cipher
surreal quarry
#

late

sweet cipher
#

oh

static zealot
onyx loom
#
    /**
     * Setter
     * 
     * @param key
     * @param value
     */```
nbt api be like
ocean quartz
#

Lmao

#

Tbh my comments are like that too

onyx loom
#

👀

surreal quarry
#

"Just so you know, this takes a key and a value"

#

Good luck!

onyx loom
#

ah, thanks for that james!

sweet cipher
#

Comments? What are those?

surreal quarry
#

// comment

#

// this is a comment

#

// this is usually how detailed my comments are

obtuse gale
#

why

surreal quarry
#

// goodbye

obtuse gale
#

no

#

stay

surreal quarry
#

// ok

#

// nothing better to do anyways

#

// waiting on jetbrains to tell me why intellij broke

onyx loom
#

because bad

obtuse gale
#

it says STAY dad please

#

what a great movie 😭

ocean quartz
#

Ah fuck

#

Now I'll have to rewatch Interstellar

sweet cipher
#

That looks like a movie where a dog dies

obtuse gale
#

there is no dog

sweet cipher
#

hmm

ocean quartz
#

No, it's a masterpiece about space

sweet cipher
#

I would say cat, but then they wouldn't be emotional

#

hm

#

Maybe I'll watch it one day

#

Once the moon blows up

#

In Earth's future, a global crop blight and second Dust Bowl are slowly rendering the planet uninhabitable. Professor Brand (Michael Caine), a brilliant NASA physicist, is working on plans to save mankind by transporting Earth's population to a new home via a wormhole. But first, Brand must send former NASA pilot Cooper (Matthew McConaughey) and a team of researchers through the wormhole and across the galaxy to find out which of three planets could be mankind's new home
Wow that actually does seem good

obtuse gale
#

In my extremely subjective and biased opinion it's one of the best movies ever made

ocean quartz
#

It is one of the best movies ever made

obtuse gale
#

it literally blows my mind

onyx loom
#

yes!

#

interstellar is great

sweet cipher
#

Is there any way of converting a java project to gradle?

onyx loom
#

gradle init

old wyvern
#

run gradle init?

surreal quarry
#

i think gradle init

sweet cipher
#

Where do I run that lol?

surreal quarry
#

command line

onyx loom
#

in the terminal

surreal quarry
#

or double ctrl in intellij

#

idk if it will work actually if its not already a gradle project

ocean quartz
#

Hey @old wyvern what is the identifier for the repository? Doesn't seem like gradle gives me that, only the url

sweet cipher
#

Ir worked, thank you

old wyvern
#

xD

ocean quartz
#

Yeah seems like they just ignore it xD

old wyvern
#

lol

obtuse gale
#

oh jesus...

onyx loom
#

what in the fuck goes down in luckperms discord man....

sweet cipher
#

Lol

#

https://paste.helpch.at/fabiyeruni.bash
Anyone know why this gradle build gives me this error?

Could not find spigot-api-1.16.5-R0.1-SNAPSHOT.jar (org.spigotmc:spigot-api:1.16.5-R0.1-SNAPSHOT:20210416.004032-48).
Searched in the following locations:
https://hub.spigotmc.org/nexus/content/repositories/snapshots/org/spigotmc/spigot-api/1.16.5-R0.1-SNAPSHOT/spigot-api-1.16.5-R0.1-20210416.004032-48.jar

Possible solution:

ocean quartz
old wyvern
#

😮

#

Amazing

#

btw matt

#

How does gradle traverse each and every repo each with its different paths?

#

I might be missing something actually

serene cave
#

Gradle doesn't

#

the government does

old wyvern
#

Damn

old wyvern
#

You didnt declare sonatype or the spigot repo

sweet cipher
#

Oh

old wyvern
serene cave
#

you see

#

i own the internet

ocean quartz
#

I'm actually not sure how it does it, but yeah it's one by one it doesn't tell me exactly from where 😩

old wyvern
#

Maybe the specs specify an api each must* implement

prisma wave
old wyvern
#

bm

old wyvern
serene cave
#

knows what hes talking about

serene cave
#

Mr MasterOfTheFish

#

have you tried invaliding cache and restarting

#

young sir

sweet cipher
#

I have not

#

Old madam

serene cave
#

You should try it

sweet cipher
#

I shall

serene cave
#

It makes you younger 10 years

sweet cipher
#

It still does not work

ocean quartz
#

New shadow version 😮

surreal quarry
#

7.0.0 right

serene cave
#

Mr Matthew

ocean quartz
#

Yeah

old wyvern
#

ok wait nvm, it seems the path is the same

serene cave
#

How is your day

surreal quarry
#

for gradle 7

old wyvern
#

I was just checking from the wrong root

ocean quartz
serene cave
#

I see Matthew

ocean quartz
#

Ah, it's 7+ only

sweet cipher
#

Welp guess I'm going back to maven

serene cave
#

Mr MasterOfTheFish

#

maven is a drug

#

We may send you to COPPA if you use it

sweet cipher
#

Gradle broke

surreal quarry
#

same 🥲

#

probably for a different reason

sweet cipher
#

Or maybe I should try paper and see if that works

forest pecan
#

but io.github

#

is fucking

obtuse gale
#

who is io.github fucking?

forest pecan
#

ur mom

obtuse gale
#

:C

#

@everyone ban pulse

#

@everyone

loud gyroBOT
#

The 'everyone' mention is disabled so you can't annoy people.

regal gale
#

=ban

#

No perm 😩

forest pecan
#

ez

dawn hinge
#

@serene cave hi!

serene cave
#

hello

dawn hinge
#

Can you send backup

#

I'm sure you know someone who could be able to help a bird out

serene cave
#

SURE

dawn hinge
#

I feel like your dkim

ocean quartz
#

Instead of throwing NPEs it blows up your country

dawn hinge
#

👀

forest pecan
#

@quiet depot if someone ever asks about arrow code

#

send them this gif

dawn hinge
#

lmao

#

Okay I wanna do that now

forest pecan
#

lol

unique sable
#

can someone help with my plugin every time i compile it to a jar file and put it in a server it pretends like the jar file doesnt exist.

cinder flare
#

then you probably didn't compile it rightr

unique sable
#

xd

wind bolt
#

Hey guys!!

#

I'm super excited to announce that SimplexCore is just TWO days from an alpha release!

wind bolt
#

Sorry

surreal quarry
#

rip

wind bolt
#

No need to be rude about it

forest pecan
#

i'm not, after all you're the one that is advertising so I tried to make a joke out of it lol

wind bolt
#

makes joke at another's expense

cinder flare
#

hey man, someone's gotta be the butt of the jokes

#

might as well laugh along with everyone

#

also you did something stupid lol

forest pecan
#

exactly

balmy hare
#

its rude to advertise in other discords in the first place, you shouldnt be at a point to judge if they are rude back

sweet cipher