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
#include <iostream> | |
#include <sys/stat.h> | |
#include <fstream> | |
void compress( char** input); | |
unsigned long long int fileSize(std::string fileNameWithextensionSTR); | |
void diffsize(std::string fileNameWithextensionSTR1,std::string fileNameWithextensionSTR2); | |
inline bool IsMP4FileExists (const std::string& name); | |
using namespace std; | |
int *argcGlobal=0; | |
int main(int argc, char **argv) { |
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 | |
VIDEOS=$(ls *.mp4) | |
for VIDEO in $VIDEOS | |
do | |
ffmpeg -i $VIDEO -vcodec libx265 -crf 28 -f mp4 ${VIDEO%%.*}_compressed.mp4 | |
done |
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
irping() { | |
ip=$1 | |
nodes=("ir1" "ir3" "ir5" "ir6") | |
for node in "${nodes[@]}"; do | |
# Make the API request and store the response | |
response=$(curl -s -H "Accept: application/json" "https://check-host.net/check-ping?host=${ip}&node=ir1.node.check-host.net&node=ir3.node.check-host.net&node=ir5.node.check-host.net&node=ir6.node.check-host.net") | |
# Check for "limit_exceeded" error in the response | |
error_message=$(echo "$response" | jq -r '.error') | |
if [ "$error_message" == "limit_exceeded" ]; then |