ffmpeg -i ИМЯ_ВИДЕО_ФАЙЛА -ar 44100 -acodec aac -ac 1 -strict -2 -crf 18 -c:v h264 -preset ultrafast -flags -global_header -fflags flush_packets -tune zerolatency -hls_time 1 -hls_list_size 3 -hls_wrap 4 -hls_flags delete_segments -start_number 0 /tmp/www/video/video.m3u8
find /FolderRoot -type f -name 'Files*.jpg' -mtime +1 -delete
-mtime n
The primary shall evaluate as true if the file modification time subtracted
from the initialization time, divided by 86400 (with any remainder discarded), is n.
std::vector<int> Counter;
for (int i = 0; i <= n; i++)
{
Counter.push_back(i);
}
std::map<int, int> Counter;
for (int i = 0; i <= n; i++)
{
Counter[i] = i;
}
#include <iostream>
#include <cctype>
#include <string>
int main()
{
const char *str = "TeSt";
std::string lower;
std::string upper;
for(; *str; ++str)
{
char c = *str;
if (tolower(c) == c)
lower.push_back(c);
else
upper.push_back(c);
}
std::cout << lower << "\n" << upper << "\n";
return 0;
}
"" auto reload after modification
augroup reload_vimrc " {
autocmd!
autocmd BufWritePost .vimrc source .vimrc
augroup END " }
Vect operator+(const Vect &lhs, const Vect &rhs)
{
Vect v;
v.size = lhs.size + rhs.size;
v.vec = new int[v.size];
std::copy(lhs.vec, lhs.vec + lhs.size, v.vec);
std::copy(rhs.vec, rhs.vec + rhs.size, v.vec + lhs.size);
return v;
}
fout.write(lastname.data(), firstname.size());
size_t size = firstname.size();
fout.write(reinterpret_cast<const char *>(&size), sizeof(size));
fout.write(lastname.data(), size);
git remote add upstream http://url-к-освновному-репозиторию/project
git pull upstream