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
# Edit this file as you like. | |
# | |
# All these sections are optional. Each section with the exception of [general] represents | |
# one rule and each key in it is an option for that specific rule. | |
# | |
# Rules and sections can be referenced by their full name or by id. For example | |
# section "[body-max-line-length]" could also be written as "[B1]". Full section names are | |
# used in here for clarity. | |
# | |
[general] |
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
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 |
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 | |
VIDEOS=$(ls *.mp4) | |
for VIDEO in $VIDEOS | |
do | |
ffmpeg -i $VIDEO -vcodec libx265 -crf 28 -f mp4 ${VIDEO%%.*}_compressed.mp4 | |
done |
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
#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) { |