> neofetch
c.' simon@simon-mac
,xNMM. ---------------
.OMMMMo OS: macOS Monterey 12.3 21E230 x86_64
lMM" Host: MacBookAir10,1
.;loddo:. .olloddol;. Kernel: 21.4.0
cKMMMMMMMMMMNWMMMMMMMMMM0: Packages: 242 (brew), 48 (nix-user)
.KMMMMMMMMMMMMMMMMMMMMMMMWd. Shell: fish 3.4.1
XMMMMMMMMMMMMMMMMMMMMMMMX. Resolution: 2560x1600 , 3440x1440 @ -Hz
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import angular from 'angular'; | |
import fontawesome from '@fortawesome/fontawesome-svg-core'; | |
import {faPrint} from '@fortawesome/free-solid-svg-icons/faPrint'; | |
import {faSearch} from '@fortawesome/free-solid-svg-icons/faSearch'; | |
fontawesome.library.add(faPrint, faSearch); | |
function directive(): ng.IDirective { | |
return { | |
restrict: 'E', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.auth0.jwt.JWT; | |
import com.auth0.jwt.algorithms.Algorithm; | |
import org.bouncycastle.util.io.pem.PemReader; | |
import org.junit.Test; | |
import java.io.BufferedReader; | |
import java.nio.file.Files; | |
import java.nio.file.Paths; | |
import java.security.KeyFactory; | |
import java.security.interfaces.RSAPrivateKey; |
Using the URI copy constructor on an URI where the userinfo part contains a percent-escaped colon (U+003A as %3A
) produces a different result.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
redis: | |
image: redis | |
postgres: | |
image: postgres | |
environment: | |
- POSTGRES_PASSWORD=sentry | |
- POSTGRES_USER=sentry | |
volumes: | |
- /var/lib/postgresql/data |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var i18nMessages = {}; | |
["en", "de", "it"].forEach(function (lang) { | |
jQuery.ajax({ | |
url: "./i18n/" + lang + ".json", | |
dataType: 'json', | |
async: false, | |
success: function (data) { | |
i18nMessages[lang] = data; | |
} | |
}) |
> neofetch
.',;::::;,'. simon@simon-ssd
.';:cccccccccccc:;,. ---------------
.;cccccccccccccccccccccc;. OS: Fedora Linux 39 (Workstation Edition) x86_64
.:cccccccccccccccccccccccccc:. Kernel: 6.5.11-300.fc39.x86_64
.;ccccccccccccc;.:dddl:.;ccccccc;. Uptime: 10 days, 9 hours, 40 mins
.:ccccccccccccc;OWMKOOXMWd;ccccccc:. Packages: 2938 (rpm)
.:ccccccccccccc;KMMc;cc;xMMc:ccccccc:. Shell: fish 3.6.1
,cccccccccccccc;MMM.;cc;;WW::cccccccc, Terminal: /dev/pts/0
The goal is to server Swagger UI via http://localhost:8080/swagger-ui/
-
Add Maven/Gradle dependency
org.webjars:swagger-ui
– https://search.maven.org/artifact/org.webjars/swagger-ui/3.26.1/jar -
Configure the Jetty
DefaultServlet
:
package at.tbbm.manual_input;
import org.eclipse.jetty.server.Server;
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package root; | |
import root.resources.HelloResource; | |
import org.eclipse.jetty.server.Server; | |
import org.eclipse.jetty.servlet.ServletContextHandler; | |
import org.eclipse.jetty.servlet.ServletHolder; | |
import org.glassfish.jersey.server.ResourceConfig; | |
import org.glassfish.jersey.servlet.ServletContainer; | |
public class Application { |
This note illustrates how to setup JetBrains IntelliJ IDEA for JOSM development.
- Get the source
- Add project from existing source
- Project Settings / Project: