Skip to content

Instantly share code, notes, and snippets.

@officialdarnyc
officialdarnyc / rcmf-setup.sh
Last active July 30, 2024 15:23 — forked from alansikora/rcmf-setup.sh
Rocket.Chat Matrix Federation
# !/bin/bash
# Rocket.Chat Matrix Federation Setup
# Author: Alan Sikora <[email protected]>
# https://github.com/alansikora
PWD=$(pwd)
[[ $1 = "-dev" ]] && DEV=true || DEV=false
# Set image versions
ROCKETCHAT_IMAGE_TAG="5.4.0"

To verify that the controller is installed

kubectl get deployment -n kube-system aws-load-balancer-controller

Install Nginx controller in your cluster

This is what i used nginx controller please update the nginx controller service controller annotations. Once the manifest is applied next

@officialdarnyc
officialdarnyc / .multi-stage-azure-pipelines.yml
Created July 20, 2022 19:03 — forked from jimmymcp/.multi-stage-azure-pipelines.yml
Example multi-stage YAML pipeline for Azure DevOps
trigger:
- '*'
pool:
name: Default
variables:
image_name: mcr.microsoft.com/businesscentral/sandbox
container_name: Build
company_name: My Company

Rocket Chat Search Basics

Introduction

Rocket Chat search supports the use of "regular expressions", the benefits of which are great search flexibility and the ability to search chat entries in any language, even ones which are traditionally a challenge for search (e.g. "CJK" languages - Chinese, Japanese, Korean).

Basic Regex Examples

Regular expressions are a deep, but admittedly geeky topic. The flexibility of "regex" search increases as you learn more about how to write regex patterns, but if you learn just a couple of simple patterns, you can benefit right away.

Let's see a few simple examples that you can try.

@officialdarnyc
officialdarnyc / README.md
Last active January 21, 2022 14:48 — forked from debdutdeb/README.md
Exporting livechat messages from db

Livechat rooms and messages both are stored in the same collection, rocketchat_room & rocketchat_message.

To first export the livechat rooms as a json file, use mongoexport like so,

mongoexport --collection=rocketchat_room --db=rocketchat \
  --jsonArray -q='{"t": "l"}' --sort='{_id: 1}' --pretty \
  --jsonFormat=relaxed --type=json --out=livechat_rooms.json
@officialdarnyc
officialdarnyc / note.md
Created October 30, 2021 12:42 — forked from mordr/note.md
Set Visual Studio Code as default editor for kubectl

Set KUBE_EDITOR to Visual Studio Code, assumes 'code' is in PATH

export KUBE_EDITOR='code --wait'

Running k edit ... will open up the yaml using Visual Studio Code.