Skip to content

Instantly share code, notes, and snippets.

View mrhalix's full-sized avatar
💭
Call me on telegram

SM. Amin Aleahmad mrhalix

💭
Call me on telegram
View GitHub Profile
@SepehrImanian
SepehrImanian / changeUser.sh
Last active January 11, 2023 11:29
Change git user in same repo in server
#!/bin/bash
if [[ $1 = "sepehr" ]]; then
git config --local user.email "[email protected]"
git config --local user.name "sepehrimanian"
echo "Change git user to 'Sepehr'"
elif [[ $1 = "ali" ]]; then
git config --local user.email "[email protected]"
git config --local user.name "ali"
echo "Change git user to 'ali'"
@Suzhou65
Suzhou65 / CloudFlare_DDNS_2.md
Last active July 24, 2024 13:35
Get DNS record from CloudFlare API

Let's try to ask DNS record for CloudFlare API.

Replace the "API Token" at auth_key by the API Token you get, the "Zone ID" can be found in Cloudflare Dashboard, logged in the Cloudflare Dashboard, check the Domain page, "Zone ID" information will appearance at API block, right hand side.

import json
import requests

cloudflare_api = "https://api.cloudflare.com/client/v4/"
zone_id = "278035ad7a9d983bc54a990b43ef7eb0"
Windows:
> choco install apache-httpd
# source: https://chocolatey.org/packages/apache-httpd
Mac os:
As of macos bigsur ab is installed by default in macos
Ubuntu:
@rordi
rordi / root-password-MariaDB-docker-compose.md
Last active November 7, 2024 23:13
Change root password in MariaDB Docker container running with docker-compose

Change root password in MariaDB Docker container running with docker-compose

Override the entrypoint in docker-compose.yml for the MariaDB Docker container by adding:

entrypoint: mysqld_safe --skip-grant-tables --user=mysql

The start up the Docker Compose stack:

$> docker-compose up -d
@timefcuk
timefcuk / ovpn-server-with-certs.md
Last active October 18, 2024 11:43 — forked from SmartFinn/ovpn-server-with-certs.md
MikroTik (RouterOS) script for setup OpenVPN server and generate certificates
@ajxchapman
ajxchapman / README.md
Last active August 20, 2024 19:02
Install Windows on Digital Ocean droplet
@victorddiniz
victorddiniz / cassadran-reaper-deployment.yaml
Created August 13, 2018 15:59
Cassandra-reaper kubernetes deployment
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: cassandra-reaper
namespace: cassandra-reaper
spec:
template:
metadata:
labels:
app: cassandra-reaper
@kgersen
kgersen / ripe-alloc2db.sh
Created August 9, 2018 13:26
RIPE alloclist to database conversion
#!/bin/bash
# convert RIPE allocation list to database friendly format
# (c) kgersen 2018 for https://lafibre.info
# tab (\t) is used as separator in output
# output
# country ispcode ispname date 4|6 block block_size
# optionnal argument: country code to match
url="https://ftp.ripe.net/ripe/stats/membership/alloclist.txt"
@sdenel
sdenel / nginx-hello-world-deployment.yaml
Last active October 16, 2024 12:38
Kubernetes: a simple Nginx "Hello world" deployment file
# To deploy: kubectl create -f nginx-hello-world-deployment.yaml
# Access it with the API as a proxy:
# $ kubectl proxy
# Then in you browser: http://localhost:8001/api/v1/namespaces/default/services/nginx:/proxy/#!/
apiVersion: v1
kind: Service
metadata:
name: nginx
spec:
@unitycoder
unitycoder / local-stream-server-win10.md
Last active November 14, 2024 21:20
Local RTMP Stream Server for Windows

https://obsproject.com/forum/resources/how-to-set-up-your-own-private-rtmfp-server-using-monaserver.153/ (copied here as a backup)

This article is inspired of the great guide of How to set up your own private RTMP server using nginx. https://obsproject.com/forum/resources/how-to-set-up-your-own-private-rtmp-server-using-nginx.50/

MonaServer is a tiny and scalable open source server which provide protocols RTMFP, RTMP, RTMPE, WebSocket and HTTP. Server applications are written in lua and clients just need to support one of these protocols.

The interest of MonaServer here is the RTFMP broadcast feature that avoid congestion (because it is a UDP protocol) unlike RTMP.

This guide will presents you an easy way to broadcast a video with OBS over RTMFP. Don't worry, you will not need to configure or write any code here :)