Skip to content

Instantly share code, notes, and snippets.

View jmewes's full-sized avatar

Jan Mewes jmewes

View GitHub Profile
@jmewes
jmewes / main.dart
Last active May 31, 2020 06:53
Define interface for variables #dart
void main() {
var obj = ConcreteClass("test");
print(obj.myVariable);
}
class ConcreteClass extends AbstractClass {
String myVariable;
@jmewes
jmewes / notes.md
Created June 8, 2019 13:59
[KSCH] Introduction of the "order-entry-web" module

(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
Last active May 30, 2020 13:55
How to include a header section in the finally rendered page? #wicket
<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 12:28 — forked from chetanppatil/install-sonar-scanner.sh
Install sonar-scanner in linux mint, ubuntu...
#!/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 April 22, 2019 19:05
Create bootable UBS stick from ISO

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 November 28, 2018 12:01
Set debug log level for Spring Boot tests
@jmewes
jmewes / Ubuntu.sh
Last active January 3, 2018 21:12
How to connect to a RDP server?
# 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 January 28, 2018 19:58
Develop CaptainCasa apps with Docker
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