Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!
openssl genrsa -des3 -out rootCA.key 4096
#!/bin/bash | |
IF=$1 | |
STATUS=$2 | |
if [ "$IF" == "vpn0" ] | |
then | |
case "$2" in | |
up) |
<?php | |
class curl | |
{ | |
public $url; | |
public $__curl; | |
public $useragent; | |
public $return_header; | |
public $result; |
Each file inside incomming folder would be converted into HVEC/OPUS, with same folder structure into output folder (will be created near). |
find | egrep \.jp?g? | pv -e -p -t | parallel xargs -n1 mogrify -resize '1080x1080>' -quality '80>' |
ffmpeg -i input.mp4 -movflags +faststart -filter_complex "[0:v]minterpolate='fps=60:mi_mode=mci:me_mode=bidir:mc_mode=obmc:me=ds:vsbmc=1'" -preset ultrafast output.mp4 |
#!/bin/sh | |
rpm -Uhv http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm | |
yum -y update | |
yum -y install autoconf automake gcc gcc-c++ git libtool make nasm pkgconfig zlib-devel freetype-devel speex-devel | |
#YASM | |
mkdir ~/ffmpeg_sources | |
cd ~/ffmpeg_sources | |
curl -O http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz |
function RecursiveParse($text) | |
{ | |
if (is_array($text)) | |
{ | |
$ret = []; | |
foreach ($text as $row) | |
$ret[] = RecursiveParse($row); | |
return $ret; | |
} |
ffmpeg -vaapi_device /dev/dri/renderD128 -i input.mp4 -vf 'format=nv12,hwupload' -c:v hevc_vaapi output.mkv | |
#make sure that hvec profile is listed in vaapi command output |
function ucmp($a, $b) | |
{ | |
$diff = $a - $b; | |
return ($diff > 0) - ($diff < 0); | |
} | |
usort([7,8,-1], "ucmp"); | |
function you_get_the_idea($a, $b) | |
{ |