This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LDAP_DOMAIN="zital.lan" | |
LDAP_BASEDN="dc=zital,dc=lan" | |
LDAP_GROUPS='["Group01", "Group02"]' | |
LDAP_ATTRS='["*"]' | |
LDAP_HOSTS='["ldap01.zital.lan:389","ldap02.zital.lan:389","ldap02.zital.lan:389"]' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
HOST="ldap.zital.eus" | |
BASEDN="dc=zital,dc=lan" | |
USER="zital@zital.eus" | |
PASSWD="12345" | |
ldapsearch -x -H ldap://${HOST} -b ${BASEDN} -D ${USER} -w ${PASSWD} "(samaccountname=${USER})" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/nginx/modules-available/rtmp.conf | |
rtmp { | |
server { | |
listen 1935; | |
chunk_size 4096; | |
allow publish 127.0.0.1; | |
deny publish all; | |
application live { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
install: | |
npm install prompt-sync --save-dev | |
npm install testcafe --save-dev | |
create: | |
env.json with github credentials: {user: user, passwd: passwd} | |
exec: | |
npx testcafe firefox:headless porru.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Remove Didomi | |
// @namespace Violentmonkey Scripts | |
// @author zital | |
// @match *://*/* | |
// @grant none | |
// @run-at document-end | |
// ==/UserScript== | |
(function() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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): |
NewerOlder