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 | |
# Short script to split videos by filesize using ffmpeg by LukeLR | |
if [ $# -ne 3 ]; then | |
echo 'Illegal number of parameters. Needs 3 parameters:' | |
echo 'Usage:' | |
echo './split-video.sh FILE SIZELIMIT "FFMPEG_ARGS' | |
echo | |
echo 'Parameters:' | |
echo ' - FILE: Name of the video file to split' |
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
#pragma once | |
#include <array> | |
#include <condition_variable> | |
#include <mutex> | |
template<size_t N> | |
class MultiGroupMutex { | |
public: | |
static_assert(N >= 2, "N must be greater than or equal to 2"); |
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
@echo off | |
::----------------RequestAdmin---------------- | |
::Check for permissions | |
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system" | |
::If error flag set, we do not have admin. | |
if "%errorlevel%" NEQ "0" ( | |
echo "Requesting administrative privileges..." | |
goto RequestAdmin_UACPrompt |
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
// | |
// Created by g29624 on 2022/12/7. | |
// | |
#pragma once | |
#include <iostream> | |
#include <memory> | |
template<typename T> |
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
// | |
// Created by ParticleG on 2022/2/9. | |
// | |
#include <helpers/RedisHelper.h> | |
#include <ranges> | |
#include <structures/Exceptions.h> | |
#include <utils/crypto.h> | |
#include <utils/datetime.h> |