mkdir -p jenkins_local
cd jenkins_local
PROJECT_DIR=$(PWD)
mkdir -p jenkins_home
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.franzwong.selector; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import java.net.InetSocketAddress; | |
import java.nio.ByteBuffer; | |
import java.nio.channels.SocketChannel; | |
public class Client { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.example; | |
import org.quartz.Job; | |
import org.quartz.JobBuilder; | |
import org.quartz.JobDetail; | |
import org.quartz.JobExecutionContext; | |
import org.quartz.JobExecutionException; | |
import org.quartz.Scheduler; | |
import org.quartz.SchedulerFactory; | |
import org.quartz.Trigger; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.example; | |
import org.quartz.DisallowConcurrentExecution; | |
import org.quartz.Job; | |
import org.quartz.JobExecutionContext; | |
import org.quartz.JobExecutionException; | |
import org.quartz.PersistJobDataAfterExecution; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2023-02-25 14:32:01 INFO: Successfully connected to database server | |
2023-02-25 14:33:27 ERROR: Unable to process request: invalid input format | |
2023-02-25 14:35:11 WARNING: Disk space is running low - only 10% remaining | |
2023-02-25 14:38:09 DEBUG: Received response in 0.0025 seconds | |
2023-02-25 14:41:02 INFO: User login successful - username: jdoe, IP address: 192.168.1.10 | |
2023-02-25 14:44:12 ERROR: Failed to establish connection with external service | |
2023-02-25 14:47:09 DEBUG: Processing data - record count: 1000 | |
2023-02-25 14:51:05 INFO: System restart initiated by admin user - reason: security patch installation | |
2023-02-25 14:55:23 WARNING: High CPU usage detected - current usage: 90% | |
2023-02-25 14:59:14 ERROR: Request timed out - no response received from server. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function rebuild_droplet() { | |
local -r token=${1} | |
if [[ ${#} -ge 2 ]]; then | |
local -r image_slug=${2} | |
else | |
local -r image_slug=ubuntu-22-04-x64 | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/ Usage: rlwrap q main.q -p 8080 | |
/ Metrics can be viewed at http://localhost:8080/metrics | |
/ extract.q can be downloaded in https://github.com/KxSystems/prometheus-kdb-exporter | |
system"l /src/prometheus-kdb-test/lib/extract.q" | |
labelkeys:`city | |
labelvalues:enlist "Tokyo" | |
.prom.newmetric[`temperature;`gauge;labelkeys;"Temperature"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
auth_enabled: false | |
server: | |
http_listen_port: 3100 | |
common: | |
path_prefix: /loki | |
replication_factor: 1 | |
ring: | |
kvstore: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ghcr.io/graalvm/native-image-community:21 as build | |
WORKDIR /workspace/app | |
COPY .mvn .mvn | |
COPY mvnw . | |
COPY pom.xml . | |
COPY src src | |
RUN ./mvnw install -Dnative | |
VOLUME /root/.m2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import socket | |
import struct | |
import sys | |
import threading | |
import numpy as np | |
from qpython import qconnection, MetaData, CONVERSION_OPTIONS | |
from qpython._pandas import PandasQReader, PandasQWriter | |
from qpython.qcollection import QTable, qlist, qtable | |
from qpython.qconnection import MessageType |