HackerTrans
トップ新着トレンドコメント過去質問紹介求人

mradmin

no profile record

コメント

mradmin
·4 年前·議論
Can you give some examples of why the nodejs community is not nice?
mradmin
·4 年前·議論
Let's not forget about http://prototypejs.org/ & http://script.aculo.us/ for modern Web 2.O
mradmin
·5 年前·議論
Sure, could be. I guess i'd expect Microsoft to have company-wide processes and practises when working with OSS though. Could be wishful thinking.
mradmin
·5 年前·議論
Seems like a mistake to me. Microsoft recently adopted one of my Open Source projects and part of the agreement was they would keep the original license. This was a request on their part, I had no choice in the matter. They know what they're doing, I don't think they would do this deliberately. (Licence here: https://github.com/microsoft/vscode-gradle/blob/main/LICENSE...)
mradmin
·5 年前·議論
Here's an example using GitHub Actions: https://github.com/badsyntax/docker-box/tree/master/examples...
mradmin
·5 年前·議論
Agree the traefik config is a little complex but otherwise it works great for me. About using portainer, it's useful for showing a holistic view of your containers and stacks, but I also use it for remote deployment of services (Eg as part of CI/CD). I'll push a new docker image version then I'll use the portainer webhooks to redeploy the service, then docker swarm takes over.
mradmin
·5 年前·議論
My anti-kubernetes setup for small single servers is docker swarm, portainer & traefik. It's a setup that works well on low powered machines, gives you TLS (letsencrypt) and traefik takes care of the complicated network routing.

I created a shell script to easily set this up: https://github.com/badsyntax/docker-box
mradmin
·5 年前·議論
Can you run microk8s or k3s on a single server/device? Even if you can, seems like the wrong tool for the job with unnecessary complexity...
mradmin
·5 年前·議論
This is the approach I use, but I've always found some sort of issue in every generator I use. A valid openapi spec does not imply a generator will be able to handle it. You'd think have a specification would mean the generators are "bug free" but it's not the case, and bug reports are lost in a sea of issues: https://github.com/OpenAPITools/openapi-generator/issues so i don't see things improving anytime soon.

I've also wondered if the "logic-less" template approach is the right approach for these generators. You can't fix bugs or add workarounds just by providing a custom template, you need to change the underlying Java code to provide the correct data models to the logic-less templates.
mradmin
·5 年前·議論
Some of these are multi-liners that can be converted to one-liners. For example I believe "npx" can be used for all the node examples for example "npx http-server -p 6007 ./root"

[edit] ahh i see this is called out in the gist comments
mradmin
·5 年前·議論
There's also some wacky code in the HTML. Check out the body tag:

  <body class="post-template-default single single-post postid-4483 single-format-standard bridge-core-1.0.6  qode-title-hidden qode_grid_1200 footer_responsive_adv qode-content-sidebar-responsive transparent_content qode-child-theme-ver-1.0.0 qode-theme-ver-18.2 qode-theme-beatportal disabled_footer_bottom qode_header_in_grid wpb-js-composer js-comp-ver-6.0.5 vc_responsive &quot;&gt;&lt;noscript&gt;&lt;iframe src=&quot;https://www.googletagmanager.com/ns.html?id=GTM-WVTMQP&amp;user%5BisLoggedIn%5D=0&amp;&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;display:none;visibility:hidden&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt;&lt;br style=&quot;display:none;"  >
If it's not clear, all that code is within the class attribute!
mradmin
·5 年前·議論
It's "an hour a day(+/- 10 minutes)" which I read as "an hour a day give or take 10 minutes"
mradmin
·5 年前·議論
(deleted)
mradmin
·5 年前·議論
I was expecting something more like Gorce (https://gource.io/) that shows contributions via commits but this is rather cool nonetheless.
mradmin
·5 年前·議論
Staticman is awesome for static websites! (next.js, jekyll etc). It provides user content via pull requests. That's all it does! This means you have complete control over the UI. No loading of 3rd party scripts etc.

I wrote a blog post about integrating it into Next.js: https://richardwillis.info/blog/self-hosted-staticman-dokku-...
mradmin
·6 年前·議論
I don't understand the title. Does the OP not understand the difference between Europe and the EU?