Skip to content

Instantly share code, notes, and snippets.

View Kambaa's full-sized avatar

Kambaa Kambaa

  • Kambaa
  • Istanbul, Turkey
View GitHub Profile
<!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]';
worker_processes auto;
events {
worker_connections 1024;
}
http {
server_tokens off;
@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:
@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 / 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 / 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
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 / sublime-text-my-keymap.json
Created September 26, 2022 17:20
sublime text key bindings
[
{ "keys": ["alt+d"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"} },
{ "keys": ["ctrl+d"], "command": "duplicate_line" },
{ "keys": ["ctrl+shift+c"], "command": "toggle_comment", "args": { "block": false } },
{ "keys": ["ctrl+space+down"], "command": "select_lines", "args": {"forward": true} },
{ "keys": ["ctrl+space+up"], "command": "select_lines", "args": {"forward": false}},
{ "keys": ["shift+alt+f"], "command": "reindent", "args": {"single_line": false} } ,
{ "keys": ["shift+alt+f"], "command": "pretty_json" ,
@Kambaa
Kambaa / strokes-plus-acsendkeys-readme.txt
Last active September 13, 2022 10:42
Strokes Plus acsendkeys() method arguments special keys
// working examples of scripts
// ENABLE OR DISABLE
acEnableCapture()
acDisableCapture()
// MESSAGE DISPLAY
-- tray message
--acDisplayBalloonTip("Shortcut: Ctrl+Shift+Alt+X", "Strokes Plus Enabled", 1, 0)
-- win popup window
@Kambaa
Kambaa / jail.local
Created May 7, 2022 22:26 — forked from Nihisil/jail.local
Send notifications to the Slack from fail2ban
...
action_with_slack_notification = %(banaction)s[name=%(__name__)s, port="%(port)$
slack[name=%(__name__)s]
action = %(action_with_slack_notification)s
...