Download Tomcat from the Apache website.
Unpack in /opt/apache-tomcat-x.y.z
. E.g. /opt/apache-tomcat-8.5.6
.
You'll need a terminal and root access.
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
using System; | |
using MongoDB.Bson; | |
using MongoDB.Driver; | |
namespace MongoDBCRUDExample | |
{ | |
class Program | |
{ | |
static void Main(string[] args) |
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
FROM python:3.8.0-alpine3.10 | |
RUN pip install websockets | |
COPY ws_proxy.py /usr/bin | |
RUN chmod +x /usr/bin/ws_proxy.py | |
EXPOSE 8765 | |
CMD ["python", "/usr/bin/ws_proxy.py"] |
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 microk8s from the edge channel (Rancher requires Helm 2.15.1 or above) | |
sudo snap install microk8s --classic | |
# Enable useful plugins | |
sudo microk8s.enable dns dashboard storage ingress helm | |
# Allow running priviledged Pods (required by Rancher's `cattle-node-agent`) | |
sudo sh -c 'echo "--allow-privileged=true" >> /var/snap/microk8s/current/args/kube-apiserver' | |
sudo systemctl restart snap.microk8s.daemon-apiserver.service | |
# Setup and install Tiller (part of Helm) |
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
image: node:10.15.0 | |
test: &test | |
name: Install and Test | |
script: | |
- cd my-tools | |
- npm install | |
- npm test | |
- npm pack | |
artifacts: # defining the artifacts to be passed to each future step. | |
# - dist/** |
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
#!/bin/bash -e | |
PATH=${PATH}:/usr/local/bin | |
# Configure Recordings | |
RECORDINGS_DIR=$1 | |
# Configure MinIO | |
MC_PROTOCOL="YOUR_MINIO_PROTOCOL_HTTP_OR_HTTPS" |
Following tutorial will guide you how to automatic upload your Jibri recording files to your own on-premises, cloud, or dedicated servers MinIO.
Before we begin you must make sure that you own the administration / root permission access by running following command:
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
################## Ticks to candles in kiteconnect python #################### | |
# Author : Arun B | |
# Reference : http://ezeetrading.in/Articles/Candles_formation_from_tick_data_zerodha.html | |
# Purpose : Convert ticks to candles by putting ticks in a queue. This redues time wasted in on_ticks function | |
################################################################################ | |
from kiteconnect import KiteTicker | |
import datetime | |
from copy import copy | |
import queue |
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
<# | |
References: | |
- https://docs.microsoft.com/en-us/dotnet/api/system.net.websockets.clientwebsocket?view=netframework-4.5 | |
- https://github.com/poshbotio/PoshBot/blob/master/PoshBot/Implementations/Slack/SlackConnection.ps1 | |
- https://www.leeholmes.com/blog/2018/09/05/producer-consumer-parallelism-in-powershell/ | |
#> | |
$client_id = [System.GUID]::NewGuid() | |
$recv_queue = New-Object 'System.Collections.Concurrent.ConcurrentQueue[String]' |
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
image: atlassian/default-image:2 | |
pipelines: | |
custom: | |
deploy-to-production: | |
- step: | |
name: Deploy to Production | |
deployment: production | |
script: |