This file contains hidden or 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
| type: custom:yasno-card | |
| city: "Київ" | |
| dso: "ПРАТ «ДТЕК КИЇВСЬКІ ЕЛЕКТРОМЕРЕЖІ»" | |
| group: "1.1" |
This file contains hidden or 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
| services: | |
| set-permissions: | |
| image: alpine | |
| user: root | |
| volumes: | |
| - buildroot:/mnt/buildroot | |
| command: chown -R 1000:1000 /mnt/buildroot | |
| build: | |
| image: buildroot/base:20211120.1925 | |
| volumes: |
This file contains hidden or 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 | |
| if [ -z "$1" ]; then | |
| echo "Usage: $0 <WG_IFACE>" > /dev/stderr | |
| exit 1 | |
| fi | |
| wg addconf wg0 <(wg-quick strip wg0) |
This file contains hidden or 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/env python3 | |
| import datetime | |
| import fcntl | |
| import glob | |
| import html.parser | |
| import logging | |
| import os | |
| import re | |
| import shutil | |
| import socket |
This file contains hidden or 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
| /* | |
| * gcc -fPIC -Wall -ldl -shared -o pwd_override.so -Wl,-soname,pwd_override.so pwd_override.c | |
| */ | |
| #define _GNU_SOURCE | |
| #include <pwd.h> | |
| #include <stdio.h> | |
| #include <dlfcn.h> |
This file contains hidden or 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
| @start /b cmd /c mpv --no-border --loop=force --no-osc --ontop --demuxer-lavf-analyzeduration=0 --demuxer-lavf-probesize=32 --no-audio --framedrop=decoder --force-seekable=no --no-cache --cache-secs=0 --no-cache-pause --rtsp-transport=tcp --geometry=432x768+0+0 rtsp://192.0.2.10/ | |
| @start /b cmd /c mpv --no-border --loop=force --no-osc --ontop --geometry=934x768+432+0 video.mp4 |
This file contains hidden or 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
| @echo off | |
| net session >nul 2>&1 | |
| if %errorLevel% == 0 ( | |
| sc.exe config lanmanworkstation depend= bowser/mrxsmb20/nsi | |
| sc.exe config mrxsmb10 start= disabled | |
| ) else ( | |
| echo Please run with Administrator rights.>&2 | |
| ) | |
| pause |
This file contains hidden or 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
| ffmpeg -f lavfi -i anullsrc -re -rtsp_transport tcp -analyzeduration 0 -i rtsp://admin:[email protected]/h264/ch${channel}/main/av_stream -c:v libx264 -c:a libfaac -ar 44100 -ac 2 -preset ultrafast -tune zerolatency -crf 30 -g 20 -f flv rtmp://127.0.0.1/live/ch${channel} |
This file contains hidden or 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
| /** | |
| * @description Get a human readable remaining time till timestamp | |
| * @param till {Number} Timestamp of the moment in the future | |
| * @return {String} Human readable remaining time string | |
| */ | |
| remainingTime = function (till) { | |
| var delta = till - this.timestamp, | |
| string; | |
| if (delta < -60) { // In the past | |
| string = 'Далее'; |
NewerOlder