This file contains 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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<meta name="author" content="Gabriel Valky"> | |
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous"> | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.7.2/font/bootstrap-icons.css"> | |
<link rel="stylesheet" href="https://unpkg.com/bootstrap-table@1.22.2/dist/bootstrap-table.min.css"> | |
</head> |
This file contains 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
ide->ocd+$qSupported:multiprocess+;swbreak+;hwbreak+;qRelocInsn+;fork-events+;vfork-events+;exec-events+;vContSupported+;QThreadEvents+;no-resumed+;memory-tagging+#ec | |
ocd->ide+ | |
ocd->ide+ | |
ocd->ide$PacketSize=4000;qXfer:memory-map:read+;qXfer:features:read+;qXfer:threads:read+;QStartNoAckMode+;vContSupported+#02 | |
ide->ocd+ | |
ide->ocd$vMustReplyEmpty#3a | |
ocd->ide+$#00 | |
ide->ocd+ | |
ide->ocd$QStartNoAckMode#b0 |
This file contains 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
if [[ -z "${DOCKER}" ]]; then | |
cat > Dockerfile <<- EOM | |
FROM debian:trixie | |
WORKDIR /app | |
RUN apt update -y --fix-missing && apt upgrade -y | |
RUN apt install -y rsyslog build-essential libsystemd-dev systemd | |
COPY test.sh . | |
ENV DOCKER 1 | |
ENTRYPOINT ["bash", "test.sh"] | |
EOM |
This file contains 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
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/xterm@5.3.0/css/xterm.css"/> | |
<script src="https://cdn.jsdelivr.net/npm/xterm@5.3.0/lib/xterm.js"></script> | |
<div id="terminal"> | |
<script> | |
var terminal = new window.Terminal({cursorBlink: true}); | |
terminal.open(document.querySelector('#terminal')); | |
terminal.onData(e => socket.send(e)); | |
var socket = new WebSocket(document.location.href.split("http").join("ws") + "terminal"); | |
socket.onmessage = msg => terminal.write(msg.data); |
This file contains 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
# During data processing you will face a situation when you will | |
# need to filter out some data based on string comparison (e.g. process | |
# only file names which pass some condition). Things get more complicated | |
# if the condition is meant to be provided by user or as a CLI argument. | |
# | |
# Some of the popular methods are following: | |
# - wildcard matching (e.g. "*.jpg" which will return only jpeg files) | |
# - regex (e.g. ".*\.jpg") | |
# - code (e.g. filename.substr(-4) == ".jpg") | |
# |
This file contains 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
cd certificate | |
openssl genrsa -out key.pem | |
openssl req -new -key key.pem -out csr.pem | |
openssl x509 -req -days 9999 -in csr.pem -signkey key.pem -out cert.pem |
This file contains 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
<script src="https://cdn.jsdelivr.net/npm/rete@1.5.2/build/rete.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.6.14/vue.min.js"></script> | |
<script src="https://cdn.jsdelivr.net/npm/rete-vue-render-plugin@0.5.1/build/vue-render-plugin.min.js"></script> | |
<script src="https://cdn.jsdelivr.net/npm/rete-connection-plugin@0.9.0/build/connection-plugin.min.js"></script> | |
<script src="https://cdn.jsdelivr.net/npm/alight@0.14.1/alight.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.11/lodash.min.js"></script> | |
<script src="https://cdn.jsdelivr.net/npm/rete-area-plugin@0.2.1/build/area-plugin.min.js"></script> | |
<script src="https://cdn.jsdelivr.net/npm/rete-context-menu-plugin@0.6.0/build/context-menu-plugin.min.js"></script> | |
<script src="https://cdn.jsdelivr.net/npm/rete-comment-plugin@0.3.0/build/comment-plugin.min.js"></script> | |
<script src="https://cdn.jsdelivr.net/npm/rete-history-plugin@0.1.0/build/history-plugin.min.js"></script> |
This file contains 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
#pragma once | |
#include "Types.h" | |
class CPoint { | |
public: | |
int x, y; // TODO: !!! | |
CPoint() | |
{ | |
} | |
CPoint(int _x, int _y) : |
This file contains 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
// Create sample elastic search database for kibana | |
// To add new endpoint into kibana: | |
// Menu (top left) -> Stack management -> Index patterns (Kibana) -> | |
// Create index pattern (top right) -> "test_endpoint3" -> Timestamp field -> Create index pattern | |
// To check recent data: | |
// Menu (top left) -> Discover -> "test_endpoint3" | |
// To allow elastic search listening on 0.0.0.0 interface add: | |
// -Djava.net.preferIPv4Stack=true | |
// to |
This file contains 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
# Install BMC entity manager and activates some randomly chosen configuration | |
# Adds fake temperature sensor | |
# setup for Ubuntu 23 with GCC-13 | |
# | |
set -e -x | |
sudo apt-get -y update | |
sudo apt-get -y upgrade | |
sudo apt-get install -y libpam0g-dev libsystemd-dev python3 python3-pip python3-inflection python3-mako python3-yaml g++-13 gcc-13 libi2c-dev libboost-all-dev libdbus-1-dev ninja-build cmake libssl-dev libtinyxml2-dev | |
sudo apt-get install -y libgtest-dev |
NewerOlder