- install mosquitto
apt-get install mosquitto mosquitto-clients
- add config to create server
echo "allow_anonymous true" > /etc/mosquitto/conf.d/nework.conf
# .config/fish/config.fish | |
if status is-interactive | |
# Commands to run in interactive sessions can go here | |
set -g fish_prompt_pwd_dir_length 0 | |
end |
#/bin/bash | |
# resize and crop | |
# ffmpeg: 1440x1072 -> 1452x1080 -> 1440x1080 rockchip h264_rkmpp | |
ffmpeg-rockchip -i input.mp4 -b:v 2472k -vcodec h264_rkmpp -s 1452x1080 -r 30 -g 60 -b:a 160k -ar 44100 -threads 4 tmp.mp4 | |
ffmpeg-rockchip -i tmp.mp4 -b:v 2472k -vcodec h264_rkmpp -s 1440x1080 -r 30 -g 60 -filter:v \"crop=1440:1080:6:0\" -aspect 4:3 -acodec copy -threads 4 output.mp4 |
import os | |
import sys | |
import subprocess | |
import re | |
import tempfile | |
from datetime import timedelta | |
from collections import OrderedDict | |
sys.path.append('../../') | |
from src.TwitchFfmpeg import TwitchFfmpeg, TwitchConfig |
#!/bin/bash | |
# reset iptables rules | |
iptables -F | |
iptables -X | |
iptables -t nat -F | |
iptables -t nat -X | |
iptables -t mangle -F | |
iptables -t mangle -X | |
iptables -P INPUT ACCEPT |
// ==UserScript== | |
// @name Remove Didomi | |
// @namespace Violentmonkey Scripts | |
// @author zital | |
// @match *://*/* | |
// @grant none | |
// @run-at document-end | |
// ==/UserScript== | |
(function() |
#!/usr/bin/python3 | |
# -*- coding: utf-8 -*- | |
# based on: https://github.com/harmanhobbit/smarthubctl/blob/main/smarthubctl.py | |
import socket | |
class BlackMagicVideohub: | |
def __init__(self, config): |
#!/usr/bin/python3 | |
# -*- coding: utf-8 -*- | |
import sys | |
import requests | |
import re | |
from lxml import html | |
def printError(search): | |
print("Errorea gertatu da, ziur aski sartu duzun hitza ez da hiztegian agertzen") |