I hereby claim:
- I am usmansaleem on github.
- I am usmansaleem (https://keybase.io/usmansaleem) on keybase.
- I have a public key ASAm2n8THjDDTNeCFXMlzighk7rsghGGkN0X6ssgQNJFmAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#! /bin/bash | |
#IBFT 2.0 with permissions Pantheon setup script. 4 node setup. Assume pantheon is built using `gradlew installDist` | |
SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )" | |
PANTHEON_PATH="${SCRIPTPATH}/pantheon/build/install/pantheon" | |
IBFT_PATH="${SCRIPTPATH}/IBFT-NETWORK" | |
NODE_COUNT='4' | |
#Local Node Permissioning flags | |
PERM_NODE_CONFIG_ENABLED="true" |
#! /bin/bash | |
#IBFT 2.0 with permissions Pantheon setup script. 4 node setup. Assume pantheon is built using `gradlew installDist` | |
SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )" | |
PANTHEON_PATH="${SCRIPTPATH}/pantheon/build/install/pantheon" | |
IBFT_PATH="${SCRIPTPATH}/IBFT-NETWORK" | |
NODE_COUNT='4' | |
#Create node directories | |
for((i=1;i<=$NODE_COUNT;i++)) |
server { | |
listen 80; | |
listen [::]:80; | |
server_name usmans.info www.usmans.info usman.id.au www.usman.id.au; | |
root /var/blogboot/www; | |
location / { | |
try_files $uri $uri/ @proxy; |
[Unit] | |
Description=Blog Boot | |
After=syslog.target | |
[Service] | |
User=bootapp | |
Environment="JAVA_HOME=/var/blogboot/jdk-11.0.2+7-jre" | |
ExecStart=/var/blogboot/blog-boot-0.0.0-SNAPSHOT.jar | |
SuccessExitStatus=143 |
public UndertowServletWebServerFactory servletWebServerFactory() { | |
UndertowServletWebServerFactory factory = new UndertowServletWebServerFactory(); | |
factory.addBuilderCustomizers((UndertowBuilderCustomizer) builder -> builder.addHttpListener(8080, "0.0.0.0")); | |
return factory; | |
} |
https://stackoverflow.com/a/39635794 | |
def q = Jenkins.instance.queue | |
//Find items in queue that match <project name> | |
def queue = q.items.findAll { it.task.name.startsWith('sample_project') } | |
//get all jobs id to list | |
def queue_list = [] | |
queue.each { queue_list.add(it.getId()) } | |
//sort id's, remove last one - in order to keep the newest job, cancel the rest | |
queue_list.sort().take(queue_list.size() - 1).each { q.doCancelItem(it) } |
git update-index --chmod=+x gradlew |
cat /proc/sys/kernel/random/entropy_avail
Should not be 0 ....
Consider installing haveged and check status (in some cloud environment it may have issues at system start up, manual start may be required)
service haveged status
package info.usmans.blog.vertx | |
import io.vertx.core.AbstractVerticle | |
import io.vertx.core.Future | |
import io.vertx.core.buffer.Buffer | |
import io.vertx.core.net.NetServer | |
import io.vertx.core.net.NetServerOptions | |
import io.vertx.core.net.OpenSSLEngineOptions | |
import io.vertx.core.net.PemKeyCertOptions | |
import org.slf4j.LoggerFactory |