Thursday, 18 November 2021

HandyCache black

 HandyCache_list_Format_1
False#~#------------------- Ðåêëàìà -------------------#~##~##~#0
False#~#(\b)([abclmntv]|ek|lit|ng|pr|soft)?bn(rs?|nr)?[^a-z]#~#tbn\d+\.google\.com#~##~#0
False#~#(\b)partners?\.#~##~##~#0

Saturday, 25 September 2021

Rebuild Default Repository Centos 8

 /etc/distro.repos.d

  1. Create mkdir /opt/tmp  cd /opt/tmp-repo

  2. Download file centos-repos-8.1-1.1911.0.8.el8.x86_64.rpm (sesuaikan dengan  “cat /etc/centosrelease” atau “rpm query centosrelease“)
    wget http://mirror.centos.org/centos/8/BaseOS/x86_64/os/Packages/centos-repos-8.1-1.1911.0.8.el8.x86_64.rpm
  3. Extract file 

Rebuild RPM Database in CentOS 8

Download 
git clone https://github.com/facebookincubator/dcrpm.git
cd dcrpm
python setup.py install

Atau download scara manual kemudian hasil exstrak di copy ke  /var/lib/rpm

mkdir /opt/rpm8/
cp -avr /var/lib/rpm /opt/rpm8/
tar -zcvf opt/rpm8/rpmdb-$(date +"%d%m%Y").tar.gz  /var/lib/rpm
rm -f /var/lib/rpm/__db*
/usr/lib/rpm/rpmdb_verify /var/lib/rpm/Packages
# cd /var/lib/rpm/
mv Packages Packages.back
/usr/lib/rpm/rpmdb_dump Packages.back | /usr/lib/rpm/rpmdb_load Packages
/usr/lib/rpm/rpmdb_verify Packages
rpm -qa >/dev/null #output is discarded to enable printing of errors only
rpm -vv --rebuilddb

dnf update
dnf clean packages

Wednesday, 17 June 2020

UDP Route Transcoder Linux

#!/bin/bash
while :
do echo `
#!sudo ffmpeg -re -i rtmp://103.30.246.47:1935/riau/live rtmp://122.248.43.138:1935/ch11/myStream
ip route add 224.0.0.0/16 via 192.168.99.99
sleep 10
sudo ffmpeg -re -i rtmp://103.30.246.47:1935/riau/live -codec copy -bsf:v h264_mp4toannexb -f mpegts udp://224.0.0.1:2000?pkt_size=1316

`
done

-----------------------------------------------------------

#!/bin/bash
while :
do echo `
sleep 10
sudo ip route add 224.0.0.0/16 via 192.168.99.99
`
done

------------------------------------
nano /etc/rc.local
/var/www/html