Skip to content

Instantly share code, notes, and snippets.

A simple Docker and Docker Compose install script for Ubuntu

Usage

  1. sh install-docker.sh
  2. log out
  3. log back in

Links

@gigabyteservice
gigabyteservice / jitsi-jibri-setup.sh
Created November 28, 2022 21:00 — forked from dimaskiddo/jitsi-jibri-setup.sh
Jitsi Jibri Automatic Installer
#!/bin/bash -e
# Current Directory
CURRENT_DIR=$(pwd)
# Header Function
function printhead() {
clear
@gigabyteservice
gigabyteservice / ffmpeg_commands.md
Created June 16, 2022 18:53 — forked from israeljrs/ffmpeg_commands.md
Collection of ffmpeg commands (basic usage, streaming, advanced usage)

ffmpeg

ffmpeg is a fast video and audio converter that can also grab from a live audio/video source.

Standard usage

Getting help and information

  • -h show all options
  • -h(elp) topic show help
  • -version show version
  • -formats show available formats
@gigabyteservice
gigabyteservice / letsencrypt_2020.md
Created June 15, 2022 15:06 — forked from cecilemuller/letsencrypt_2020.md
How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SSL rating)

How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SLL rating)


Virtual hosts

Let's say you want to host domains first.com and second.com.

Create folders for their files:

@gigabyteservice
gigabyteservice / submit.md
Created April 25, 2022 21:07 — forked from tanaikech/submit.md
Executing Function with Minutes timer in Specific Times using Google Apps Script

Executing Function with Minutes timer in Specific Times using Google Apps Script

This is a sample script for executing a function with the minutes timer in the specific times using Google Apps Script. For example, when this sample script is used, the following situation can be achieved.

  • Execute a function every 10 minutes only in 09:00 - 12:00 and 15:00 - 18:00 for the weekday.

When the above situation is shown as an image, it becomes as follows.

@gigabyteservice
gigabyteservice / loop-json.sh
Created April 10, 2022 16:50 — forked from IAmStoxe/loop-json.sh
This example shows you how to utilize jq to loop bash script through an array of JSON values.
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')
@gigabyteservice
gigabyteservice / create-docker-droplet.sh
Created April 8, 2022 23:04 — forked from christianberg/create-docker-droplet.sh
Shell script to create a Digital Ocean Droplet and install docker
#!/bin/bash
set -e
SECRETFILE=~/.digitalocean
if [[ -z $DIGOCEAN_ID ]] || [[ -z $DIGOCEAN_KEY ]]; then
if [ -e $SECRETFILE ]; then
. $SECRETFILE
fi
fi
@gigabyteservice
gigabyteservice / muc_allow_moderator_enter_lobby.patch
Created November 8, 2021 21:46 — forked from ashiqhassan95/muc_allow_moderator_enter_lobby.patch
Allow moderator to enter meeting without approval in lobby mode
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
@gigabyteservice
gigabyteservice / send_jitsi_data.html
Created November 3, 2021 13:57 — forked from r03ert0/send_jitsi_data.html
Script showing how to send data through a Jitsi channel
<div>
<b>Message:</b>
<input
onchange="sendMessage(this.value)"
placeholder="Type and press enter to send message"
style="width: 640px"
/>
</div>
<div
id="info"
@gigabyteservice
gigabyteservice / jibri-minio.sh
Created October 20, 2021 20:15 — forked from dimaskiddo/jibri-minio.sh
Jitsi Jibri Automatic MinIO Uploader
#!/bin/bash -e
PATH=${PATH}:/usr/local/bin
# Configure Recordings
RECORDINGS_DIR=$1
# Configure MinIO
MC_PROTOCOL="YOUR_MINIO_PROTOCOL_HTTP_OR_HTTPS"