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
This gist describe how to create apt hook. When you install or upgrade any package, | |
hook /etc/apt/apt.conf.d/80upgradehook is running. | |
Hook run script /usr/local/sbin/apt_after_upgrade_hook and this script check if | |
/usr/lib/x86_64-linux-gnu/opera/libffmpeg.so is symlink,and when not make symlink to newest | |
libffmpeg fromchromium-ffmpeg snap. | |
sudo snap install chromium-ffmpeg | |
sudo echo 'DPkg::Post-Invoke {"/usr/local/sbin/apt_after_upgrade_hook";};' > /etc/apt/apt.conf.d/80upgradehook |
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
#!/usr/bin/env python3 | |
import requests | |
import json | |
import argparse | |
PAGE_LENGTH = '50' | |
PR_STATE = 'OPEN' | |
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
[Unit] | |
Description=Unified Remote Server | |
After=syslog.target network.target | |
[Service] | |
Type=forking | |
PIDFile=$HOME/.urserver/urserver.pid | |
ExecStart=/opt/urserver/urserver-start --no-manager --no-notify | |
ExecStop=/opt/urserver/urserver-stop |