Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
| Commit type | Emoji |
|---|---|
| Initial commit | 🎉 :tada: |
| Version tag | 🔖 :bookmark: |
| New feature | ✨ :sparkles: |
| Bugfix | 🐛 :bug: |
| #!/bin/bash | |
| # | |
| # Get ready to build openjdk/jdk on Fedora | |
| # | |
| # You can easilly forget fontconfig-devel if you follow the builder guide | |
| # https://github.com/openjdk/jdk/blob/master/doc/building.md | |
| # | |
| sudo dnf install \ |
| def sout = new StringBuilder(), serr = new StringBuilder() | |
| def proc = 'curl -ivk https://dr.dk'.execute() | |
| proc.consumeProcessOutput(sout, serr) | |
| proc.waitForOrKill(1000) | |
| println "out> $sout err> $serr" |
| #!/bin/bash | |
| function gitSquash() { | |
| # Check if the current directory is in a Git repository. | |
| if [ "$(git rev-parse --is-inside-work-tree &>/dev/null; echo "${?}")" == '0' ]; then | |
| if [ "X" != "X$1" ]; then | |
| MESSAGE="" | |
| if [ "X" != "X$2" ]; then | |
| MESSAGE=" -m \"$2\"" |
| package dk.jarry.util; | |
| import java.io.IOException; | |
| import java.io.StringReader; | |
| import java.nio.file.Files; | |
| import java.nio.file.Path; | |
| import java.nio.file.Paths; | |
| import java.nio.file.StandardOpenOption; | |
| import java.util.UUID; |
| package dk.jarry.util; | |
| import java.io.IOException; | |
| import java.nio.file.Files; | |
| import java.nio.file.Path; | |
| import java.nio.file.Paths; | |
| import java.nio.file.StandardOpenOption; | |
| import java.util.UUID; | |
| import com.fasterxml.jackson.core.JsonParseException; |
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
| Commit type | Emoji |
|---|---|
| Initial commit | 🎉 :tada: |
| Version tag | 🔖 :bookmark: |
| New feature | ✨ :sparkles: |
| Bugfix | 🐛 :bug: |
| package dk.jarry.util; | |
| import java.io.File; | |
| import java.io.FileInputStream; | |
| import java.io.FileWriter; | |
| import java.io.InputStream; | |
| import java.io.Writer; | |
| import javax.xml.parsers.DocumentBuilder; | |
| import javax.xml.parsers.DocumentBuilderFactory; |
| # How to sign your custom RPM package with GPG key | |
| # Step: 1 | |
| # Generate gpg key pair (public key and private key) | |
| # | |
| # You will be prompted with a series of questions about encryption. | |
| # Simply select the default values presented. You will also be asked | |
| # to create a Real Name, Email Address and Comment (comment optional). | |
| # | |
| # If you get the following response: |
| #!/bin/bash | |
| export TKN=$(curl -X POST 'http://localhost:8080/auth/realms/master/protocol/openid-connect/token' \ | |
| -H "Content-Type: application/x-www-form-urlencoded" \ | |
| -d "username=admin" \ | |
| -d 'password=admin' \ | |
| -d 'grant_type=password' \ | |
| -d 'client_id=admin-cli' | jq -r '.access_token') | |
| curl -X GET 'http://localhost:8080/auth/admin/realms' \ |
| ## | |
| # | |
| # We want Wildfly to lisen on port 443 (yes - one below port 1024) | |
| # | |
| # http://wildfly-development.1055759.n5.nabble.com/Using-Wildfly-as-a-load-balancer-tt5715464.html#a5715482 | |
| # | |
| # sudo setcap cap_net_bind_service=+epi $JAVA_HOME/bin/java | |
| # sudo setcap cap_net_bind_service=+epi $JAVA_HOME/jre/bin/java | |
| # | |
| # sudo echo $JAVA_HOME/jre/lib/amd64/jli/libjli.so > /etc/ld.so.conf.d/libjli.conf |