Skip to content

Instantly share code, notes, and snippets.

View Karm's full-sized avatar
🎪
Staring at my screen

Karm Michal Babacek Karm

🎪
Staring at my screen
View GitHub Profile
@Karm
Karm / index.html
Created October 4, 2019 20:04
Vue JS Draw
<div id="draw">
<div class="welcome-bg" v-if="popups.showWelcome">
<div class="welcome">
<h1 class="fade-up">Vue JS draw</h1>
<h2 class="fade-up">
By Lewi Hussey
</h2>
<a href="//twitter.com/lewitje" target="blank" title="Lewi Hussey on Twitter" class="fade-up">@lewitje</a>
<span class="btn fade-up"
title="Close"
@Karm
Karm / mod_cluster.conf
Created July 18, 2014 09:40
mod_cluster HTTPS-only configuration example
# Note: There is only "Listen 192.168.122.204:2181" in conf/http.conf,
# all other configuration including SSL is done here for demonstration purposes.
LoadModule slotmem_module modules/mod_slotmem.so
LoadModule manager_module modules/mod_manager.so
LoadModule proxy_cluster_module modules/mod_proxy_cluster.so
LoadModule advertise_module modules/mod_advertise.so
MemManagerFile "/dev/shm/httpd/cache/mod_cluster"
@Karm
Karm / CMakeLists.txt
Last active September 6, 2021 20:32 — forked from jcfr/CMakeLists.txt
CMake project allowing to build OpenSSL 32 and 64-bit for Windows and upload the associated "tar.gz" archives on http://packages.kitware.com
cmake_minimum_required(VERSION 2.8.10.2)
#
# This project allows to configure, build, archive and upload an OpenSSL install tree.
#
if(DEFINED UPLOAD_PACKAGE_SCRIPT)
set(MIDAS_URL "http://packages.kitware.com")
set(FOLDER_ID 203)
00:52:25,758 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service jboss.deployment.unit."ROOT.war".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."ROOT.war".WeldStartService: Failed to start service
at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1731)
at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1559)
at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1982)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
at java.base/java.lang.Thread.run(Thread.java:831)
Caused by: org.jboss.weld.exceptions.DefinitionException: Exceptio
@Karm
Karm / pom.xml
Created February 13, 2020 11:02
code.quarkus.io, SMallRye Health, SmallRye JWT, REST Client, RESTEasy JAX-RS
<?xml version="1.0"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>org.acme</groupId>
<artifactId>quarkus</artifactId>
<version>1.0.0-SNAPSHOT</version>
<properties>
<compiler-plugin.version>3.8.1</compiler-plugin.version>
<maven.compiler.parameters>true</maven.compiler.parameters>
@Karm
Karm / pom.xml
Created February 13, 2020 10:58
code.quarkus.io
<?xml version="1.0"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>org.acme</groupId>
<artifactId>quarkus</artifactId>
<version>1.0.0-SNAPSHOT</version>
<properties>
<compiler-plugin.version>3.8.1</compiler-plugin.version>
<maven.compiler.parameters>true</maven.compiler.parameters>
@Karm
Karm / pom.xml
Created February 13, 2020 10:33
service-b pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>
<artifactId>quarkus-service-b</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>war</packaging>
<properties>
<maven.compiler.target>1.8</maven.compiler.target>
@Karm
Karm / pom.xml
Created February 13, 2020 10:31
service-a pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>
<artifactId>quarkus-service-a</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>war</packaging>
<properties>
<maven.compiler.target>1.8</maven.compiler.target>
____________________________________________________________________________________________ TestDrivev1.test_500_108 _____________________________________________________________________________________________
self = <test_0500_drive.TestDrivev1 object at 0x7f9e46563610>
def test_500_108(self):
# test case: drive via HTTP proxy
domain = self.test_domain
name = "www." + domain
self._prepare_md([ name ])
HttpdConf(proxy=True).install()
@Karm
Karm / howto.md
Created October 17, 2019 11:08
MicroProfile Starter: OpenAlt 2019
Visit https://starter.karms.biz/ (or https://start.microprofile.io/ once Quarkus is released there)
Select MicroProfile version 3.0 (or newer)
Select MicroProfile Server Quarkus
Select examples you would like to see or all of them
Unzip demo.zip
cd service-a in one terminal and follow readme.md
cd service-b in another terminal and follow readme.md

Note there are 3 modes; try live hot reload :dev, JVM mode :build and also :native -Pnative