Skip to content

Instantly share code, notes, and snippets.

Jan Mewes jmewes

Block or report user

Report or block jmewes

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jmewes
jmewes / notes.md
Created Jun 8, 2019
[KSCH] Introduction of the "order-entry-web" module
View notes.md

(1) Create directories

mkdir order-entry
cd order-entry/
mkdir order-entry-web
cd order-entry-web/
mkdir -p src/main/java
mkdir -p src/test/java
@jmewes
jmewes / snippet.html
Created Jun 8, 2019
[Wicket] How to include a header section in the finally rendered page?
View snippet.html
<head>
<wicket:head>
<style type="text/css">
.card-login {
max-width: 25rem;
}
</style>
</wicket:head>
</head>
@jmewes
jmewes / install-sonar-scanner.sh
Created May 25, 2019 — forked from Chetan07j/install-sonar-scanner.sh
Install sonar-scanner in linux mint, ubuntu...
View install-sonar-scanner.sh
#!/bin/bash
cd /tmp || exit
echo "Downloading sonar-scanner....."
if [ -d "/tmp/sonar-scanner-cli-3.2.0.1227-linux.zip" ];then
sudo rm /tmp/sonar-scanner-cli-3.2.0.1227-linux.zip
fi
wget -q https://sonarsource.bintray.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-3.2.0.1227-linux.zip
echo "Download completed."
@jmewes
jmewes / notes.md
Last active Apr 22, 2019
Create bootable UBS stick from ISO
View notes.md

Identify the device file name:

sudo fdisk /dev/sd* -l

Declare variables:

ISO_FILE=/home/janux/Downloads/debian-live-9.6.0-amd64-gnome.iso
GENERAL_STICK_PARTION=/dev/sdb
@jmewes
jmewes / notes.md
Last active Nov 28, 2018
Set debug log level for Spring Boot tests
View notes.md
@jmewes
jmewes / Ubuntu.sh
Last active Jan 3, 2018
How to connect to a RDP server?
View Ubuntu.sh
# Install rdesktop
sudo apt update
sudo apt install rdesktop -y
# Connect directly with username and password
rdesktop $IP -u $USER -p $PASSWORD
# Connect using with a non-default port (default is 3389)
rdesktop $IP:$PORT
@jmewes
jmewes / Dockerfile
Last active Jan 28, 2018
Develop CaptainCasa apps with Docker
View Dockerfile
FROM tomcat
ENV JAVA_OPTS="-Djava.security.egd=file:/dev/urandom"
RUN addgroup tomcatusers && adduser --disabled-password tomcat && adduser tomcat tomcatusers
RUN chown -R tomcat:tomcatusers .
USER tomcat
COPY editor.war /usr/local/tomcat/webapps/editor.war
COPY index.jsp /usr/local/tomcat/webapps/ROOT/index.jsp
You can’t perform that action at this time.