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
# take the backup
iptables-save > iptables-backup.text
# open UDP port
iptables -I INPUT -p udp --dport 5443 -j ACCEPT
# save changes
iptables-save
# check the changes
sudo iptables -L -v -n | more
# if want open all udp ports
iptables -I INPUT -p udp -j ACCEPT
@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 / docker-compose.yml
Last active January 14, 2023 18:30
docker-compose.yml
version: '3.9'
services:
mongodb:
# image : mongo:4.4.13
image: mongo:5.0
container_name: mongodb
ports:
- 27017:27017
# mongod.conf
# remote access + Authetication enable
# location: /etc/mongod.conf
# for documentation of all options, see:
# http://docs.mongodb.org/manual/reference/configuration-options/
# Where and how to store data.
storage:
dbPath: /var/lib/mongodb
journal:
@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 / Install MongoDB on Ubuntu with Nginx and PHP
Created April 15, 2022 16:07
Install MongoDB on Ubuntu with Nginx and PHP
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
@gigabyteservice
gigabyteservice / PHP nginx site config
Created April 15, 2022 15:59
PHP nginx site config
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;