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
sudo apt update | |
sudo apt install nginx | |
sudo systemctl stop nginx.service | |
sudo systemctl start nginx.service | |
sudo systemctl enable nginx.service | |
sudo apt-get install software-properties-common | |
sudo add-apt-repository ppa:ondrej/php |
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
server { | |
listen 80; | |
server_name example.com; | |
root /var/www/html/example.com/public; | |
add_header X-Frame-Options "SAMEORIGIN"; | |
add_header X-XSS-Protection "1; mode=block"; | |
add_header X-Content-Type-Options "nosniff"; | |
index index.html index.htm index.php; |
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
sudo apt update | |
sudo apt install dirmngr gnupg apt-transport-https ca-certificates software-properties-common | |
wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add - | |
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0.list | |
sudo apt update | |
sudo apt install mongodb-org |
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 | |
set -e | |
# set -e: Exit immediately if a command exits with a non-zero status. | |
mynickjibri=`uuidgen` | |
# change the nickname of jibri | |
sed -i "s/\(^\s*nickname\s*=\).*/\1 \"$mynickjibri\"/" \ | |
/etc/jitsi/jibri/jibri.conf | |
systemctl restart jibri |
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
jsonData='[{"name": "name#1","value": "value#1"},{"name": "name#2","value": "value#2"}]' | |
for row in $(echo "${jsonData}" | jq -r '.[] | @base64'); do | |
_jq() { | |
echo "${row}" | base64 --decode | jq -r "${1}" | |
} | |
# OPTIONAL | |
# Set each property of the row to a variable | |
name=$(_jq '.name') | |
value=$(_jq '.value') |
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 | |
set -e | |
SECRETFILE=~/.digitalocean | |
if [[ -z $DIGOCEAN_ID ]] || [[ -z $DIGOCEAN_KEY ]]; then | |
if [ -e $SECRETFILE ]; then | |
. $SECRETFILE | |
fi | |
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
Instruction | |
1. goto: cd /usr/share/jitsi-meet/prosody-plugins/ | |
2. run: sudo patch -b </var/www/jitsi-meet/resources/prosody-plugins/muc_allow_moderator_enter_lobby.patch | |
3. You will see following:- | |
patching file mod_muc_lobby_rooms.lua | |
Hunk #1 succeeded at 1390 (offset 134 lines). | |
4. A backup file be saved in that same folder with named as mod_muc_lobby_rooms.lua.orig | |
================================================================== | |
--- mod_muc_lobby_rooms.lua 2021-09-16 11:43:45.425000000 +0530 | |
+++ mod_muc_lobby_rooms.lua 2021-09-16 11:42:16.435872526 +0530 |
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
<div> | |
<b>Message:</b> | |
<input | |
onchange="sendMessage(this.value)" | |
placeholder="Type and press enter to send message" | |
style="width: 640px" | |
/> | |
</div> | |
<div | |
id="info" |
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 -e | |
PATH=${PATH}:/usr/local/bin | |
# Configure Recordings | |
RECORDINGS_DIR=$1 | |
# Configure MinIO | |
MC_PROTOCOL="YOUR_MINIO_PROTOCOL_HTTP_OR_HTTPS" |
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 | |
RECORDINGS_DIR=$1 | |
VIDEO_FILE_PATH=$(find $RECORDINGS_DIR -name *.mp4) | |
VIDEO_FILE_NAME=${VIDEO_FILE_PATH} | |
### WE USE THIS FILE FOR UPLOADS | |
CONFIG_FILE_PATH="/etc/jitsi/uploader" | |
# pull jitsi uploader environment var overrides if it exists |