Skip to content

Instantly share code, notes, and snippets.

View Kambaa's full-sized avatar

KambaAbi Kambaa

  • KambaAbi
  • Istanbul, Turkey
View GitHub Profile
to check if the server works - https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice
stun:
stun.l.google.com:19302,
stun1.l.google.com:19302,
stun2.l.google.com:19302,
stun3.l.google.com:19302,
stun4.l.google.com:19302,
stun.ekiga.net,
stun.ideasip.com,
@Kambaa
Kambaa / wol.service
Created October 10, 2022 15:37
Pardus WOL (Wake On Lan)
# Pardus Wake On Lan Ayarı
# Kaynak: https://forum.pardus.org.tr/t/pardus-wake-on-lan/22096
# wol.service isminde bir servis oluşturun:
# sudo nano /etc/systemd/system/wol.service
# İçeriğine aşağıdaki kodu kopyala yapıştır yaparak kaydedin:
# Not: Komutta bulunan enp3s0 bilgisini kendinize uygun olarak değiştirin.
# Uç birimden ip addr komutunu çalıştırarak bağlı olduğunuz donanımı bulabilirsiniz.
# Kaydedip kapatın ve uç birimeden aşağıdaki komutları çalıştırın:
# sudo systemctl daemon-reload
@Kambaa
Kambaa / dockeraliases.txt
Created November 19, 2022 00:33
From htpcBeginner / docker-traefik - docker aliases.
# https://www.smarthomebeginner.com/install-docker-on-ubuntu-22-04/
# This is my current / up-to-date list of bash aliases.
# This is the exact same file that is on all of my hosts - synced using Synthing.
# Aliases will automatically adapt slightly based on the host.
# SOURCE ENVIRONMENTAL VARIABLES FOR BASH_ALIASES
# Sensitive information goes into the .env file - this allows me to share my bash aliases with the community
# Rename shared/config/bash_aliases.env.example and use it as a starter
source ~/.bash_aliases.env
@Kambaa
Kambaa / semantic-commit-messages.md
Last active November 28, 2023 10:52 — forked from joshbuchea/semantic-commit-messages.md
Semantic Commit Messages

Anlamlı Commit Mesajları

Kodlamalarınızda, iletilen commit'in ne içerdiğinin kısa özetinin sağlanması adına, belirlenmiş bazı kuralları ifade eder. Bu kurallara uyularak hareket edildiğinde, hem yapılan değişikler daha rahat takip edilebilir, hem uygulamada olan değişiklikler (CHANGELOG) daha kolay ayarlanıp proje koduna iliştirilebilinir.

Genel yapı:

Genel olarak commit messajının yapısı şu şekilde ifade edilmektedir:

subject line(konu başlığı - ZORUNLU)
empty line(boş satır - OPSİYONEL)
commit body(commit detayları - OPSİYONEL)
commit footer(alt metin ve imzalar - OPSİYONEL)
@Kambaa
Kambaa / docker-compose.yaml
Created December 26, 2022 13:53
MY Seafile Docker Compose Installation
services:
nginx:
image: nginx
container_name: nginx
restart: always
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- ./ssl:/etc/ssl
ports:
worker_processes auto;
events {
worker_connections 1024;
}
http {
server_tokens off;
<!DOCTYPE html>
<html lang="en">
<head>
<title>IVS Playback</title>
<script src="https://player.live-video.net/1.14.0/amazon-ivs-player.min.js"></script>
<script>
document.addEventListener('DOMContentLoaded', () => {
// set stream url
const streamUrl = '[Playback URL]';

Prerequisites

Just to make sure everything works as expected, here are my current Node/AWS CLI versions (in case we need to look up an ARN or something with the CLI)

Node Version

$ node --version
v18.12.1
ffmpeg \
-f avfoundation \
-framerate 30 \
-video_size 1920x1080 \
-i "3:" \
-f avfoundation \
-framerate 30 \
-video_size 640x480 \
-i "2:" \
-f avfoundation \
$ ffmpeg \
-re \
-stream_loop -1 \
-i /path/to/video.mp4 \
-stream_loop -1 \
-i /path/to/audio.mp3 \
-map 0:v:0 \
-map 1:a:0 \
-c:v libx264 \
-b:v 6000K \