Skip to content

Instantly share code, notes, and snippets.

View jmewes's full-sized avatar

Jan Mewes jmewes

View GitHub Profile
@jmewes
jmewes / notes.sh
Created June 16, 2020 07:31
Install IntellIj
cd /tmp
wget -cO jetbrains-toolbox.tar.gz "https://data.services.jetbrains.com/products/download?platform=linux&code=TBA"
tar -xzf jetbrains-toolbox.tar.gz
DIR=$(find . -maxdepth 1 -type d -name jetbrains-toolbox-\* -print | head -n1)
cd $DIR
./jetbrains-toolbox
cd ..
rm -r $DIR
rm jetbrains-toolbox.tar.gz
@jmewes
jmewes / yfuzg
Created May 31, 2020 14:06
Start web server
# Setup `webdev`
https://dart.dev/tools/webdev
# Start development server
```
webdev serve [--debug | --release] [ [<directory>[:<port>]] ... ]
```
@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 / 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 / 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 / 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 / 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